Inspiration
In 1987 Apple shipped HyperCard: a program that let ordinary people build software by stacking cards, drawing buttons and writing plain-English scripts called HyperTalk. It quietly taught a generation that computers could be theirs - then it died, and browsers never quite filled the hole it left.
PhantomCard asks what happens if you take HyperCard seriously as a web-native medium: the same model - stacks of cards holding buttons, fields and painted pictures, glued together by a small humane language - running with zero dependencies in a browser tab, shareable as a single URL. Halloween made the perfect excuse: resurrecting dead software is the whole point of Kiroween's Resurrection category.
What it does
PhantomCard is a working HyperCard resurrection:
- The object model: stacks contain cards, cards contain objects - buttons, fields, labels and painted canvases. Background layers are shared across cards, exactly like the original.
- A real HyperTalk interpreter: a hand-written lexer, Pratt-style parser and interpreter that understands
on mouseUp,put ... into,ask,answer,go to card,play,item N of,&concatenation,it, and the message-passing hierarchy (object - card - stack). - Live authoring: Button and Field tools let you drag new objects onto a card, rename them, restyle them and open a script inspector to write live HyperTalk - the same inspect-and-script loop that made HyperCard magic.
- System 7 monochrome aesthetic: pixel font, dithered fills, dissolve transitions, menu bar, a CRT flicker toggle.
- Shareable stacks: the whole stack serializes into the URL, so a stack is a link - the closest the web gets to handing someone a stack of index cards.
- Bundled demo stacks: a Welcome tour, "The Séance Deck" (a working Ouija board whose oracle is written in HyperTalk — including real chunk expressions like the number of items of and the number of chars of) and "The Haunted House" (a five-card adventure) and "Ghost Hunt" (a playable whack-a-mole written entirely in HyperTalk — 15 ghosts, a score counter and an end-of-round verdict, all driven by card fields and handler calls).
How I built it
This project was authored with Kiro - the ghost in the machine doing its own resurrection work:
- Spec-driven development:
.kiro/specs/holds the requirements and design documents that steered the build - the stack/card/object data model, the HyperTalk grammar surface and the interaction modes were spec'd before code was written. - Steering rules:
.kiro/steering/keeps the rules the agent worked under (zero build step, ES modules only, System-7 visual fidelity, no dependencies). - Kiro CLI generated the interpreter core (lexer, parser, interpreter for a HyperTalk subset), the renderer and the editor tooling, and iterated on parser bugs as the demo stacks pushed the grammar.
The app itself is pure ES modules - no build step, no bundler, no dependencies - deployed to GitHub Pages as static files.
Challenges we ran into
- HyperTalk's grammar is wonderfully irregular (
the number of chars of x,item N of list): the parser needed dedicated constructs, tuned until demo stacks ran real scripts end to end. - The message hierarchy (scripts can pass an event up object - card - stack) had to queue re-entrant dispatches so a handler changing cards can't corrupt the render pass.
- Achieving System-7 dissolve transitions in CSS while keeping selection handles and script inspectors interactive.
Accomplishments that we're proud of
A working HyperTalk interpreter, a drag-and-drop authoring mode, URL-shareable stacks and four playable demo stacks - all in under 4,000 lines of dependency-free ES modules.
What we learned
HyperCard's genius wasn't nostalgia: cards + objects + a tiny language is still a legitimately good computing model, and it maps onto the DOM almost perfectly.
What's next for PhantomCard
Full HyperTalk coverage (repeat loops, the property access for every object type), classic visual effects (barn door, iris, checkerboard wipes), a paint layer per card, and importing real HyperCard stacks via reverse-engineered file formats.
The seance worked. The ghost is back.