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

webtessera

v0.0.0

Published

A faithful TypeScript port of Tessera, the tile-based transparency log, for browsers, edge runtimes and servers, with IndexedDB and SQLite storage.

Readme

webtessera

CI npm License: Apache-2.0

webtessera is a faithful TypeScript port of Tessera, the tile-based transparency log, for browsers, servers and edge runtimes.

A transparency log is an append-only, tamper-evident record: anyone can verify that an entry is in it, and that the log never rewrote its history. webtessera runs where Go does not reach, in a browser tab on IndexedDB or on whichever SQLite your server already has, and its logs are byte-for-byte compatible with Tessera's: each side reads, verifies and extends logs that the other wrote.

[!NOTE] webtessera is an independent port. It is not an official Google or transparency-dev project.

Install

npm install webtessera
# or: bun add webtessera / pnpm add webtessera / yarn add webtessera

webtessera runs on Node.js 22.18 or later, Deno 2, Bun, current browsers, and edge runtimes built on web standards.

Quick start

Open a log on a server, append an entry, and verify its receipt:

import { DatabaseSync } from "node:sqlite";
import { importLogKey, openServerLog, verifyReceipt } from "webtessera/server";
import { fromSqliteSync } from "webtessera/storage/sqlite";
// The key comes from your secret store, never from source code.
const log = await openServerLog({
  key: await importLogKey(process.env.LOG_SKEY),
  storage: { sqlite: fromSqliteSync(new DatabaseSync("log.db")) },
});

// append resolves once a published checkpoint covers the entry, with a verified receipt.
const entry = new TextEncoder().encode("hello");
const receipt = await log.append(entry);

// Anyone with the log's vkey and the entry can check the receipt, offline.
const { index, checkpoint } = verifyReceipt(receipt.text, { vkey: log.vkey, data: entry });

To create the key, run npx webtessera keygen example.com/log >> .env once (or bunx, or generateLogKeyPair from webtessera/server in a script), then start with node --env-file=.env (Deno: --env-file; Bun reads .env itself). Keep LOG_SKEY in your secret store, and publish LOG_VKEY.

In a browser, openDeviceKey and openBrowserLog from webtessera/browser keep the log in IndexedDB:

// A key generated on this device and kept in IndexedDB, which no script can export.
const key = await openDeviceKey("device.example/7f3a");
const log = await openBrowserLog({ key });

const receipt = await log.append(new TextEncoder().encode("signed the form"));

This is the safe API. webtessera/server refuses to run in a browser, storage is durable unless you ask for memory by name, SQLite is locked so that several processes cannot fork the log, and every receipt is verified before it is returned. Serve the log with log.fetch, append in batches with appendMany, and branch on an error's code. The safe API guide explains each default.

The ported API

Underneath the safe API is Tessera's own API, translated name for name (NewAppender is newAppender). Use it for what the safe API leaves out: custom storage, migration, antispam, witness policies and Static CT. These are the snippets of Tessera's README, ported:

import { newAppender, newAppendOptions, newEntry, newPublicationAwaiter } from "webtessera";

// Choose one!
import { newMemoryDriver } from "webtessera/storage/memory";
// import { newIndexedDBDriver } from "webtessera/storage/indexeddb";
// import { newSqliteDriver, fromSqliteSync } from "webtessera/storage/sqlite";

The log signs its checkpoints with a signed-note signer, whose name is the log's origin; createSigner() below returns this one:

// Generate the key pair once. Keep skey secret; publish vkey so that clients can
// verify the log's checkpoints.
const { skey, vkey } = generateKey(undefined, "example.com/my-log");
const signer = newSigner(skey);

Start an appender on a storage driver:

const driver = newMemoryDriver();
const signer = createSigner();

const { appender, shutdown, reader } = await newAppender(driver, newAppendOptions().withCheckpointSigner(signer));

Add an entry. The future resolves to the index that the log durably assigned to it:

const { appender, shutdown, reader } = await newAppender(driver, newAppendOptions().withCheckpointSigner(signer));

const index = await appender.add(newEntry(data))();

The ported API guide continues with publication, storage drivers, verification and the map of every package.

What's included

  • Safe API: webtessera/server and webtessera/browser, with receipts that are C2SP tlog-proofs. See the safe API guide.
  • The append lifecycle: batching, antispam, signed checkpoints, witnessing, garbage collection, migration and Static CT. See the ported API.
  • Storage: memory, IndexedDB, any SQLite engine (node:sqlite, bun:sqlite, better-sqlite3, libSQL, rqlite, D1, Durable Objects, sqlite-wasm), or your own key/value store. See choosing storage.
  • Verification: checkpoints, inclusion and consistency proofs, log state tracking and fsck, for any tlog-tiles log. See the ported API.
  • Serving, witnessing and mirroring: a fetch-style handler, a tlog-witness server, and a verifying mirror. See the guide.
  • Examples: six small applications, each with tests and a guide. See the guides.
  • Two runtime dependencies: @noble/hashes and @noble/curves; ESM with types, and no Node built-ins.

Next steps

  • Guides: one per use case, each with a runnable example.
  • Packages: every entry point and its Go counterpart. The doc comments in each package's source are its reference.
  • Compatibility: how byte compatibility with Tessera is proven, and which runtimes CI tests.
  • Contributing and the porting rules in PORTING.md. To report a vulnerability, see SECURITY.md.

License

Apache License 2.0; see LICENSE. Files translated from Go's own libraries (golang.org/x/mod/sumdb/note, parts of golang.org/x/crypto and the standard library) keep their BSD 3-Clause license, reproduced in LICENSES; NOTICE lists every source.

webtessera exists because of the work of the Tessera authors, to whom it owes its design, its comments, and its tests.