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

@liebstoeckel/engine

v0.3.6

Published

The compiler, React runtime, and single-file build pipeline at the core of liebstoeckel.

Readme

@liebstoeckel/engine

The compiler, React runtime, and single-file build pipeline at the core of liebstoeckel.

Part of liebstoeckel, a code-first presentation framework. You write decks in MDX and TSX and build them into a single self-contained HTML file with no server or runtime dependencies. The same file works offline, and when you host it the deck runs a live session between the presenter and the audience. Built on Bun, React 19, Motion, and Tailwind v4.

Status: experimental, pre-1.0. liebstoeckel is an evolving experiment, not yet production-ready. Before 1.0, breaking changes can land in any release without a major-version bump, so pin an exact version if you depend on it.

engine compiles your MDX and TSX slides into a deck, renders them with Motion transitions and keyboard and touch navigation, and bundles the markup, styles, and client runtime into a single HTML file. It also carries the live-mode client that syncs the presenter and audience over Yjs, plus a build-time macro for animated code. Most people drive it through @liebstoeckel/cli. Install it directly when you want to run the build yourself.

Install

bun add @liebstoeckel/engine
bun add react react-dom yjs   # peers you provide

Bun-native. It ships raw TypeScript and builds under Bun ≥ 1.3. The ./code export is a Bun macro, so the build has to run under Bun.

Usage

// main.tsx — the deck entry, mounted by index.html
import { createRoot } from "react-dom/client";
import { Present } from "@liebstoeckel/engine";
import "@liebstoeckel/theme/styles.css";

import Intro from "./slides/intro.mdx";
import Hello from "./slides/hello.tsx";

createRoot(document.getElementById("root")!).render(
  <Present slides={[Intro, Hello]} brands={["acme"]} />,
);

Each slide is its own MDX or TSX module; Present orders them, renders Motion transitions, and (when hosted) runs the live presenter↔audience session.

// build.ts: compile the deck (entry is the index.html) to one self-contained file
import { bundleDeck } from "@liebstoeckel/engine/build";

await bundleDeck({ entry: "./index.html", outdir: "./dist" });
// writes dist/index.html

For thumbnails-in-the-build, use the batteries-included buildDeck from @liebstoeckel/thumbnails/build instead — it wraps bundleDeck and embeds per-slide screenshots.

Exports

| Entry | What | |---|---| | @liebstoeckel/engine | Runtime: Present, Deck, PresenterView, ScaledStage / SlideFrame, Step / StepsProvider / useRevealState, CodeMagic, Magic / Atmosphere, useDeckSync / useDeckNav, and the live re-exports (Plugin, LiveProvider, useLive, …) | | @liebstoeckel/engine/build | bundleDeck(options) writes self-contained HTML. Options: entry (an index.html), outdir, outfile, minify, pkgJson, inlinePackage, inlineLicenses | | @liebstoeckel/engine/live | Live-mode client runtime (Yjs sync) | | @liebstoeckel/engine/code | The Bun macro for build-time syntax highlighting (animated code) | | @liebstoeckel/engine/mdx-plugin | The MDX build plugin | | @liebstoeckel/engine/visx-esm-plugin | The visx ESM-interop build plugin |

Architecture

Three concerns live here: a build pipeline (src/build/), a React runtime (the top-level src/*.tsx), and a live and plugin layer (src/live/). A build-time code macro (src/code/) sits alongside them.

  • build/buildDeck.ts drives Bun.build({ target: "browser", compile: true }) with the tailwind and mdx plugins, so the JS and CSS inline into one HTML file. It then post-processes the output. escapeInlineModuleScript neutralizes any </script> inside the inlined bundle, and embedManifest injects the base64 plugin manifest (server bundles come from buildServerBundle).
  • build/mdx-plugin.ts is a BunPlugin that compiles .mdx with the automatic React runtime and the @mdx-js/react provider. Fenced code is highlighted by Shiki at build time using a css-variables theme (var(--shiki-token-*)), so no highlighter ships to the browser.
  • code/macro.ts (the ./code Bun macro) and code/tokenize.ts handle animated code. codeStory and code tokenize source at build time into TokenizedStep literals for <CodeMagic>, which keeps Shiki and its grammars out of the runtime.
  • Present.tsx is the single entry point. It detects live mode (live/detect), connects the shared Yjs doc, provides the LiveProvider context, and branches to Deck, PresenterView, or CaptureView (the build-time thumbnail capture, gated by build/capture-protocol).
  • Deck.tsx, Stage.tsx, and steps.tsx render slides. Deck draws the active slide inside a fixed STAGE_W by STAGE_H ScaledStage (letterboxed), animates transitions with Motion AnimatePresence, and wires navigation through nav.ts. StepsProvider, Step, and useRevealState drive progressive reveals. Index and step state come from useDeckSync (a BroadcastChannel, standalone) or live/deckIndex (Yjs, live).
  • live/ holds the live client. connect.ts does auto-reconnecting WebSocket Yjs sync with a half-open watchdog, Plugin.tsx renders a plugin's Slide or fallback against the shared doc, and breakout.tsx turns a touch glow-tap into a sheet.

The engine re-exports Magic and Atmosphere from @liebstoeckel/components, reads brand tokens through useTheme in @liebstoeckel/plugin-ui, and uses the --shiki-* and --brand-* variables from @liebstoeckel/theme for on-palette code and atmosphere. Plugin discovery and manifest types come from @liebstoeckel/plugin-sdk.

Links

Licensed under MPL-2.0.