Skip to content
Brilliyan010Public

About

EchoKit — skeleton template for sound-driven web apps (Kiroween 2026, Skeleton Crew)

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

EchoKit — a skeleton template for sound-driven web apps

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.

The demo apps (Skeleton Crew proof)

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.

Try it online (no clone needed)

All three apps are deployed on GitHub Pages:

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.

Quick start

git clone https://github.com/Brilliyan010/echokit.git
cd echokit
pnpm install
pnpm dev        # Scream House :5173, Hush :5174, Snow Archery :5175
pnpm test       # unit + property-based tests (Vitest + fast-check)
pnpm build      # builds all apps
pnpm validate-kiro   # checks the /.kiro structure

Try it without a microphone

Scream 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.

Build your own app from the template

npx create-echokit-app my-app
cd my-app
pnpm install
pnpm dev

Subscribing to an event takes three lines:

const engine = useEchoKit();
useSoundEvent(engine, 'clap', () => lightCandle());

How it works

  • packages/echokit — framework-free core: feature extraction (RMS, autocorrelation pitch, transient detection), room calibration, the SoundDetector, 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 the sound-tuner custom agent.

Privacy

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.

Kiroween 2026

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.

License

MIT — see LICENSE.

About

EchoKit — skeleton template for sound-driven web apps (Kiroween 2026, Skeleton Crew)

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages