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

tuneframes

v0.1.1

Published

Agent-native music generation. Write Tone.js, render to audio.

Readme

TuneFrames

Agent-native music generation.

Write a single HTML file with Tone.js. Render it to MP3 or WAV with one command. No per-render fees. No Suno wrapper. Your agent, your audio.

npx tuneframes init my-track
cd my-track
tuneframes render track.html --output my-track.mp3

How it works

  1. Write — Create an HTML file using Tone.js. Tone.Offline renders the composition to an AudioBuffer with sample-accurate timing.

  2. Render — The tuneframes render command:

    • Spins up a headless browser
    • Loads your HTML with Tone.js
    • Runs Tone.Offline() to get the AudioBuffer
    • Converts to WAV via audioBufferToWav()
    • Encodes to MP3 via FFmpeg
  3. Done — Your audio file, deterministic every time.


CLI

# Install globally
npm install -g tuneframes

# Render a composition
tuneframes render my-track.html --output my-track.mp3

# Preview in browser (live reload)
tuneframes preview my-track.html

# Scaffold a new track
tuneframes init my-track

Example

<script src="https://unpkg.com/[email protected]/build/Tone.js"></script>
<script>
  // Define 4-bar chord progression
  const chords = [
    ['C4', 'E4', 'G4'],  // C major
    ['A3', 'C4', 'E4'],  // A minor
    ['F3', 'A3', 'C4'],  // F major
    ['G3', 'B3', 'D4'],  // G major
  ];

  const synth = new Tone.PolySynth(Tone.Synth).toDestination();
  const seq = new Tone.Sequence((time, note) => {
    synth.triggerAttackRelease(note, '4n', time);
  }, chords.flat()).start(0);

  Tone.Transport.start();

  // Render with Tone.Offline
  Tone.Offline(() => {
    new Tone.PolySynth(Tone.Synth).toDestination();
    new Tone.Sequence((time, note) => {
      synth.triggerAttackRelease(note, '4n', time);
    }, chords.flat()).start(0);
    Tone.Transport.start();
  }, 8).then(buffer => {
    const wav = audioBufferToWav(buffer);
    writeFile('track.wav', Buffer.from(wav));
  });

  // Expose writeFile to the browser
  function audioBufferToWav(buffer) { /* included by tuneframes */ }
</script>

See examples/ for full compositions — ambient, lo-fi, techno, orchestral, piano, and bass.


Requirements

  • Node.js 18+
  • FFmpeg (install via apt install ffmpeg or brew install ffmpeg)

Comparison

| | TuneFrames | Suno API | ElevenLabs | |---|---|---|---| | Open source | ✓ | ✗ | ✗ | | Per-render fee | None | Yes | Yes | | Agent-native | ✓ | Wrapper | Wrapper | | Full audio control | ✓ | Limited | Limited | | Deterministic output | ✓ | ✗ | ✗ |


License

Apache 2.0