--- title: Slide Deck description: Compile Plate documents and boards into themed HTML decks, 16:9 PDF handouts, and authenticated Durable Object presenter rooms. --- ## What it solves - Projects headings, horizontal breaks, and spatial board frames from one live Plate document into ordered slides without maintaining a separate deck file. - Compiles standalone single-file HTML decks with four built-in themes and strict script-hash CSP headers, plus script-free 16:9 slide and portrait handout PDFs via Cloudflare Browser Run. - Syncs live presenter navigation and blackout state through a Cloudflare Durable Object room with separate presenter and audience bearer tokens. - Keeps hidden slides, speaker notes, and off-frame canvas scratchpads stripped from audience responses inside your own Worker deployment. ## Quickstart ```ts import type { DeckDocumentInput } from '@/lib/deck/deck-projection'; import { createDeckRoomHandler } from '@/lib/deck/deck-room'; export function buildDeckHandler( loadDocument: () => Promise<{ document: DeckDocumentInput; revision: string }>, env: { AUDIENCE_TOKEN: string; PRESENTER_TOKEN: string } ) { return createDeckRoomHandler({ allowedOrigins: ['https://app.example.com'], audienceToken: env.AUDIENCE_TOKEN, loadDocument, presenterToken: env.PRESENTER_TOKEN, projection: 'accepted', }); } ``` ## Private reference included Installing this slice with `npx shadcn@latest add @plate-pro/deck` or `npx @platejs/cli sync @plate-pro/deck` also copies `@/lib/deck/README.md` into your repository. That private reference documents every exported type, Durable Object binding, Cloudflare Browser Run option, and coding-agent integration note. ## Related - [Deck](/docs/deck) - [Security Kernel](/docs/business/security-kernel) - [Pro Installation](/docs/pro/installation) - [Pricing](/pricing)