Examples
Explore live decks and examples that integrate decks into HonoX and Void applications.
Open each deck on a live Worker
Every example uses the same hono-decks package, with density, color, and composition tuned to its purpose.
Basic
The full example for code, assets, embeds, Fire reveals, and hydrated islands.
Minimal
The smallest Worker: one deck, one facade, and one mounted router.
HonoX portfolio
A portfolio that publishes ordinary pages and talks from the same HonoX app.
Void
A deck embedded in a Void application page.
Build-time OGP
Generate deterministic 1200×630 share images from deck metadata with Satori and resvg.
Make the talk part of the portfolio
examples/honox embeds the deck inside its portfolio page and links to viewer and presentation surfaces. HonoX owns SEO and navigation; hono-decks owns presentation routes.
Surfaces in the same deployment
//decks/honox/decks/honox/presentation/decks/honox/print
Embed a deck in a Void application
The Void sample forwards /slides/* from a catch-all route to the hono-decks Hono router. Its home page uses decks.paths("welcome") to embed the deck and link to the standalone viewer. hono-decks/vite compiles the MDX during development and builds.
This sample uses MDX and does not require a Hono Markdown adapter. The Markdown (deck.md) generated by Void-specific init requires a compatible adapter. In the Void setup, --install adds missing dependencies.
On touch devices, tap the slide edges to navigate. The controls are transparent at rest and become visible while pressed or keyboard-focused.
The sample enables the viewer and embed surfaces, while presentation, presenter, print, and export are disabled. The embed permits the sample itself and this documentation site through frameAncestors.
Start from the closest architecture
- Minimal
- Adding the smallest deck surface to an existing Hono Worker.
- HonoX
- Publishing talks beside a blog, profile, or work index.
- Void
- Embedding a deck in a Void application page.
- Basic
- Evaluating R2, embeds, motion, and export in one project.
- OGP
- Generating social share images during the build.