gitwtfhub

wtf is wasm-music-2026?

petersalomonsen/wasm-music-2026 — explained in plain English

Analysis updated 2026-05-18

0TypeScriptAudience · developerComplexity · 3/5LicenseSetup · easy

TL;DR

A single music track built entirely as code that compiles to WebAssembly, composed by a person collaborating with an in-browser AI agent to write instruments and arrange the song.

Mindmap

mindmap
  root((wasm-music-2026))
    What it does
      Song as code
      Compiles to WebAssembly
      Plays in browser
    Tech stack
      TypeScript
      AssemblyScript
      Faust
      GLSL
    Use cases
      Play the song live
      Study Faust instruments
      See AI-assisted composing
    Audience
      Developers
      Music coders

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Why would anyone build with this?

REASON 1

Play and inspect a fully code-based song directly in your browser.

REASON 2

Study an example of building music instruments in the Faust DSP language.

REASON 3

See a real recorded example of composing music by directing an AI coding agent.

REASON 4

Learn how music, visuals, and synths can be combined and compiled to WebAssembly.

What's in the stack?

TypeScriptAssemblyScriptWebAssemblyFaustGLSL

How it stacks up

petersalomonsen/wasm-music-20260xradioac7iv/tempfs7vignesh/pgpulse
Stars000
LanguageTypeScriptTypeScriptTypeScript
Setup difficultyeasymoderatemoderate
Complexity3/53/54/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you spin it up?

Difficulty · easy Time to first run · 5min

The song plays directly in the browser via a link, no local install needed to listen.

You can use, modify, and share this, but any project you build on it must also be released as open source under the same license.

Wtf does this do

This repository holds a single music track built with a project called WebAssembly Music, a browser based digital audio workstation where the notes, the arrangement, the synthesizer instruments, and the visuals are all written as code that compiles to WebAssembly and runs directly in a web page. Nothing here is a pre-recorded audio file: opening the song in the app clones this repo, compiles the code, and plays it live in the browser. What makes this particular track notable is how it was made. The author built it by talking with an AI agent running inside the browser, and a linked article walks through the process with screenshots of the agent writing instrument code, editing the arrangement, and pushing changes back to GitHub. The README is careful to point out that the human remains the composer throughout: this is not an AI music generator that hands back a finished audio clip. Every part, the arrangement, the patterns played in on a MIDI keyboard, and the code itself, was directed and edited by a person. The AI writes and reorganizes code on instruction, it does not compose independently. The repository is organized around a handful of files. The sequence of notes and arrangement lives in one file, the combined synth instruments are written in AssemblyScript in another, and the instruments themselves are defined using the Faust digital signal processing language in a separate folder. A shader file handles the music-reactive visuals shown alongside the track, and an included JSON file records the actual AI conversation that produced the piece, so that history travels along with the code. The project is released under the GPL-3.0 license, matching the license of the underlying WebAssembly Music project it depends on.

Yoink these prompts

Prompt 1
Explain how the notes and arrangement in song.js relate to the synth instruments in synth.ts.
Prompt 2
Walk me through how the Faust files in this repo define the synthesizer instruments.
Prompt 3
Help me understand the studioagent-session.json file and what it captures about the AI conversation.
Prompt 4
Show me how the music-reactive shader.glsl visual is driven by the song's playback.

Frequently asked questions

wtf is wasm-music-2026?

A single music track built entirely as code that compiles to WebAssembly, composed by a person collaborating with an in-browser AI agent to write instruments and arrange the song.

What language is wasm-music-2026 written in?

Mainly TypeScript. The stack also includes TypeScript, AssemblyScript, WebAssembly.

What license does wasm-music-2026 use?

You can use, modify, and share this, but any project you build on it must also be released as open source under the same license.

How hard is wasm-music-2026 to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is wasm-music-2026 for?

Mainly developer.

View the repo → Decode another repo

This repo across BitVibe Labs

Don't trust strangers blindly. Verify against the repo.