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

@nakafa/aksara-contracts

v8.12.0

Published

Schemas and verification contracts for Nakafa content releases.

Readme

@nakafa/aksara-contracts

This package defines exact runtime contracts for the Aksara compiler and publisher. Nakafa runtime consumes the exact published contract: a proven npm package, its immutable release archive, and the renderer manifest that its releases sign.

This package contains schemas, branded identifiers, canonical wire encodings, and Ed25519 signature verification on Effect's effect/crypto services. It contains no corpus, renderer implementation, signing key, deployment credential, or browser-side MDX runtime.

Consumers install the exact @nakafa/aksara-contracts version from npm and commit its bun.lock integrity. npm provenance and the matching immutable GitHub Release bind those package bytes to the reviewed Aksara source. A contract change ships with the Nakafa renderer that consumes it, in one step.

Node-only writer and incremental digest exports remain isolated behind package conditions. Default-runtime exports used by Convex are audited to reject reachable Node built-ins. Verification accepts only reviewed, signed Aksara artifacts and releases. It does not make MDX safe for arbitrary uploads; MDX remains trusted executable source.

Consumer boundaries

Current consumers use unversioned semantic Interfaces:

  • tree owns the signed content tree: a fragment of intrinsic tags, renderer components, and text, whose props are JSON data or nested elements. canonicalizeContentTree gives the bytes that hashes and signatures cover.
  • graph/family classifies either a complete graph identity or one exact asset ID into its application locale and content family.
  • projection/material owns the application-locale material namespace and validates every signed route and projection against it. Lesson metadata may carry an optional searchTitle for the HTML title, while title stays the short navigation name.
  • projection/page owns stable public page identities, localized paths, and signed metadata for human, agent, and sitemap delivery.
  • math/base owns the unversioned base schemas that mathematical visuals share, such as finite plane and space points, ordered axis ranges, appearance roles, and label placements, plus the geometry tolerance and exact point predicates.
  • math/visual owns the unversioned, renderer-neutral plane and space scene contract, including exact straight geometry, rich-label anchors, and the axis-aligned cuboid dimension mapping.
  • assessment/* owns the assessment contract: a ProseMirror JSON document with typed figure props, twelve interaction kinds that hold no answer key, scoring as data, the key and the explanation of an item version as records of their own, item and stimulus versions named by a content hash, the exam profile, the frozen paper, and the tools registry. answer owns the typed-answer keys: every runtime grades a typed answer only through matchesAnswerKey, reads a typed number only through readNumberAnswer, the one number grammar, and decides that a typed answer is blank only through isBlankAnswer. catalog owns the try-out navigation rows, each set naming its paper, and snapshot the assessment snapshot family that publishes all of it in one signed release. ADR 0005 records the decisions.

Publication dates

Article, material, and public page metadata carry one required datePublished and one optional dateModified, both as exact DateOnly values.

Decode external metadata and signed payloads with onExcessProperty: "error". Effect schemas own the shape and invariants; the decoder owns excess-property policy. This rejects obsolete fields instead of silently discarding them.

  • datePublished is the first verified public availability of that specific locale page.
  • dateModified is the public activation date of a later signed release that contains a meaningful content change.
  • When present, dateModified must be strictly later than datePublished.

Neither value may be derived from a build clock, import time, Convex _creationTime, an unsigned source commit, or an unactivated candidate. The signed release and activation history remain the audit evidence for both values. These rules keep visible dates and structured data aligned with Google publication date guidance and Article structured data.

Runtime verification authenticates the independently signed release and artifact values against the exact renderer manifest frozen into that release. Execution verification also proves the selected artifact against the complete live renderer when the deployed manifest hash differs. Non-rendering evidence verification authenticates the same frozen release and artifact without claiming that its consumer can execute the artifact. This directional execution check lets an additive live renderer serve an older release only when it still publishes the selected domain and contains every required component name. Every current manifest contains the complete canonical domain set. The same contract validates stored and deployed manifests. A renderer-changing release remains bound to the exact deployed manifest. A scoped content-only release may retain the active frozen manifest only when activation proves the live renderer still publishes every frozen domain and contains every frozen component name. The renderer is not a third signed value. Current production trusts authenticated Convex state for route/head membership, delivery class, and the active pointer; a release result digest is not a per-row inclusion proof. This boundary is recorded explicitly in ADR 0002.

The package source is publicly readable for supply-chain review. All use and redistribution remain subject to the included Nakafa Source Available License 1.0. The package grants no rights to the Nakafa corpus, branding, or educational material.