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

@nextera.one/openlogs-sdk

v2.1.1

Published

TypeScript/JavaScript SDK for OpenLogs v2 (Reality Containers)

Readme

@nextera.one/openlogs-sdk

TypeScript/JavaScript SDK for OpenLogs v2 — provable execution evidence with hash-chained, cryptographically signed log entries.

Features

  • Hash-chained records — SHA-256 linked entries for tamper evidence
  • Ed25519 signing — cryptographic proof per record using @noble/ed25519
  • TPS Reality Strings — time, place, and space as primary keys via @nextera.one/tps-standard
  • TPS-UID — globally unique, reversible IDs encoding temporal and random context
  • Geospatial indexes — optional S2/H3 cell indexes for spatial querying
  • Multi-calendar support — Gregorian, Unix, and more
  • Key rotationKeyRegistry for managing trusted signing keys
  • Batch operationscreateV2Chain for building multiple linked records at once
  • Dual CJS/ESM — works everywhere

Install

npm i @nextera.one/openlogs-sdk

Quick Start

import {
  createEntry,
  createV2Record,
  signV2Record,
  verifyV2Chain,
  generateEd25519Keypair,
} from "@nextera.one/openlogs-sdk";

// Generate a signing keypair
const keys = await generateEd25519Keypair();

// Create a v2 record (first in chain)
const r1 = createV2Record(
  {
    actor: "user:alice",
    tps: "tps://L:40.7128,-74.0060@T:greg.m3.c1.y26.m3.d3.h16.m30.s0.m0",
    event: "auth.login",
    data: { method: "oauth2", provider: "google" },
  },
  null, // no previous hash (first record)
);

// Sign the record
const signed = await signV2Record(r1, { ...keys, kid: "key:main" });

// Verify chain integrity
const result = await verifyV2Chain([signed]);
console.log(result); // { ok: true }

Batch Chain Creation

import { createV2Chain } from "@nextera.one/openlogs-sdk";

const records = createV2Chain([
  { actor: "system:audit", tps: "tps://...@T:...", event: "step.start" },
  { actor: "system:audit", tps: "tps://...@T:...", event: "step.process" },
  { actor: "system:audit", tps: "tps://...@T:...", event: "step.complete" },
]);
// records are automatically hash-chained

Key Rotation

import { KeyRegistry, extractSigningKeys } from "@nextera.one/openlogs-sdk";

const registry = new KeyRegistry();
registry.addKey({
  kid: "key:prod-2026",
  publicKeyHex: "...",
  activeFrom: "2026-01-01",
});

// Verify a record's signature is valid AND from a trusted key
const { valid, trusted, kid } = await registry.verifyRecord(signedRecord);

Subpath Exports

| Import Path | Contents | | -------------------------------- | --------------------------------------------------- | | @nextera.one/openlogs-sdk | All v2 functions, types, and key rotation utilities | | @nextera.one/openlogs-sdk/core | Core v2 functions and types only | | @nextera.one/openlogs-sdk/keys | Key rotation utilities only | | @nextera.one/openlogs-sdk/v1 | Deprecated v1 API (for migration) |

API Reference

Core Functions

| Function | Description | | --------------------------------- | ----------------------------------- | | createEntry(input) | Create a v2 entry (no hash chain) | | createV2Record(input, prevHash) | Create a hash-chained v2 record | | createV2Chain(inputs[]) | Create a batch of chained records | | signV2Record(record, keys) | Sign a record with Ed25519 | | verifyV2Chain(records[]) | Verify chain integrity + signatures | | verifyV2RecordSignature(record) | Verify a single record's signature |

Crypto Functions

| Function | Description | | -------------------------- | ---------------------------------- | | generateEd25519Keypair() | Generate a new Ed25519 keypair | | sha256Hex(data) | SHA-256 hash as hex string | | hexToBytes(hex) | Convert hex string to Uint8Array | | utf8ToBytes(str) | Convert UTF-8 string to Uint8Array |

TPS Functions

| Function | Description | | --------------------------- | -------------------------------------- | | normalizeTpsUri(input) | Normalize a TPS URI string | | generateTpsUid(tpsString) | Generate a TPS-UID | | decodeTpsUid(uid) | Decode a TPS-UID back to TPS + context |

Key Rotation

| Export | Description | | ----------------------------- | ---------------------------------------- | | KeyRegistry | Class for managing trusted signing keys | | extractSigningKeys(records) | Extract unique signing keys from a chain | | groupBySigningKey(records) | Group records by their signing key |

License

Apache-2.0