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

takomusic

v7.0.0

Published

TakoMusic - A music composition DSL that evaluates to neutral IR and renders via plugins

Readme

TakoMusic (v4)

TakoMusic is a music composition DSL that evaluates to a neutral Score IR and renders via external plugins. The language core is backend-agnostic and pushes sound binding to Render Profiles.

Highlights

  • score/clip DSL with deterministic evaluation (export fn main() -> Score)
  • Rational time model (Dur/Pos) without ticks
  • Abstract sounds + render profiles decouple composition from output
  • Renderer Plugin protocol: capabilities / validate / render
  • Web Playground with real-time audio preview

Quick Start

# Install
npm install -g takomusic

# Build a single file (no config needed)
mf build song.mf

# Or initialize a project
mf init
mf build
mf render

Demo Song

Check out examples/cyberpunk_drive.mf - a complete synthwave track demonstrating TakoMusic's capabilities:

  • 64 bars, 8 tracks, 128 BPM
  • Drums, bass, arpeggios, pads, and lead melody
  • Uses std:core, std:transform, std:theory, std:drums
# Build and render the demo
mf build examples/cyberpunk_drive.mf
mf render examples/cyberpunk_drive.mf.score.json -p profiles/midi.mf.profile.json

Documentation

Web Documentation: https://takomusic.pages.dev (includes Playground)

Local documentation:

  • Language spec: docs/LANGUAGE.md
  • Core DSL & built-ins: docs/BUILTINS.md
  • Standard library: docs/STDLIB.md
  • Rendering and plugins: docs/RENDERING.md
  • Schemas: docs/SCHEMAS.md

Example (.mf)

import { concat, repeat } from "std:core";
import { kick, snare, hhc } from "std:drums";
import { majorTriad, minorTriad } from "std:theory";

fn drumPart() -> Clip {
  return clip {
    hit(kick, q, vel: 0.9);
    hit(hhc, e, vel: 0.5);
    hit(hhc, e, vel: 0.5);
    hit(snare, q, vel: 0.85);
    hit(hhc, q, vel: 0.5);
  };
}

fn chords() -> Clip {
  return clip {
    chord(majorTriad(C4), w, vel: 0.6);
    chord(minorTriad(A3), w, vel: 0.6);
    chord(majorTriad(F3), w, vel: 0.6);
    chord(majorTriad(G3), w, vel: 0.6);
  };
}

export fn main() -> Score {
  return score {
    meta { title "Simple Song"; }

    meter { 1:1 -> 4/4; }
    tempo { 1:1 -> 120bpm; }

    sound "piano" kind instrument { range A0..C8; }
    sound "kit" kind drumKit {
      drumKeys { kick; snare; hhc; }
    }

    track "Piano" role Instrument sound "piano" {
      place 1:1 repeat(chords(), 2);
    }

    track "Drums" role Drums sound "kit" {
      place 1:1 repeat(drumPart(), 8);
    }
  };
}

Pipeline

  1. Parse .mf -> AST
  2. Resolve/import + typecheck (Pos/Dur separation)
  3. Evaluate main() -> Score
  4. Normalize IR (bar:beat -> absolute Pos)
  5. Emit score.json (IR v4)
  6. Render via profile + renderer plugin

CLI

# Check syntax and types
mf check song.mf

# Build single file (no config required)
mf build song.mf
mf build song.mf -o output.json

# Build project with mfconfig.toml
mf build
mf build -w  # Watch mode

# Render to output format
mf render score.json -p profile.json

Renderer plugins are external executables; use --plugin to override the resolver if needed.

Standard Library

| Module | Description | |--------|-------------| | std:core | concat, repeat, overlay, padTo, slice, shift | | std:transform | transpose, stretch, quantize, swing, humanize | | std:theory | Chords, scales, intervals, progressions | | std:curves | linear, easeInOut, piecewise | | std:drums | Drum keys and patterns | | std:vocal | text, align, vibrato, autoBreath |

Versioning

  • Language: v4
  • IR schema: tako.irVersion = 4
  • Profile schema: tako.profileVersion = 1
  • Plugin protocol: tako.pluginProtocolVersion = 1

License

AGPL-3.0