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

alethech-ts

v0.9.5

Published

Verifiable agent continuity protocol — Ed25519-signed memory commits, hash-linked DAG, key rotation with reachability guarantee. Zero dependencies. Web Crypto API only.

Downloads

1,213

Readme

alethech-ts

TypeScript implementation of alethech — a verifiable agent continuity protocol. Ed25519-signed memory commits, hash-linked DAG, key rotation with reachability guarantee. Zero dependencies. Web Crypto API only.

This is the TypeScript SDK that mirrors the Python and Rust implementations. All three use the same NIST SHA-256 test vectors, RFC 4648 base32 vectors, and RFC 8785 JCS conformance vectors.

Install

npm install alethech-ts

Portable integration scope

The npm package currently ships the core index.ts primitives. The portable container, verifier, editor, provider writeback and plugin modules are repository integration sources used by the browser builds; they are not included in the npm package manifest.

Async verification, commit signing, portable appends and accepted writeback use snapshots captured before their first await. Changes to caller-owned payloads, content, options or proposals after invocation do not change the operation. Plugin sessions returned by creation or acceptance are deeply frozen so their verified view stays paired with the retained payload. Create a new session or accept a proposal to advance it; editing the returned session throws in strict mode. Writeback still requires explicit user approval before acceptance.

Quick start

import { Alethech } from "alethech-ts";

// Initialize a new store with an Ed25519 keypair
const alethech = await Alethech.init();

// Create a signed memory commit
const commitId = await alethech.commit({
  type: "semantic",
  category: "deployment",
  content: { service: "api-gateway", region: "us-east-1" },
});

// Verify the entire store integrity
const result = await alethech.verify();
console.log(result.ok); // true
console.log(result.commitsVerified); // 1

// Rotate keys — reachability guarantee: every existing commit stays verifiable
await alethech.rotateKeys();
const resultAfter = await alethech.verify();
console.log(resultAfter.ok); // true — old commits still verify against new key

What it gives you

  • Signed memory commits. Every state mutation is Ed25519-signed. Tampering with any byte of any commit breaks verification.
  • Hash-linked DAG. Each commit links to its parent by SHA-256. History cannot be rewritten without regenerating every descendant signature.
  • Key rotation with reachability guarantee. Rotate operational keys without losing verifiability of historical commits. The protocol tracks every authorized key, so old signatures stay valid under new keys.
  • Deterministic canonical JSON (RFC 8785 JCS). Same bytes in, same hash out — across Python, Rust, and TypeScript. No float values allowed in the signed schema (see FloatInSignedSchemaError in the Python SDK).
  • Local-first. Zero network calls. Zero LLM calls. Zero blockchain. Everything runs offline.

API

Alethech.init(): Promise<Alethech>

Create a new store with a fresh Ed25519 keypair. Returns the high-level API object.

alethech.commit(content: CommitContent): Promise<string>

Sign and append a memory commit. Returns the commit ID (SHA-256 of the canonical payload).

alethech.verify(): Promise<VerifyResult>

Walk the DAG from HEAD to genesis, verifying every Ed25519 signature. Returns { ok: boolean, commitsVerified: number, ... }.

alethech.rotateKeys(): Promise<void>

Generate a new Ed25519 keypair, authorize it, and revoke the old one. Old commits stay verifiable.

alethech.export(): Promise<ExportPackage>

Serialize the entire store for transfer.

alethech.import(pkg: ExportPackage): Promise<void>

Verify and import an export package. All signatures are verified before any write — fail-closed.

Tests

npm test
# 15 tests, all green

Test coverage:

  • 5 JCS conformance vectors (RFC 8785)
  • 5 Ed25519 signing/verification vectors (RFC 8032)
  • 5 store integrity vectors (DAG, key rotation, export/import)

Zero dependencies

This package has zero runtime dependencies. It uses only:

  • crypto.subtle (Web Crypto API, available in Node 18+, browsers, Deno, Bun)
  • TextEncoder (built-in)
  • atob/btoa (built-in)

No tweetnacl, no node-forge, no jsrsasign. If your runtime has Web Crypto, you can run alethech-ts.

Cross-language compatibility

The same store can be exported from Python, imported into TypeScript, and verified. The same Ed25519 signatures verify in all three implementations. See conformance/ in the repo root for shared test vectors.

License

MIT — © 2026 AliceLabs LLC

Links

  • Protocol spec: https://github.com/eddyflores100-lang/alethech/blob/main/docs/
  • Python SDK: https://pypi.org/project/alethech/
  • Rust SDK: https://github.com/eddyflores100-lang/alethech/tree/main/alethech-rs
  • Landing page: https://alethech.alicelabs.site/