Introduction
Write music in TypeScript and play it with your own React interface. Start here to understand the toolkit, then install it or explore a sound.
What is React Strudel Kit?
react-strudel-kit is a typed layer for Strudel, a system for making music with code. Strudel supplies the pattern engine and audio scheduler; the kit adds typed composition and React playback integration.
Use it to build musical experiments, interactive lessons or an instrument with your own controls. The website is a reference app you can listen to and learn from.
What you get
- Typed composition: build patterns with
fn,chainand Mini-Notation helpers, with checks for supported function names and arguments. - React playback: connect
useStrudelto your controls withplay,updateandstop. No provider is required. - Inspectable output: serialize typed patterns to Strudel code and follow the source behind the examples.
The types cover the kit’s supported API subset. They do not check musical values, sample availability or raw JavaScript. Built-in synths work immediately; sample banks are not loaded for you.
The kit is open source under AGPL-3.0-or-later. Strudel retains its own license and notices.
Explore the docs
Learn by playing
Start with a note. Add rhythm, bass and layers, then connect your music to React controls.
Shape a sound
Explore kicks, snares, hi-hats, bass, keys, leads and pads. Hear what each parameter changes.
Take a pattern apart
Follow complete examples, from a simple melody to lo-fi, house and an interactive React mixer.
Find a function
Look up typed helpers and playback behavior, with links to the examples that use them.
Get started
Follow Installation to add the package to your React app and play a first pattern.
Want to experiment first? Open the Playground.