OK Tuner
Built with
OK Tuner is open source and made mostly of other open-source work. This is the list, for the curious and for anyone who wants to run their own copy. The code is on GitHub.
The app
A web page, so it runs in the browser you already have.
- Foldkit
The framework: one Model, Messages and a pure update function, after the Elm architecture. Its components draw the tuning list, the settings menu and the level meter.
- Effect
The library Foldkit is built on: typed effects, schemas and streams.
- TypeScript
Every line is typed.
- Vite
Builds the site and serves it in development.
- Tailwind CSS
Utility styling, written beside the markup.
Sound
Everything happens in your browser. The sound never leaves your device, and nothing is recorded.
- getUserMedia
Opens the microphone, with your permission.
- Web Audio API
Reads the sound as samples, twenty times a second.
- McLeod pitch method
Finds the pitch in each reading. The link is to this app’s own implementation.
Running it
A static site, with no accounts and no database.
- Vercel
Builds and hosts the site. The pages are built ahead of time, so there is no server.
- Sentry
Receives error reports, and nothing else: no visits are counted and nothing identifies you.
- Varlock and 1Password
Load the one secret the build needs.
- Bun
Installs the packages and runs the scripts.
Checking it
What is run before a change goes live.
- Vitest
The tests, which run without a browser.
- Oxlint and Oxfmt
Linting and formatting.
Built by Lightning Jar, a small web studio. Ported from the tuner in Stem Shovel.