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

@capsium/core

v0.2.1

Published

Capsium domain models (zod schemas), legacy normalization, manifest/routes auto-generation and integrity logic. Isomorphic (no Node or browser specific APIs).

Readme

@capsium/core

Domain model layer of the Capsium TypeScript runtime: zod v4 schemas + inferred types for the canonical package configs (ARCHITECTURE.md §2–6, §4a/§4b), legacy-read normalization, manifest/routes auto-generation, checksum/signature logic, composite-package helpers, reactor route resolution, the §7 introspection response models, the 05x-testing YAML DSL runner, and JSON Schema generation. Isomorphic — no Node or browser APIs; platform crypto is injected (HashProvider/SignatureProvider).

Install

npm install @capsium/core

Usage

Parse and validate package configs (legacy forms normalize on read):

import { parseMetadata, parseManifest, parseRoutes, parseStorage } from '@capsium/core';

const metadata = parseMetadata(JSON.parse(metadataJson));
const routes = parseRoutes(JSON.parse(routesJson)); // accepts the legacy object form too

Whole-package parsing with §3–4 auto-generation:

import { parsePackage } from '@capsium/core';

// files: ReadonlyMap<string, Uint8Array> — package-relative POSIX paths -> bytes
const pkg = parsePackage(files); // manifest/routes generated when absent

Integrity (§6) and signatures (§6a) against injected crypto:

import { buildSecurity, verifyIntegrity, assertPackageSignature } from '@capsium/core';

const security = await buildSecurity(files, hashProvider);
const report = await verifyIntegrity(files, security, hashProvider); // typed issue list
await assertPackageSignature(files, security, signatureProvider); // throws on mismatch

Route resolution and §7 introspection paths (shared by the reactors):

import { RouteResolver, matchIntrospection } from '@capsium/core';

const resolution = new RouteResolver(pkg.routes).resolve('/about', 'GET');
const endpoint = matchIntrospection('/api/v1/introspect/metadata'); // 'metadata'

JSON Schemas (draft 2020-12) for the canonical configs are generated from these models — emitted under schemas/ with $ids https://www.capsium.org/schemas/<name>.schema.json (metadata, manifest, routes, storage, security, authentication):

import { buildJsonSchemas } from '@capsium/core';

const schemas = buildJsonSchemas(); // regenerate: yarn workspace @capsium/core build:schemas

Development

corepack yarn workspaces foreach -A --include @capsium/core run test