kitlangton/effect-institute
Learning ResourcesA voice-narrated, semi-interactive course for learning Effect, with synchronized code animation and an authoring toolkit for writing your own lessons.
What it is
Effect Institute is a lesson site for learning Effect. Each section pairs a voice transcript with code that changes in step with the narration, word by word, so the reader sees an animation rather than reading final code. Lessons are written in a TypeScript DSL: a transcript plus a code animation built from stack, line and slot primitives, with a flow that fires steps when spoken words are reached.
The repository is more than the shipped course. It contains the full authoring pipeline — a course compiler, a browser recording bar, an ffmpeg audio pipeline, ElevenLabs narration generation and alignment, a CLI, and a Cloudflare Worker that serves the published site. The live course is at www.effect.institute.
Quickstart
You need Bun. No accounts, database or API keys are required to run, study, test or build the site.
bun install
bun dev # http://localhost:3210
Vite compiles the lesson DSL in content/ into .authoring/content/ and watches content/**/*.ts; saving a lesson updates the open page without a full reload. The CI checks need no key either:
bun run typecheck
bun run lint
bun run test
bun run build
To write a new lesson, scaffold it, fill in the transcript and animation, then verify it from the CLI:
bun narrate new my-chapter/my-section
bun narrate steps -c my-chapter my-section
bun narrate build my-chapter
New chapters are created as drafts, so they appear in bun dev but are excluded from the published site until you remove draft: true. Published sections require both an audio file and word timings.
Adding narration
There are three supported routes: record in the browser, generate speech with an ElevenLabs key, or import an existing audio file. Recording and processing need ffmpeg on PATH. With ELEVENLABS_API_KEY set, recordings are aligned to the transcript; without a key, timings are estimated from the take length so steps fire immediately, and bun narrate align can fix them later. The audio chain converts takes to mono 48 kHz Opus/WebM, normalizes loudness and can be replaced through AUTHORING_AUDIO_CHAIN_CMD. bun narrate doctor reports missing audio, missing or estimated timings, and timings made for an older transcript.
Using your own fork
To deploy elsewhere, change the worker names and routes in wrangler.jsonc, the guard names in scripts/deploy/targets.ts, and the repository condition and confirmation string in .github/workflows/deploy.yml. GitHub Actions deployment expects CLOUDFLARE_API_TOKEN and CLOUDFLARE_ACCOUNT_ID in a production environment; without the token, pushes only run the dry run. bun scripts/deploy/cf-deploy.ts production --dry-run checks the build and config without uploading.
Constraints
The site itself needs no runtime secrets; ElevenLabs settings are only read by local tools and are never deployed. Authoring code must stay out of production: bun run build fails if dist/ contains authoring markers or the ElevenLabs endpoint, and dev endpoints require an X-Authoring: 1 header for POSTs. Lesson files under content/** are hand-written; public/content/** and *.timings.json are generated and should not be edited by hand. Every on("word") must match the transcript and every annotation pattern must match the code, or the build fails. Editing a transcript invalidates its timings until the section is re-recorded or realigned. Licensed under MIT.
HotRepo's take
The repository was recorded on the TypeScript new-project list on 2026-11-28 with 101 stars and 12 forks, all gained inside its first observation window after creation. It has no recorded GitHub daily rank yet, so the data shows an early launch rather than a sustained trend. What stands out technically is the scope: a small narrated course is backed by a tested timing-alignment core, a guarded deploy, and a build check that keeps authoring-only code out of the published bundle — details that matter if you want to reuse the format for a different library or language.
Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.
You might also like
- ninetyhe-90/training-exploreInteractive lessons that let you play, step through, and verify a small Transformer's real forward-pass numbers.
- linjiejim/ohmworkInteractive electronics course where each concept comes with a draggable, live-computed circuit simulation and short narrated lessons.
- alchemy-run/alchemyWrite cloud resources and app code in one type-safe TypeScript Effect program, replacing YAML IaC glue.