Inspiration

HyperCard (1987 to 2004) let people with no programming background build working interactive software out of cards, buttons, fields and English-like scripts. That model never came back to the browser. The blank page was always the hard part, and an agent that writes the first draft is the piece 1987 was missing.

What it does

NecroCard is HyperCard in the browser, with an agent that writes the first draft of a stack from a plain-English description. Describe a stack in one sentence and Summon builds it: cards, buttons, fields and scripts. Every script is parsed by the real interpreter before the stack loads. Then you click through it in Browse mode, change any object or script in Edit mode, ask the agent to explain or fix a script, and share the whole stack in a link.

It is for people who want to make a small interactive thing (a quiz, a choose-your-own-adventure, a flashcard deck, an interactive zine) without learning a framework, and for teachers and tinkerers who remember HyperCard.

  • Stacks and cards. A stack holds a shared background and a sequence of cards; each card carries buttons, fields and images, each with properties and a script. The whole stack serializes to one JSON document with a lossless round-trip.
  • Backgrounds. Shared objects and scripts for the cards that use them, with an Edit Background mode so shared controls such as Next and Prev are editable.
  • NecroTalk. A frozen HyperTalk subset: handlers and object, card, background, stack message passing, navigation, put/get/set, if/repeat, answer/ask, visual effects, show/hide/beep, and a one-voice play. The interpreter is hand-written (tokenizer, parser and tree-walking evaluator, no eval), DOM-free, and reports Line N: errors.
  • Summon. Type a description; an agent returns stack JSON that is validated against the schema and whose every script is parsed against the real NecroTalk interpreter, with one retry on the error list before it loads.
  • Explain and Fix. From the script editor, send a script (and its error) to the agent to explain it or propose a one-undo fix.
  • Link sharing. The whole stack is deflated and base64url-encoded into the URL fragment; no server storage.
  • The library. A named list of your own stacks, backed by localStorage, saved automatically, with rename and delete.
  • 1-bit retro skin. A black-on-white early-Macintosh look with dither patterns, open-licensed bitmap-style fonts and stepped transitions (no smooth fades).
  • Play. Three bundled sample stacks (quiz, adventure, flashcards) run with no server and no AI call.

How we built it

From one hand-written brief, Kiro generated five steering docs, then twelve specs (requirements, design, tasks) executed in order: the stack model, the NecroTalk interpreter, browse and edit modes, the script editor, Summon, sharing, the 1-bit skin, the stack library, background editing, play, and single-service hosting.

TypeScript, Vite and plain DOM and CSS in the browser, with no UI framework. One Node node:http server on Render's free tier serves the app and the Summon API, which calls Google Gemini over plain REST with no AI SDK. You can also bring your own Gemini key, which stays in your browser. Vitest, fast-check and Playwright test it, and a read-only Kiro agent reviewed the interpreter against the frozen grammar.

Challenges we ran into

  • Spec 2 (the interpreter) ran out of credits mid-execution and had to be resumed from its task list.
  • A Gemini-facing JSON schema that looked right ($ref with additionalProperties: false) rejects every object. The stack-model design review caught it, with two other run-time failures, before any code was written.
  • Windows details: PowerShell 5.1 cannot run && chains, so the finish hook calls npm run check; Kiro cannot write .kiro/settings/, so the MCP config was created by hand from Kiro's content.
  • A 1-in-100 flaky end-to-end test (a click on the Edit toggle before the first stack loaded). Fixed by keeping the toggle disabled until a stack loads, then checked against current Playwright docs with the Context7 power and proven with 100 of 100 runs.

Accomplishments that we're proud of

  • Summon output is validated against the real interpreter, so a generated stack either runs or is repaired and retried before you see it.
  • The read-only reviewer agent's first run returned 19 findings on code whose 198 tests all passed, and across its review rounds it found the spec's biggest gap: nothing could read a field's text in an expression.
  • 1,098 unit tests, 31 end-to-end tests and 28 property tests, with every spec's tasks ticked against evidence.
  • Property tests found bugs no example had: -(-b) printed as --b, which the tokenizer reads as a comment.

What we learned

A written contract does more work than a test suite alone. Freezing the grammar in the brief and steering let a read-only agent and Summon's validator check code against it, and spec reviews found defects in documents instead of in a debugger. The log is also explicit where the method broke: the hosting spec's code came from a draft written outside Kiro, and its spec was written after the code.

What's next for NecroCard

item, find and send from HyperTalk, left out of the frozen subset by choice; more sample stacks; and keeping the free demo awake and working through the judging period.

Built With

Share this project:

Updates

Submission history