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

@elaraai/east-c-cli

v1.0.79

Published

Provides the `east-c` bin. A tiny launcher resolves the native binary for your platform from the matching per-platform package (@elaraai/east-c-cli-<target>), pulled in via optional dependencies.

Readme

east-c-cli

Command-line runner for east-c — execute compiled East IR natively from the terminal

License

east-c-cli is the command-line entry point for the C runtime. It links against east-c (core) and east-c-std (standard platform) to execute East IR programs.

Build

Requires CMake 3.16+ and a C11 compiler.

make build    # From libs/east-c/
make test
make clean

See docs/conventions/MAKEFILE_TARGETS.md.

Usage

# Run a Beast2-encoded IR file
./build/packages/east-c-cli/east-c run program.beast2

# Run a JSON-encoded IR file
./build/packages/east-c-cli/east-c run program.json

# With arguments
./build/packages/east-c-cli/east-c run program.beast2 --input '"hello"'

The CLI loads the standard platform from east-c-std by default. Custom platform functions can be linked at build time.

Streaming outputs and inputs

A function whose trailing parameter is an emit capability writes its output incrementally instead of returning it; a large collection input can be fed lazily, one decoded segment at a time (--stream is repeatable):

# Emit a Dict (or array / set) through the trailing parameter, feeding
# inputs 0 and 1 lazily from indexed beast2 blobs
east-c run task.beast2 -i rows.beast2 -i more.beast2 --stream 0 --stream 1 \
    --emit dict -o out.beast2 -v

Dict and Set emissions must ascend in East order. The sink writes one pass, segment by segment, with one open batch in memory whatever the size of the output, and a key below the previous one is an error naming both:

beast2 v5: Dict key emitted out of order: 1 after 2 — Set/Dict emissions must ascend in East order

Equal keys are an error too unless the sink folds them:

# Dict: fold the values of adjacent equal keys with an East function (K, V, V) -> V
east-c run task.beast2 --emit dict --merge merge.beast2 -o out.beast2

# Set: keep the first of adjacent equal elements
east-c run task.beast2 --emit set --union -o out.beast2

--merge takes an IR file in any format the program itself may use, compiled with the run's -p platforms; its signature must match the emit parameter's key and value types. Adjacent equal keys fold left in emission order, acc = merge(key, acc, value), and the output is byte-identical to what the sink writes without the flag for the already-folded sequence.

Merging blobs

merge combines sorted Set or Dict blobs of one type — the files run --emit writes — into one, in a single pass over the inputs: every input is read segment by segment, equal keys across inputs fold in input order (--merge on Dict inputs, --union on Set inputs; without a fold an equal key is an error), and the output is byte-identical to what run --emit writes for the same entries emitted ascending. This is how e3 assembles a partitioned task's keyed partials; all three runners write the same bytes.

# Dict partials: fold the values of equal keys, in input order
east-c merge --merge merge.beast2 -i part-0.beast2 -i part-1.beast2 -i part-2.beast2 -o out.beast2 -v

# Set partials: the first of equal elements stands
east-c merge --union -i part-0.beast2 -i part-1.beast2 -o out.beast2

# Only the keys in [from, to): range.beast2 holds a Struct{from: Option<K>,
# to: Option<K>} over the inputs' key type, an absent bound open
east-c merge --merge merge.beast2 --range range.beast2 -i part-0.beast2 -i part-1.beast2 -o out.beast2

With --range every input is sought to the segment owning from through its fences and read up to the first key at or past to, so a merge over one key range of large partials reads that range's share of each, plus at most one segment — how e3 merges a large output in parallel, one range per unit.

An input of another type than the first, an Array input, an input whose keys do not ascend, a fold whose signature does not match the inputs, and bounds of another type than the inputs' key are refused, naming the input. With -v the merge prints its account:

merge: 3 input(s), 31 entries, 13 fold(s)

Exiting with the parent

With --exit-with-parent on its command line (any command, anywhere among the arguments) the runner watches its stdin on a thread of its own and exits with status 1 as soon as a read returns end of file or fails. A parent that spawns the runner with a stdin pipe it never writes to — as e3 does — takes the runner down with it when it dies, even while the body is computing. Without the flag, stdin is left alone.

