npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@coldsurf/synth-kit

v0.2.0

Published

Color-blind Web Audio synthesis engines (wall, drumkit, bass, dub chamber, mixer strip) behind a VST-style engine/preset model. Browser-first; see README for offline-rendering caveats.

Readme

@coldsurf/synth-kit

Color-blind Web Audio synthesis engines, built for COLDSURF Tape — a generative music series produced entirely from code, no samples, no external audio.

Play the live demo — a whole shoegaze track wiring every engine together, then read the ~40 lines that made it.

Mental model

Think VST: one engine, many patches.

  • An engine (createWall, createDrumKit, createBass, createDubChamber, createStrip) knows nothing about "sound." It only accepts parameters.
  • A preset is the color — a plain object of parameter values (SUNWALL, BLUEWALL, DRY_KIT, DUB_HOLY_BASS, ...).
  • Every engine takes an AudioContext and a bus: AudioNode it connects into — nothing else. Compose engines by wiring their outputs into shared buses, channel strips, or a dub chamber.
import { createWall, SUNWALL, runStepClock } from '@coldsurf/synth-kit'

const ctx = new AudioContext()
// createWall takes the starting chord as 4 tones (root · 3rd · 5th · octave), in Hz.
const wall = createWall(ctx, ctx.destination, SUNWALL, [220, 261.63, 329.63, 440])

wall.rampGain(0.8, 2) // fade in over 2s

// drive the time-varying parts (chord changes, distortion, tremolo) from your own clock —
// the scheduler is color-blind; your sequencer decides what happens at each step.
const chords = [
  [220, 261.63, 329.63, 440], // Am
  [174.61, 220, 261.63, 349.23], // F
]
runStepClock(ctx, {
  start: ctx.currentTime + 0.1,
  step: 60 / 88 / 4, // 16th notes at 88 BPM
  totalSteps: 64,
  onStep: (stepIdx, when) => {
    if (stepIdx % 16 === 0) wall.setChord(chords[(stepIdx / 16) % chords.length])
  },
})

// on teardown: wall.dispose()

Engines

| Engine | Import | Vocabulary | Built-in presets | | --- | --- | --- | --- | | Wall | createWall | sawtooth chord stack → WaveShaper distortion → tremolo LFO. Shoegaze/blackgaze/post-rock/post-metal walls. | SUNWALL · BLUEWALL · WHITEWALL · BLACKWALL · SUBLIME_HATE_WALL · GRATIS_WALL | | Drumkit | createDrumKit (./drumkit) | kick (pitched body + optional sub/click) · snare (tone + noise, optional gated tails) · hat (filtered noise, open/closed). | DRY_KIT · WET_KIT · IRON_KIT · BATHEDAY_KIT · SUBLIME_KIT · REVEAL_KIT · DUB_RELAY_KIT · DUB_HOLY_KIT · DUB_POWER_KIT | | Bass | createBass (./bass) | reese + sub layers. | DUB_RELAY_BASS · DUB_HOLY_BASS · DUB_POWER_BASS | | Dub chamber | createDubChamber (./dub) | sidechain duck bus + cross-feedback stereo delay return + tape saturation → master. | DUB_RELAY_CHAMBER · DUB_HOLY_CHAMBER · DUB_POWER_CHAMBER · CRUSH_CHAMBER | | Space | createStrip (./space) | per-instrument channel strip — pan + carve EQ (HP/LP/bell), opt-in only. | — (mixer, not an instrument) | | Scheduler | runStepClock | color-blind lookahead step clock (AudioContext.currentTime based, no setInterval jitter). | — |

All engine handles expose dispose(). Wall's time-varying parameters are driven by dedicated setters (setChord, setDistortion, setTremDepth, setBendDepth, rampGain) — call whichever is changing from your own clock (e.g. runStepClock). There is no single update() tick.

Design invariants

  • Zero runtime dependencies. Pure Web Audio API + TypeScript.
  • Single-entry barrels. Import from the package root or its ./drumkit / ./bass / ./dub / ./space subpaths only — no deep imports into internal files.
  • Engines never own scheduling, master fades, sidechain, or panning. Those are the caller's responsibility — engines only build the node graph and expose handles.
  • Presets never merge "close enough" values. Two presets that look nearly identical (e.g. two kick bodies 3 Hz apart) stay separate constants — the goal is preserving an exact, previously-shipped sound, not deduplicating numbers.

Browser vs. offline rendering

This package is built and tested against real browser AudioContext. It does not currently ship an offline-rendering runtime.

If you plan to render score/patterns to a .wav file outside a browser (e.g. from a CLI or server process), be aware: some engines' time-varying parameters (the wall engine's distortion envelope, specifically) reassign WaveShaperNode.curve at runtime, which real browsers allow but node-web-audio-api currently does not. Presets with a static (non-ramping) distortion value, and all drumkit/bass/dub engines, are unaffected. A dedicated offline-rendering story (headless-browser based, or an engine-level fix) is tracked separately — see the issues tab.

License

MIT