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

@dolthub/doltlite-wasm

v0.11.22

Published

DoltLite compiled to WebAssembly: SQLite with Dolt-style version control (branches, commits, merge, diff) for the browser and any JS runtime.

Readme

@dolthub/doltlite-wasm

DoltLite compiled to WebAssembly: a drop-in SQLite build with Dolt-style version control — dolt_commit, dolt_branch, dolt_merge, dolt_diff, and the rest — that runs in the browser and in any JS runtime.

This is the WebAssembly distribution. For a native Node/Bun addon, use @dolthub/doltlite instead.

Install

npm install @dolthub/doltlite-wasm

Browser (OPFS-backed, persistent)

OPFS persistence requires the page be served cross-origin isolated (the COOP/COEP headers below); without them you still get an in-memory database.

import { sqlite3InitModule } from '@dolthub/doltlite-wasm';

const sqlite3 = await sqlite3InitModule();

// Persistent across reloads when OPFS is available, in-memory otherwise.
const db = ('opfs' in sqlite3)
  ? new sqlite3.oo1.OpfsDb('/app.db')
  : new sqlite3.oo1.DB(':memory:');

db.exec(`CREATE TABLE IF NOT EXISTS t(id INTEGER PRIMARY KEY, msg TEXT)`);
db.exec(`INSERT INTO t(msg) VALUES('hello')`);
db.exec(`SELECT dolt_commit('-A', '-m', 'first commit')`);

for (const row of db.selectObjects(`SELECT * FROM dolt_log`)) {
  console.log(row.commit_hash, row.message);
}

Required headers for OPFS (cross-origin isolation):

Cross-Origin-Opener-Policy: same-origin
Cross-Origin-Embedder-Policy: require-corp

Node / Bun

import { sqlite3InitModule } from '@dolthub/doltlite-wasm';

const sqlite3 = await sqlite3InitModule();
const db = new sqlite3.oo1.DB('/tmp/app.db');
db.exec(`CREATE TABLE t(x)`);
db.exec(`SELECT dolt_commit('-A', '-m', 'init')`);

Entry points

| Import | Use | | --- | --- | | @dolthub/doltlite-wasm | Default; bundler-friendly ESM init | | @dolthub/doltlite-wasm/sqlite3.mjs | Plain ESM (no bundler) | | @dolthub/doltlite-wasm/sqlite3-node.mjs | Node-specific entry | | @dolthub/doltlite-wasm/sqlite3-worker1-promiser.mjs | Worker promiser API |

The JavaScript API is the upstream SQLite WASM API — see the sqlite3-wasm docs. Everything there works; DoltLite adds the dolt_* version-control functions and virtual tables on top.

License

Apache-2.0. See LICENSE.md. SQLite itself is public domain.