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

b0-language

v1.0.2

Published

B0 compiler toolchain: C-like source -> 0/1 .b0 -> native Windows x64 .exe

Readme

B0

B0 is a small compiler toolchain with a deliberate two-stage pipeline:

C-like source (.c)
        |
        v
     B0 compiler
        |
        v
   binary text (.b0)
        |
        v
 B0 native backend
        |
        v
Windows x64 PE (.exe)

Install from npm

After publishing this package under the package name you choose:

npm install -g b0-language

The package exposes the b0 executable through npm's bin field, so a global install adds the command to npm's global executable path. On Windows, npm normally wires this into the PATH used by the shell after installation.

Check:

b0 version

Commands

Compile C-like source to a .b0 program:

b0 input.c output.b0

Compile C-like source directly to an executable. B0 checks for GCC first; when GCC is available it is used to build the .exe. If GCC is not installed, the built-in Windows PE backend is used instead:

b0 input.c output.exe

Compile .b0 to a native Windows x64 executable:

b0 output.b0 output.exe

Run .b0 directly with the built-in VM:

b0 run output.b0

Example

examples/hello.c:

int x = 10;
int y = 20;
print("Hello from B0!\n");
print(x + y);
print("\n");

Then:

b0 examples/hello.c hello.b0
b0 hello.b0 hello.exe
hello.exe

The generated .b0 file is intentionally plain text containing only 0 and 1 plus a final newline.

B0 v0.1 language

Supported source constructs:

  • int variable declarations
  • variable assignment
  • print(...)
  • integer arithmetic: + - * /
  • parentheses
  • quoted strings with common escapes
  • // comments

This first release is intentionally small. The native backend turns the program's VM-visible output into a self-contained Windows x64 PE console program. More advanced B0 instructions, control flow, functions, and a real native code generator are planned for later versions.

Development

Requirements:

  • Node.js 18+
  • npm
  • TypeScript compiler

Build:

npm install
npm run build

Test:

npm test

Check the npm package contents:

npm pack --dry-run

Publish after logging into npm and choosing a package name that is available:

npm login
npm publish --access public