Why Care?
Decks show up across the Lossless tree: dididecks client-sites, mpstaton-site,
hypernova, twf_site, fullstack-vc, lossless-slides-site, and now humain-web's
gated investor decks. Each grew its own viewer. Reveal.js was dropped because
its globals collided with ordinary web development. The DidiDecks shell had the
best play and print pieces, but bundled them with dev-only authoring tools
(the slide rater writes JSON to disk), so nothing outside a dididecks
client-site could use them. Copies drifted: by October 2026 there were nine
PageAsDeckWrappers and four SlideCanvases, and the newest fixes lived in
whichever site needed them last.
What this package is
The viewer: everything needed to show a deck.
| In | Out (stays in @dididecks/shell) |
SlideCanvas, ContentFit | SlideRankPill, /api/slide-rank, /api/slide-decompose |
DeckPlayer, PlayerSlide, PrintDeck | DeckMatrix, DeckStatsPanel, review ToC |
DeckChrome, SlidePaginator, PageAsDeckWrapper | DeckFrame--Play-UI, DeckOverlay--Play-UI (they call the rater) |
ModeToggle, runtime/mode-switcher.ts, chrome tokens | registry loader, slot scanner, injected /play and /toc routes |
The shell depends on this package and keeps one-line re-exports at its old component paths, so client-sites change nothing.
Constraints
Static slides. No script inside a slide. Player scripts handle navigation only, so a slide renders the same in the player, in print and in a PDF.
Pure-CSS scaling.
SlideCanvasscales a 1920×1080 stage with container queries; it works without JS and in print.No Tailwind, no framework. Plain Astro with scoped CSS. A slide can use Tailwind; the player does not require it.
Themed by tokens. Components read only
--ddd-chrome-*, which fall back to the site's--color-*and--font-*tokens.No filesystem, no registry, no network. Anything that writes, reads a deck registry or calls an API belongs in the shell.
Browser shortcuts win. Cmd/Ctrl/Alt chords pass through; keys are ignored while typing.
Contracts
deck:section-changed{ index, total, isFirst, isLast }onwindow, emitted by the play and scroll decks.deck:section-goto{ index },deck:section-prev,deck:section-nextmove them.#Nin the URL opens slide N (1-based) and follows navigation.Print: one slide per landscape page, no chrome.
Provenance (audit, 2026-10-28)
Every copy across dididecks-ai/client-sites and astro-knots/sites was
compared. Bases taken:
SlideCanvas: the shell's pure-CSS version, with centring added and calmstorm-decks' wash layer ported. Calmstorm's JS scaler was not taken.
ContentFit: calmstorm-decks, as is.
DeckChrome: the shell's. Fixed: it listened for
ddd:section-changed, which nothing sent. Added the modifier-key pass-through.SlidePaginator, PageAsDeckWrapper, ModeToggle, mode-switcher: the shell's.
DeckPlayer, PlayerSlide, PrintDeck: new. PrintDeck is the shell's print route's layout without its registry.
Roadmap
0.2: replace
PageAsDeckWrapperwith lossless-slides-site'sPageDeck(visible-pixel tracking, tall slides scroll before advancing, hash follows the slide, reduced motion, teardown across view transitions), re-tokenised to--ddd-*; add fullstack-vc's jump panel (J) to the scroll deck.0.2: one chrome-hidden attribute,
html[data-chrome="off"], replacingdata-chrome-hidden,body[data-chrome]andhtml[data-chrome].0.2:
mode-switcher.tshonours a server-painteddata-mode, guards storage access, and exports an inline first-paint snippet (no flash).Adoption: humain-web, mpstaton-site, hypernova, twf_site, fullstack-vc and lossless-slides-site move from their own copies to the package.
Publishing
JSR, like @lossless-group/lfm, if it serves .astro files to npm-style
installs (npm:@jsr/lossless-group__dididecks-player); otherwise npm. To be
settled by a jsr publish --dry-run and a test install in a consumer.
Related
Extract Didideck Player Package and Ship Humain Decks Page in
dididecks-ai/context-v/plans/: the plan of record for the extraction.@dididecks/shellindididecks-ai/apps/deck-shell/: the authoring side.