When you enter a hackathon on a tight student schedule, the easiest trap is building one monolithic app that barely holds together by demo day. For Kiroween 2026, I decided to take the Skeleton Crew prompt literally: build one lean, flexible codebase skeleton that powers multiple completely different applications—and prove the boundary mechanically, not just on a slide.
The result is Marrow (live demo · GitHub repo): a 450-line pure TypeScript kernel that drives three totally distinct real-time collaborative + AI-agent apps purely from declarative manifests.
The Hard Constraint: 500 Lines, Zero React, Zero App Branches
Most "starter kits" leak domain logic everywhere. To stop myself from cheating under deadline pressure, I started inside .kiro/ before writing a single line of UI:
- Steering docs (
.kiro/steering/structure.md&tech.md) declared an unbreakable rule:src/core/must stay under 500 non-empty, non-comment lines, import zero React, and never import anything fromsrc/apps/orsrc/ui/. - EARS Specs (
.kiro/specs/marrow-core/,showcase-apps/,kiro-crew-bridge/) broke every module into explicit acceptance criteria (requirements.md), locked TypeScript contracts (design.md), and trackable execution waves (tasks.md). - Kiro Hooks (
.kiro/hooks/core-loc-guard.json&boundary-lint.json) ran a custom tokenizer script (scripts/check-core-budget.mjs) andtsc --noEmitautomatically so any accidental React import or LOC bloat failed immediately.
Here is where the finished kernel landed:
| File | Responsibility | LOC |
|---|---|---|
src/core/types.ts | Pure domain contracts, event union, manifest schema | 63 |
src/core/registry.ts | Field-level manifest validator & dynamic registry | 87 |
src/core/store.ts | Event-sourced reducer, 30-frame undo/redo, localStorage | 142 |
src/core/sync.ts | #room= hash sync, BroadcastChannel, echo & ID dedup | 65 |
src/core/agent.ts | Dual-mode /api/agent runner + local persona brain & memory | 88 |
src/core/index.ts | Barrel export | 5 |
| Total | 0 boundary violations · 15 Vitest unit tests passing | 450 / 500 |
Three Living Worlds on the Exact Same Bones
Because every lane, card schema, color/font theme, health meter, and AI persona lives inside a declarative AppManifest, switching worlds hot-swaps the entire product experience in milliseconds:
- CryptOps (Incident War Room): Telemetry-dark monospace console (
Triage → Investigating → Mitigated → Postmortem) with anSLA Healthbar andSRE-Reaper. - LogosCrypt (Socratic Debate Arena): Editorial serif tribunal (
Thesis — For,Antithesis — Against,Evidence Vault) withArgument Rigorscoring andSocratic-Inquisitor. - SeanceTable (Co-op Haunted Mystery): Candlelit Victorian investigation board (
Clues Found,Prime Suspects,Ritual Theories) tracking The Midnight Disappearance of Clockmaker Vane with a risingDread IndexandThe Medium.
Making the Architecture Visible: Skeleton X-Ray & Live 4th-App Studio
Talking about clean architecture in a README is easy; letting someone see it live is better. I added three interactive proof surfaces directly into the app:
- Skeleton X-Ray (
X-Raybutton): Overlays live architectural callouts right onto the running page and opens a bottom blueprint HUD showing the exact450 LOCreuse ratio and a real-time scrollingMarrowEventstream. - Manifest Studio (
+ Spawn App): Opens a live JSON editor preloaded with a 4th app (Study Sprint Lab). As you edit,validateManifest()checks every field live—click Launch Live App and a brand-new 4th world boots instantly on the shared core. - 1-Click 2P Sync (
2P Sync): Opens two side-by-side live iframes (Peer-AlphaandPeer-Beta) sharing the same#room=channel so you can test multi-playerBroadcastChannelsync in a single window.
Extending Marrow with Kiro Crew (crew-app/)
Beyond the browser app, I packaged a native Kiro Crew companion inside crew-app/:
-
agents/marrow-moderator.yamldefines an autonomous room moderator and scaffolder. -
skills/marrow-scaffold/SKILL.mdteaches Kiro Crew how to generate a brand-new validatedAppManifestplus matching.kiro/specs/from a short prompt. -
skills/marrow-moderator/SKILL.mdcodifies event-triggered moderation and durable memory tagging. -
cron/room-digest.yamlautomates weekday room digests.
Designing So the Live Demo Never Breaks
One subtle lesson from building for an online hackathon: judging often happens weeks after submission. Free-tier WebSocket servers sleep, and API keys hit rate limits. By deploying on Vercel with a dual-mode /api/agent proxy (supporting live Gemini/OpenAI keys when configured, and seamlessly falling back to a context-aware deterministic persona + durable memory brain when offline), Marrow stays fast, interactive, and error-free 24/7.
Try It Yourself
- Live App: https://marrow-kiroween.vercel.app
- Source Code &
.kiro/Specs: https://github.com/lunizura/marrow-kiroween
Try toggling X-Ray, opening 2P Sync, or launching the 4th app in Manifest Studio—and let me know what world you'd build on top of a 450-line skeleton!