npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@texuli/deck

v0.14.4

Published

Framework-free, dependency-free deck engine for Texuli: one validated deck model generated from JSON or Markdown, layouts, steps, navigation, presenter protocol, lint and authoring.

Readme

@texuli/deck

The framework-free, dependency-free deck engine for Texuli, an MIT-licensed Svelte 5 component library by Dailybot, Inc. (Small pieces. Infinite possibilities.). One validated deck model (model v2) that you write as JSON or as Markdown, with 20 catalog layouts, backgrounds with a contrast guarantee, fragments and steps, transitions, navigation with vertical stacks, hash routes, a controls registry, canvas fit, auto-slide, a presenter protocol, lint, RFC 6902 patches, text twins, a typed builder, brief outlines and templates. It has no Svelte and no DOM: the @texuli/slides stage presents its decks, and Node tools and agents can use it on its own.

In the stack: layer L0: framework-free, with no dependencies. @texuli/slides (the stage), @texuli/document (inline decks), @texuli/canvas and @texuli/tools build on it.

Status: in development (pre-1.0). @texuli/deck is published on npm as 0.14.4, with provenance (first published as 0.4.0). It was built in PLAN_008 (ADR-009 in DECISIONS). The @texuli/slides stage renders it from 0.4.0 (@texuli/slides 0.3.0 has the previous deck model), and @texuli/spec ships the blueprint spec that encodes deck model v2 from 0.4.0 (spec 0.12.0 in @texuli/[email protected]). Under 0.x a new minor may contain breaking changes, so pin the exact version or use ^0.14.0 (see RELEASE).

Install

npm install @texuli/deck

It has no runtime dependencies and no peer dependencies: no Svelte, no DOM framework, no schema library.

Quick start: JSON

parseDeck validates a deck and reports every issue at once, each with a code, a JSON path, an RFC 6901 pointer and a fix. It never throws.

import { parseDeck } from '@texuli/deck/model';
import { formatDiagnostic } from '@texuli/deck/schema';

const result = parseDeck({
  formatVersion: 2,
  meta: { title: 'Quarterly review', locale: 'en' },
  style: { theme: 'nord', aspect: '16:9', transition: 'slide' },
  slides: [
    {
      id: 'opening',
      layout: 'title-hero',
      props: { title: 'Quarterly review', subtitle: 'What shipped and what is next' },
      notes: 'Welcome everyone and set the agenda for the next twenty minutes.',
    },
    {
      id: 'adoption',
      layout: 'big-stat',
      props: { number: '87%', label: 'of releases shipped the day they merged' },
    },
  ],
});

if (result.ok) {
  console.log(result.deck.slides.length); // 2
} else {
  for (const issue of result.issues) console.log(formatDiagnostic(issue));
}

Decks that arrive from somewhere untrusted (a share link, a pasted file, an agent) go through loadUntrustedDeck instead: it bounds bytes, depth and nodes before any deep work, migrates earlier deck shapes, then validates.

Quick start: Markdown

parseDeckMarkdown reads the deck Markdown dialect into the same validated deck, with every issue located by line and column. Its syntax is inspired by reveal.js Markdown but is its own closed dialect: there is no HTML, and it is not compatible with reveal.js documents.

import { parseDeckMarkdown } from '@texuli/deck/markdown';

const result = parseDeckMarkdown(`---
title: Quarterly review
transition: slide
---

<!-- .slide: layout=title-hero -->

# Quarterly review

What shipped and what is next

---

## Priorities

- Ship smaller changes <!-- .element: fragment -->
- Measure every release <!-- .element: fragment -->

Note: Keep this slide short.
`);

console.log(result.ok, result.deck?.slides.map((slide) => slide.id));
// true [ 'quarterly-review', 'priorities' ]

deckToMarkdown(deck) writes the canonical Markdown back; supported features round-trip to the same deck.

Subpaths

| Import | What it gives you | Measured gzip | | --- | --- | --- | | @texuli/deck | The model and the schema kit (everything in ./model and ./schema) | 37,827 B | | @texuli/deck/model | Deck model v2: schemas and types, parseDeck, the untrusted loader, migration, the 21-entry layout catalog, style and themes, backgrounds with contrast math, fragments and steps, transitions, the diagnostic code table and the JSON Schema export | 37,550 B | | @texuli/deck/schema | The owned schema kit: combinators as data, all-issues validation, Infer types and JSON Schema 2020-12 | 8,980 B | | @texuli/deck/engine | The controller with events and plugins, navigation with vertical stacks, hash routes, the controls registry and input decisions, canvas fit, motion, auto-slide, the presenter protocol and the stage messages | 24,156 B | | @texuli/deck/markdown | The deck Markdown dialect to and from a deck, and the text and outline twins | 57,866 B | | @texuli/deck/math | A TeX subset to a MathML node tree | 6,021 B | | @texuli/deck/authoring | The typed builder, layout selection, brief outlines, quality lint and RFC 6902 patches | 30,740 B | | @texuli/deck/templates | Deterministic starter templates | 27,361 B |

Sizes are the gzip measurements recorded on the final PLAN_008 code in texuli.budgets.json (pnpm size --filter @texuli/deck); each subpath has its own budget there.

The repository also keeps seven paired starter decks in packages/deck/decks/ (each as <name>.json and <name>.md), described in templates. They are fixtures, not an exported subpath.

Key guarantees

  • One model, two sources. JSON and Markdown produce the same validated Deck; tests/authoring.test.ts checks that every starter deck's JSON and Markdown parse to equal decks and round-trip through deckToMarkdown.
  • All issues, never a throw. Validation, the Markdown reader, the loader, migration and lint report one DeckDiagnostic shape (code, severity, path, JSON path, pointer, message, fix, slide id and, for Markdown, line and column), capped at 200.
  • No HTML. The model holds data only. The Markdown dialect refuses raw HTML, iframes, class, style and on* attributes with a diagnostic; math becomes a MathML node tree from a closed tag and attribute allowlist, never a markup string.
  • Syntax here, policy at paint. Media sources and links are checked for syntax only. The deck never carries a trust tier: the stage applies @texuli/core/url-policy at the host's tier when it paints.
  • Bounded on hostile input. Size, depth, node, slide, step and issue caps hold for JSON, Markdown, math and patches; prototype keys, accessors, cycles and hidden characters are refused or stripped and reported.
  • Framework-free and DOM-free. No window, document or BroadcastChannel at import (tests/engine-import-guard.test.ts); the engine imports nothing outside this package's src/.

Documentation

Contributing

Contributions are welcome; start at the GitHub repository.

License

MIT © Dailybot, Inc. Powered by Dailybot.