east-c run task.beast2 --exit-with-parent --emit dict -o out.beast2

On Windows the watcher reads a synchronous pipe or an overlapped one. Hand it an overlapped pipe — FILE_FLAG_OVERLAPPED, or Node's stdio 'overlapped', as e3 does: a read pending on a synchronous pipe holds the pipe's file-object lock, so any other use of stdin in the runner would wait until the parent is gone.

Profiling

east-c run task.beast2 -i rows.beast2 --profile

prints every East function the run called, by self time, with its call count, its total time, and where it is: the name of the Let it was bound to when the IR has one, its definition site, and — when that differs — the site of the first call that reached it, which is what tells apart helpers the TypeScript builder inlined at their call sites. Off, profiling costs one branch per call.

The ir toolbox (issue #627) works on IR files without running them:

# The canonical form of an IR file: loc_ids stripped, variables/labels renamed in
# the TypeScript lowering's order, captures recomputed, recursive type ids renumbered
east-c ir normalize program.json -o canonical.json

# Normalize two IR files and report the first structural difference (exit 1) or
# "identical" (exit 0); --raw compares as-is
east-c ir diff program.json rebuilt.beast2

# json <-> beast2 with the source map intact
east-c ir convert program.json -o program.beast2

Claude Code plugin

The East ecosystem also ships a Claude Code plugin — East language skills, example search, and preemptive diagnostics for East code — installed separately from the elaraai marketplace:

# Inside Claude Code
/plugin marketplace add elaraai/east-workspace
/plugin install east@elaraai
# From a terminal
claude plugin marketplace add elaraai/east-workspace
claude plugin install east@elaraai

License

Business Source License 1.1 — see LICENSE.md. Same terms as east-c core.

Ecosystem

  • East: Statically typed, expression-based language with serializable IR. Run portable logic across TypeScript, Python, C, and other runtimes.

    • @elaraai/east: Core language SDK with type system, expressions, and reference JS compiler
  • East Node: Node.js platform functions for I/O, databases, and system operations.

  • East C: C11 native runtime for executing East IR. Tarballed for linux-x64 and linux-arm64, attached to each GitHub Release.

    • east-c: Core runtime — type system, IR interpreter, 200+ builtins, serialization (Beast2, JSON, CSV, East text)
    • east-c-std: Console, FileSystem, Fetch, Crypto, Time, Path, Random
    • east-c-cli: CLI for running East IR programs natively
  • East Python: Python runtime, standard platform, I/O, and data-science platform functions. Published to PyPI.

    • east-py: Core Python runtime — type system, IR compiler, 212+ builtins, Cython-accelerated hot paths
    • east-py-std: Console, FileSystem, Fetch, Crypto, Time, Path, Random
    • east-py-io: SQLite, PostgreSQL, MySQL, MongoDB, Redis, S3, FTP, SFTP, XLSX, XML, compression
    • east-py-cli: CLI for running East IR programs in Python
    • east-py-datascience (PyPI) + @elaraai/east-py-datascience (npm): Optimization (MADS, Optuna, ALNS, GoogleOR), ML (XGBoost, LightGBM, NGBoost, PyTorch, Lightning, GP), Bayesian inference (PyMC), explainability (SHAP), conformal prediction (MAPIE)
  • East UI: Typed UI component definitions and React renderer, plus VS Code preview.

  • e3 — East Execution Engine: Durable execution engine for running East pipelines at scale. Git-like content-addressable storage, automatic memoization, reactive dataflow, real-time monitoring.

Links

  • Website: https://elaraai.com/
  • Repository: https://github.com/elaraai/east-workspace
  • Issues: https://github.com/elaraai/east-workspace/issues
  • Email: [email protected]

About Elara

East is developed by Elara AI Pty Ltd, an AI-powered platform that creates economic digital twins of businesses that optimize performance. Elara combines business objectives, decisions and data to help organizations make data-driven decisions across operations, purchasing, sales and customer engagement, and project and investment planning. East powers the computational layer of Elara solutions, enabling the expression of complex business logic and data in a simple, type-safe and portable language.


Developed by Elara AI Pty Ltd.