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

@hara-lang/native-browser

v0.1.28

Published

Embeddable HAL-free Hara browser host and verified package loader

Readme

@hara-lang/native-browser

Embeddable Hara runtime for browsers and CDN scripts.

import { start } from "@hara-lang/native-browser/vm";

const hara = await start();
console.log(hara.eval("(+ 19 23)"));

The package root remains an alias for /vm. Heavy-duty whole-function WebAssembly compilation is available from @hara-lang/native-browser/full. The compiler runs inside the browser runtime and the resulting module executes on the browser's own WebAssembly engine:

import { start } from "@hara-lang/native-browser/full";
const hara = await start();
const compiled = await hara.compileWholeWasm(
  "(loop [i 0 acc 0] (if (< i 5000) (recur (+ i 1) (+ acc i)) acc))"
);
console.log(compiled.call()); // 12497500n

The full package owns dynamic constants and persistent values in the outer Hara runtime while generated scalar and specialized collection work runs directly inside the browser's WebAssembly engine.

The release also provides an IIFE bundle for a plain script tag:

<script src="https://unpkg.com/@hara-lang/[email protected]/dist/native-vm/hara.js"></script>
<script>
  Hara.start().then((hara) => console.log(hara.eval("(+ 19 23)")));
</script>

The default browser runtime is the small core evaluator. Foundation and other semantic package families are opt-in, so a page can choose the exact lock and load only the capabilities it needs. Host resources can still be registered before requiring them:

const hara = await Hara.start({
  resources: {
    "app.config": "(ns app.config) (def answer 42)"
  }
});

Locked Hara packages can be fetched from an immutable package host (including packages.*) or a release asset and installed before application evaluation:

import { installLockedPackages, start } from "@hara-lang/native-browser";

const hara = await start();
const lock = await fetch(projectLockUrl).then((response) => response.text());
await installLockedPackages(hara, lock);
hara.require("my.world");

The same selection can happen during isolated startup. targets accepts a semantic package name, an exact lock coordinate, or a namespace:

const hara = await start({
  lock,
  targets: ["lang.model.v1.postgres"],
  packageOptions: { origin: "https://packages.example" }
});

HARP archives may contain a verified bytecode/package.hbx. The loader checks its manifest digest and installs the HBX0 index when the VM runtime exposes the bundle seam; otherwise the verified HAL resources remain the source fallback. Package selection is described by the package's signed lock. The source package defines semantic profiles and dependency conventions; this host only verifies and activates the selected archive set.

Memory-backed Wasm packages use the explicit memory.v1 binding route. The manifest, canonical interface, and canonical bindings.edn plan are verified before the module is instantiated:

hara.installMemoryWasmBinding(manifest, interfaceSource, bindingsSource, wasmBytes);
hara.require("my.wasm.package");

Only format-2 locks are accepted. The loader verifies the HARP archive digest, optional archive size, every file declared by package.edn, safe archive paths, and unique HAL namespaces. Resources are registered only after the complete lock has passed verification. A lock entry may use :distribution/url, :packages/url, :release-url, or :url; package distribution URLs take precedence and the lock digest remains authoritative.

Verified :hta extensions select only their prebuilt :browser web-worker target. Declared assets are loaded from the archive, and unsupported capabilities fail during installation; no Cargo, Maven, or compiler step is performed.