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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@stagas/mono

v0.1.0

Published

mono is a low level language for audio expressions that compiles to wasm

Readme


Install

$ npm i @stagas/mono

-- work in progress --

API

Table of Contents

todo

src/compiler.ts:92-92

todo is a "not implemented" marker for ops

bin

src/compiler.ts:95-98

constructs a binary op of least type type

Parameters

Returns Op

typebin

src/compiler.ts:101-104

constructs a binary op of exact type type

Parameters

Returns Op

eq

src/compiler.ts:107-113

constructs an equality op

Parameters

Returns Op

funcDef

src/compiler.ts:116-123

defines a function

Parameters

Op

src/compiler.ts:126-335

primary optable

Type: OpTable

OpArgs

src/compiler.ts:338-349

arguments optable

Type: OpTable

build

src/compiler.ts:352-365

builds a node under context ctx and optable ops

Parameters

  • node Node
  • ctx Context
  • ops OpTable

Returns SExpr

map

src/compiler.ts:368-372

builds an array of nodes under context ctx and optable ops

Parameters

Returns Array<SExpr>

typeOf

src/typed.ts:31-31

looks up and returns the type of x, if found, otherwise returns type any

Parameters

Returns Type

typeAs

src/typed.ts:34-34

marks sexpr x to be of type type

Parameters

  • type Type
  • x SExpr

cast

src/typed.ts:37-46

creates a cast operation if the given value x doesn't satisfy type

Parameters

  • type Type
  • x SExpr

castAll

src/typed.ts:49-49

casts all values to be of type type

Parameters

  • type Type
  • values ...SExpr

Returns SExpr

hi

src/typed.ts:52-55

returns the highest precision type of the given values

Parameters

  • values ...SExpr

Returns Type

max

src/typed.ts:58-60

returns at least the precision of the given type among the given types

Parameters

  • type Type
  • types ...Array<Type>

Returns Type

top

src/typed.ts:63-67

types an operation with the correct prefix (f32 or i32) and type casts the values to satisfy the op

Parameters

  • type Type
  • ops SExpr

Returns SExpr

infer

src/typed.ts:70-75

infers the type of a token literal string: bool for 0 or 1, i32 for integers and f32 for floats

Parameters

  • x Token

Returns Type

flatten

src/util.ts:4-9

flattens a node that is left hand side recursing on symbol sym

Parameters

Returns Array<Node>

mush

src/util.ts:12-16

Merges or pUSHes obj to array arr

Parameters

Contribute

Fork or edit and submit a PR.

All contributions are welcome!

License

MIT © 2022 stagas