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

@kite-lang/compiler-wasm

v0.1.9

Published

The Kite compiler, as WebAssembly. One artefact for every platform, and it runs wherever WebAssembly does.

Readme

@kite-lang/compiler-wasm

The Kite compiler, as WebAssembly.

npm install --save-dev @kite-lang/compiler-wasm

It is the compiler, not a copy of it: the same Rust crate kitec is built from, targeting WebAssembly instead of the machine. A test in the repository builds the same project both ways and asserts the artefacts are byte-identical, so a project's build and its author's terminal cannot come to different conclusions about what a program means.

Why not a native binary

@kite-lang/cli ships one, and on a developer's machine it is the faster thing to run. This package exists because a binary cannot go everywhere:

  • One artefact for every platform. No os/cpu matrix, no optionalDependencies that can resolve to nothing on a platform nobody built for, and no install that succeeds while leaving no compiler behind.
  • Nothing is fetched at install time. No postinstall script, so the supply-chain surface is the tarball npm already verified.
  • It runs where WebAssembly runs. Including a browser-based Node such as WebContainer — what StackBlitz and Bolt run — where native machine code cannot execute at all. A Kite project opened in a StackBlitz link builds without installing anything.

As a library

import { compiler, BuildFailed } from "@kite-lang/compiler-wasm";

const kite = await compiler();

kite.run('fn main() {\n    io.print("hi")\n}\n');   // → "hi\n"
kite.check("fn main() {\n    let x: int = 1\n}\n"); // → "" when clean
kite.format("fn f(a:int)->int{\nreturn a*2\n}\n");  // → the one layout

// A Kite module is a *directory*, so siblings are handed over by module
// name — `checkout`, not `checkout.kite`, because that is what `use` names.
try {
  const artefacts = kite.build({
    entry: await readFile("src/main.kite", "utf8"),
    siblings: { checkout: await readFile("src/checkout.kite", "utf8") },
    release: true,
  });
  // → { "app.wasm", "app.js", "api.js", "api.d.ts" } as Uint8Array
} catch (error) {
  if (error instanceof BuildFailed) process.stderr.write(error.diagnostics);
}

checkModule({ entry, siblings }) is check for a whole module, which is what a project wants: check takes a single file and would report a missing module for a program that says use checkout.

The module is instantiated once per process and imports nothing.

As a command

npx kitec check src/main.kite
npx kitec fmt src/*.kite
npx kitec build src/main.kite --out dist

run, check, build, fmt and doc, over the same compiler. The native kitec is the fuller tool — bundle, pkg, --native and the language server are the machine's to run — and it is what kite-lang.dev/install puts on your PATH.

Building it

The .wasm is a build artefact and is not checked in:

./build.sh

wasm-opt -Oz takes about 20% off when it is installed, and the build works without it.