One sound. Any app.
EchoKit is a TypeScript template for building web apps that respond to sound through the microphone — no server, no AI, no special hardware. One mechanism: sound → event.
microphone → Web Audio API → features (volume, pitch, transient)
→ calibration (room noise floor) → event detectors → typed event bus → your app
| Event | Trigger | Example use |
|---|---|---|
clap |
sharp transient (clap, snap) | action / confirm / light a candle |
shout |
sudden high vocal energy | "banish the ghost", alarm |
whisper |
low but present energy | sneak mode |
silence |
below the noise floor for N seconds | quiet reward / idle |
hum:note |
stable pitch (autocorrelation) | note control / simple theremin |
Builders get: 30-second auto-calibration, a noise gate, an event bus with
React hooks (useSoundEvent, useNoiseLevel), Demo Mode (synthetic
audio, so the app works with no microphone), and property-based tests for
the detectors.
Same foundation, three apps:
- Scream House (
apps/scream-house) — a haunted-house game: shout to banish ghosts, whisper to sneak between rooms, clap to light candles. - Hush (
apps/hush) — a quiet-room monitor for teachers and librarians: live ghost meter, quiet streaks, session statistics, class mode. - Snow Archery (
apps/snow-archery) — a touch-only archery game in a snowy night forest: press to aim, pull to draw, release to fire. Wind gusts, moving targets, a bullseye combo, and no microphone at all — built for a phone with fingers only.
All three apps are deployed on GitHub Pages:
- Scream House: https://brilliyan010.github.io/echokit/scream-house/
- Hush: https://brilliyan010.github.io/echokit/hush/
- Snow Archery: https://brilliyan010.github.io/echokit/snow-archery/
- Landing page: https://brilliyan010.github.io/echokit/
Deployed from main (workflow pending upload — see REMAINING.md §6; until
then re-deployed by a manual branch-based gh-pages push). No microphone
needed for any app — Scream House and Hush have Demo Mode and a keyboard
fallback, Snow Archery is touch-only.
git clone https://github.com/Brilliyan010/echokit.git
cd echokit
pnpm install
pnpm dev # Scream House :5173, Hush :5174, Snow Archery :5175pnpm test # unit + property-based tests (Vitest + fast-check)
pnpm build # builds all apps
pnpm validate-kiro # checks the /.kiro structureScream House and Hush have Demo Mode: synthetic audio (clap, shout,
whisper, silence) played through the real detector pipeline — no mic
needed. They also have a keyboard fallback: C clap, S shout, W whisper.
Snow Archery needs neither: it is played entirely by touch.
npx create-echokit-app my-app
cd my-app
pnpm install
pnpm devSubscribing to an event takes three lines:
const engine = useEchoKit();
useSoundEvent(engine, 'clap', () => lightCandle());packages/echokit— framework-free core: feature extraction (RMS, autocorrelation pitch, transient detection), room calibration, theSoundDetector, the typed event bus, and deterministic audio fixtures.packages/echokit-react—useEchoKit,useSoundEvent,useNoiseLevel,CalibrationWizard,NoiseMeter.tools/create-echokit-app— scaffolding CLI (incomplete template; copy an existing app instead).tools/echokit-mcp— custom MCP server:validate_event_config,generate_fixture,list_events..kiro/— 9 specs, 4 hooks, 3 steering docs, MCP config, and thesound-tunercustom agent.
Audio is processed on-device in real time. Nothing is recorded, stored,
or sent. The only thing persisted is the calibration (a few numbers) in
localStorage. See .kiro/steering/audio-safety.md.
Built for Kiroween 2026 (Devpost, AWS Kiro),
category Skeleton Crew. See BUILD-NOTES.md for an honest record of how
this was built — including the fact that Kiro was not available in the build
environment and a real Kiro pass is still required before submission.
MIT — see LICENSE.