Ichor is a browser synthesizer built with Svelte 5, Tone.js, and Cloudflare Workers.
This GitHub repository mirrors the canonical GitLab project. The original commit history and author information are preserved. The full upstream README is available in UPSTREAM_README.md.
Ichor runs entirely in the browser. It has two main oscillators with subtractive, FM, AM, and Karplus-Strong engines, plus a sub oscillator and noise generator. Notes can be played with the computer keyboard, a MIDI controller, or the built-in arpeggiator.
The modulation system includes two LFOs and two modulation envelopes. Controls can be connected by dragging a modulation source onto a knob. Each route keeps its own bipolar amount, and the interface shows the current modulation directly on the control.
The effects rack includes distortion, bitcrushing, chorus, delay, and reverb. A Strudel drawer adds live-coded patterns without turning the project into a full sequencer.
Shared sessions use Cloudflare Durable Objects. Opening a session link connects multiple browsers to the same patch and synchronizes edits over WebSockets.
audio.patch is the canonical synth state. UI controls, MIDI input, Strudel patterns, the JSON editor, and remote session updates all write through validated setters. Zod checks each update before the audio graph changes.
Each write carries a source tag such as ui, midi, or remote. Subscribers ignore their own source when needed, which prevents feedback loops between the editor, audio engine, and multiplayer connection.
The browser handles synthesis through Tone.js and the Web Audio API. SvelteKit builds the interface and server routes. Cloudflare Workers host the application, while Durable Objects hold shared session state.
- Svelte 5 and SvelteKit
- TypeScript and Zod
- Tone.js and the Web Audio API
- Tailwind CSS with Catppuccin color tokens
- Cloudflare Workers and Durable Objects
- CodeMirror 6 and Strudel
The project uses pnpm.
pnpm install
pnpm devThe development server runs at http://localhost:5173 by default.
Before running the project checks or a production build, regenerate the Cloudflare worker types:
pnpm gen
pnpm check
pnpm buildThe current upstream snapshot has an older generated worker-configuration.d.ts, so pnpm check fails until pnpm gen updates it.
To test the Cloudflare build locally:
pnpm previewsrc/lib/audio/ synth engine, patch schema, MIDI, modulation, sessions
src/lib/ui/ controls, drawers, keyboard, visualizers
src/lib/server/ Durable Object classes
src/routes/ SvelteKit pages and session endpoints
scripts/inject-do.mjs adds Durable Object exports to the worker build
wrangler.jsonc Cloudflare bindings and deployment configuration
Ichor is a collaborative project. This mirror keeps the GitLab commit history so each contributor's work remains attributable. ZacharySF is a contributor, not the sole author.
The project is licensed under the MIT License. Copyright remains with nunera as stated in LICENSE.