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

@gemmapod/core

v0.5.0

Published

Rust → WASM core for GemmaPod: signed manifest (CBOR + Ed25519) and DARTC byte signing/verifying. Same code runs in browsers (wasm-pack --target web) and in Node (wasm-pack --target nodejs); the parent package exports both via the .web and .node subpaths.

Downloads

1,151

Readme

@gemmapod/core (Rust → WASM)

The cryptographic + manifest-parsing core. Single source of truth for the signed pod manifest format that the browser, the pack CLI, and the cloud all share, plus byte-level Ed25519 helpers used by DARTC.

What it does

  • Defines the on-wire Manifest (identity, persona, system prompt, model, transport spec, tools) and the SignedManifest envelope (Ed25519 signature over a CBOR-encoded manifest body).
  • Signs and verifies arbitrary byte payloads for DARTC envelopes. DARTC canonicalizes JSON in TypeScript; this core signs the resulting bytes.
  • Exposes sign / verify / generateKey through wasm_bindgen.
  • Built two ways with identical Rust source:
    • pkg/wasm-pack --target web. Consumed by packages/shim (inlined into both gemmapod-shim.iife.js and gemmapod-runtime.iife.js as a base64 data: URL). The full IIFE re-exports GemmaPodCore so apps/web/build can sign manifests in the browser.
    • pkg-node/wasm-pack --target nodejs. Consumed by packages/toolkit (build verify round-trip) and apps/cloud (POST /pods server-side verify). Same code path as the browser.

Native Rust tests cover the round-trip (tests/roundtrip.rs).

Run locally

# from repo root
pnpm build:core         # rebuilds both pkg/ and pkg-node/

# native tests
cd packages/core && cargo test

The build emits artifacts into pkg/ and pkg-node/ and overwrites existing files. Both directories are committed (with pkg/.gitignore and pkg-node/.gitignore overriding wasm-pack's * blanket ignore) so contributors without a Rust toolchain can still pnpm install and run the rest of the monorepo.

Toolchain requirements (only if rebuilding)

  • Rust 1.78+ with wasm32-unknown-unknown target:
    rustup target add wasm32-unknown-unknown
  • wasm-pack:
    cargo install wasm-pack --locked

wasm-opt is disabled in Cargo.toml because wasm-pack's bundled binaryen is older than the bulk-memory features rustc emits.

Public Rust API (used by tests + pack CLI)

gemmapod_core::testing::generate_key() -> (pubkey_hex, secret_hex)
gemmapod_core::testing::sign(manifest, &secret_hex) -> Vec<u8>
gemmapod_core::testing::verify(&bytes) -> Result<Manifest, String>
gemmapod_core::testing::sign_bytes(payload, &secret_hex) -> Vec<u8>
gemmapod_core::testing::verify_bytes(payload, signature, &public_hex) -> Result<(), String>

JS API (after await init())

GemmaPodCore.generateKey()    // { publicKey, secretKey } (hex)
GemmaPodCore.signManifest(manifest, secretKey: Uint8Array): Uint8Array
GemmaPodCore.verifyManifest(bytes: Uint8Array): Manifest   // throws on bad sig
GemmaPodCore.signBytes(payload: Uint8Array, secretKey: Uint8Array): Uint8Array
GemmaPodCore.verifyBytes(payload, signature, publicKey): boolean

DARTC callers use generateKey() to create ephemeral session keys and signBytes / verifyBytes for signed envelopes. Owner secrets are not embedded into packed pods.

Size

gemmapod_core_bg.wasm228 KB unoptimized; ~90 KB gzipped.

No deploy

Library. Consumed by other workspaces. Not deployed standalone.