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

@cephasteom/satori

v0.2.0

Published

A live coding language for unlimited pattern interference. It supersedes Zen, which was restricted to grid-based event triggering. Satori offers fully flexible timing, and allows parameters from any musical layer to control or transform those of any other

Readme

Satori

A live coding language for unlimited pattern interference. It supersedes Zen, which was restricted to grid-based event triggering. Satori offers fully flexible timing, and allows parameters from any musical layer to control or transform those of any other. As with Zen, it also includes a simple API for designing, running, and sonifying quantum algorithms via its built-in simulator.

The codebase is modular by design. You can use Satori as a complete live coding environment—combining the core language, editor, console, help docs, and synthesis engine—or import individual modules into your own projects. See the docs below for different use cases. A fully functional version of Satori is hosted at: satori.cephasteom.co.uk.

Local Development

To run this project locally, as a complete application:

  • clone this repo
  • run nvm use (node version manager) to change node to correct version
  • npm i to install dependencies
  • npm run dev for hot file reloading
  • or npm run build and npm run preview to use bundled package

To use Satori in your own applications

import { Satori } from './core/Satori';

// Create a new scheduler instance and pass in handlers
const satori = new Satori(...);
// evaluate some Satori code
satori.evaluate('...') 

// play / stop
satori.play()
// satori.stop()

Handlers are functions that process events. Each event has an ID (source), parameters, a trigger time, and a flag indicating whether it is a mutation or a regular event.

type Event = {id: string, params: Record<string, any>, time: number, type: 'e' | 'm'};

You can create custom handlers for Satori to connect to your system, or use Satori’s built-in ones.

import { init as initOto } from './oto';
import { handler as midiHandler } from './core/MIDI';

const otoHandler = initOto() // initialise the synth engine and get its handler
const satori = new Satori(
    otoHandler, // Satori now triggers events in Oto
    midiHandler // as well as MIDI
);

To use standalone synth engine (Oto)

You can use the synth engine directly, without the need to write Satori code. Simply initialise Oto, then send your own events via the handler.

import { init } from './oto';

const otoHandler = init()

otoHandler({ id: 'custom', params: {...}, time: 3.5, type: 'e' })

To use standalone patterning language

import { Pattern, methods } from './core/Pattern'

const p = new Pattern()
console.log(p.sine().query(0,1)) // query pattern between 0 and 1 cycles

const { saw } = methods // if you want to nest, get nested methods from methods object
const p2 = new Pattern()
console.log(p2.coin().fast(8).ifelse(
    saw(0,10),
    saw(10,1)
))

To use the standlaone code editor

import { init } from './editor'

init('#editor')

window.addEventListener("evaluateCode", (e) => console.log(e.detail.code));

Will load the editor in the element provided by the id. Default is #editor. Listen out for the evaluateCode event to handle the editor output.

To use the standalone console

import { init } from './console';

init('#console')

const channel = new BroadcastChannel('satori');
channel.postMessage({ type: 'info', message: 'a message' } );

Initialise the console, passing in the element in which it should render. Default is #console. Send messages to the console using the BroadcastChannel interface. Types are info, success, and error.

Acknowledgements