Skip to content
gtrush03Public

About

A presentation kit in plain HTML, CSS and JavaScript: 40 slide layouts, 32 transitions, a command line tool and an MCP server for agents.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

The base deck moving through five slides, with a different transition into each one

Stage Kit

Decks built on one moving light.

Open the studio · Open the base deck · Download the kit

A presentation kit in plain HTML, CSS and JavaScript modules. One gradient field, called the light, sits behind every slide and glides between camera positions. The kit has 40 slide layouts, 32 transitions, 9 light styles, 10 text entrances and 12 looks, and derives every colour from one accent. A deck is one JSON file. A command line tool and an MCP server let an agent write the deck, check it and look at a picture of each slide. There are no dependencies.

Looks

A look sets the colour, the light, the type and the text entrance in one word. The kit has 12, and every colour in a look comes from one accent, so any accent gives a full palette.

The title slide in each of the 12 looks: studio, midnight, ember, forest, signal, ocean, halftone, editorial, neon, plum, graphite and terracotta

Layouts

The base deck has one slide per layout. The name under each slide is the value of layout in the deck file.

All 40 slides of the base deck, one per layout, each with the name of its layout

The studio

The studio is the page at the root of the kit. It plays the deck, sets the look and the colour, shows every layout and transition, and exports the deck as one HTML file.

The studio: a live preview of the deck next to the look and colour controls

Run it

python3 serve.py

Then open http://127.0.0.1:8270 for the studio and http://127.0.0.1:8270/deck/ for the base deck. Any static file server works; the studio uses ES modules, so it needs http and does not run from file://. A built deck is the exception: it is one file that opens from disk.

Make a deck

node bin/stagekit.mjs new talk --title "Q3 review" --look ember
node bin/stagekit.mjs add talk '{"layout":"statement","title":"Say one thing.","lede":"Then show it."}'
node bin/stagekit.mjs shot talk 2
open talk/index.html

new writes talk/deck.json and talk/index.html. Every later command checks the deck, saves it and rebuilds the page. index.html carries the styles, the fonts, the scripts and any local pictures, so it can be sent as one file. shot writes a PNG of a slide with the Chrome, Chromium or Edge installed on the machine. The command line tool needs Node 18 or later.

Let an agent make it

claude mcp add stagekit -- node /path/to/stagekit/mcp/server.mjs

The MCP server has 14 tools: it lists the layouts, creates and edits decks, checks them and returns a picture of any slide. AGENTS.md is the guide an agent reads: the deck format, every layout with its fields, the theme and the rules for writing slides. llms.txt is the short index and deck.schema.json is the JSON Schema of a deck file.

A slide is data

{ "layout": "gallery", "label": "Gallery", "title": "Three frames,\none row.",
  "pictures": [ { "src": "one.jpg", "title": "First" }, { "src": "two.jpg", "title": "Second" }, { "title": "Third" } ] }

layout names one of the 40 layouts; the other keys are its fields. node bin/stagekit.mjs layouts lists them and node bin/stagekit.mjs layouts gallery shows the fields and a sample of one. A picture frame with no src shows art drawn in the theme colours. Every slide also takes label, source, notes, aura (the camera position of the light: rise, top, left, right, corner, corner-l, duo, quiet or full) and tr (the transition played when the slide is entered). In text, ==words== puts an accent block behind them, **words** colours them and [[Key]] draws a key cap.

What is in the folder

Path What it is
index.html, studio.css, studio.js The studio: live preview, looks, colour wheel, every layout as a framed slide, a slide playground, export
deck/deck.json, deck/index.html The base deck, 40 slides, one per layout, and the page built from it
examples/ Three decks to copy: a pitch, a product update and a talk
bin/stagekit.mjs, bin/api.mjs The command line tool, and the same functions as a Node module
mcp/server.mjs The MCP server, over standard input and output
AGENTS.md, llms.txt, deck.schema.json The guide for agents, its short index and the JSON Schema of a deck
kit/layouts.js The 40 layouts: fields, checks and the function that draws each one
kit/page.js Turns a deck into a page, linked to the kit or with everything inside
kit/tokens.css Type scale, colour tokens, curves, durations, entrances, chart build classes
kit/deck.css Stage, slide layouts, picture frames, glass controls, print rules
kit/deck.js The engine: navigation, builds, counters, notes, config, print mode
kit/aura.js The light: WebGL gradient field with 9 camera positions, 9 styles and a canvas fallback
kit/transitions.js 32 transitions in two families, cover and scene
kit/theme.js Config defaults, 12 looks, OKLCH palette, CSS tokens
kit/qr.js QR code encoder for the offer and close layouts
kit/core.js Curves, the seekable player, small helpers
kit/fonts/ Inter and Fragment Mono with their licences

Theme

The theme of a deck, and boot() in a hand-written page, take one config object. Every key is optional. "look" names a starting point (studio, midnight, ember, forest, signal, ocean, halftone, editorial, neon, plum, graphite, terracotta) and any other key laid over it wins.

import { boot } from 'stagekit/deck.js';
boot({
  brand: { name: 'Your name', logo: '' },
  color: { accent: '#2456FF', mode: 'mono', ground: 'light' },   // mode: mono, analogous, complement, split, triad, custom
  light: { style: 'blobs', grain: 0.62, speed: 1, intensity: 1 },  // style: blobs, aurora, mesh, rays, bands, halo, liquid, dots, silk
  type: { display: 'apple', mono: 'apple', scale: 1 },
  motion: { curve: 'expo', speed: 1, enter: 'mask' },              // enter: mask, fade, words, chars, wipe, scale, drop, slide, flip, type
  transition: 'mixed',                                             // or one transition name for every slide
  nav: { style: 'pill', pos: 'br' },                               // style: pill, scrub, dots, none
  radius: 24,
  slides: { 3: { tr: 'glitch', aura: 'left' } },                   // per-slide overrides, numbered from 1
});

The same object travels in a URL as deck/?c=... and is what the studio exports as theme.json.

Use the parts on their own

import { create as createAura } from 'stagekit/aura.js';
const light = createAura(document.querySelector('#bg'), { camera: 'rise' });
light.play();
light.to('corner');            // glide to another position

import { create as createTransition } from 'stagekit/transitions.js';
const t = createTransition(document.body, { kind: 'pixel' });
t.play({ onSwap: changeTheScene, onEnd: () => t.destroy() });

Both render a time t through seek(t), so they can be played, scrubbed or captured frame by frame. Bare imports resolve through an import map: <script type="importmap">{"imports":{"stagekit/":"./kit/"}}</script>.

Keys

Right arrow, down arrow, space or enter go forward; left arrow, up arrow or backspace go back. Home and End jump to the first and last slide, 1 to 9 jump to a slide, F is full screen, R replays the slide, N shows the speaker notes. deck/?print lays every slide out on its own page for PDF.

Fonts and licences

The code is under the MIT licence, see LICENSE. Inter and Fragment Mono are bundled under the SIL Open Font License 1.1; their licence texts are in kit/fonts/. SF Pro and SF Mono are reached through the system font stack on Apple devices and are not distributed with the kit. Switzer is an optional display font that loads from the Fontshare API and is not bundled.

About

A presentation kit in plain HTML, CSS and JavaScript: 40 slide layouts, 32 transitions, a command line tool and an MCP server for agents.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages