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

@anduin/pangea

v0.7.1

Published

Parser for Blueprint that outputs the Blueprint Intermediate Represenation

Readme

PANGEA - Blueprint Intermediate Representation toolchain

This project can be run by both Bun and Node.js, however, the test suite for this project is written to run with Bun Test.

Installation

npm install @anduin/pangea
# or
bun add @anduin/pangea

Usage

const pangea = require('@anduin/pangea')

const rawRule =
`\`\`\`catala
scope Individual_Part_I:
definition for_subscription_documents__fn_disable_and_clear_data equals
    fn_has_option_values of gatingbox,
        [gatingbox_options.check_this_box_if_you_would_li]
\`\`\``
const result = await pangea.parseBIRFromCatalaEn(rawRule)

console.log(result)

Documentation

For detail design of Intermediate Representation, see the documentation at: Notion

Design of Blueprint Intermediate Representation

Package Development

Setup

bun install
bun run init   # inlines committed wasm files into src/*-wasm-uint8array.ts

Note: the tree-sitter-catala git submodule is only required if you need to regenerate the grammar WASM (see below). For normal development you don't need to initialize it — the pre-built .wasm is committed at scripts/tree-sitter-catala_en.wasm.

Develop

bun run dev

Test

bun test

Build

bun run build

Outputs compiled JS + .d.ts to dist/.

Maintainer Guide

Publish a new version to npm

  1. Bump version in package.json.
  2. Commit and push.
  3. Trigger the Publish NPM workflow in GitHub Actions (workflow_dispatch).

Publishing uses npm Trusted Publishers via OIDC — no npm token secret is involved. The workflow runs bun install, bun test, bun run build, then npm publish --provenance from the repo root. Only files matching the files field (dist/) are shipped.

Regenerate the tree-sitter-catala grammar WASM

Only needed when the upstream CatalaLang/tree-sitter-catala grammar changes.

Requires the tree-sitter CLI (installed on demand via bunx; if the download fails, install globally with npm i -g tree-sitter-cli).

bun run rebuild:grammar

What it does:

  1. Initializes the src/tree-sitter-catala submodule if missing.
  2. Runs tree-sitter generate and tree-sitter build --wasm inside src/tree-sitter-catala/en.
  3. Copies the resulting .wasm to scripts/tree-sitter-catala_en.wasm.
  4. Runs bun run init to base64-inline both that file and web-tree-sitter.wasm into src/*-wasm-uint8array.ts.

After it completes, run bun run build && bun test, then commit:

  • scripts/tree-sitter-catala_en.wasm
  • src/tree-sitter-catala_en-wasm-uint8array.ts

Model generation

If generating models for other languages is needed, consider using quicktype.