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

@aptre/sqlite-wasm

v3.53.0-build1

Published

Bare-bones SQLite Wasm build for Aperture Robotics. Minimal binary size, no FTS5/RTREE/JSON/WAL.

Downloads

48

Readme

@aptre/sqlite-wasm

NPM Version

Aperture Robotics fork of @sqlite.org/sqlite-wasm with a bare-bones build for minimal binary size.

Related Projects

What Changed

This fork builds SQLite Wasm with the wasm-bare-bones flag, which disables features we do not use to reduce binary size:

Disabled features:

  • FTS5 (full-text search)
  • RTREE (spatial indexing)
  • JSON functions
  • WAL (write-ahead logging)
  • Session extension
  • DBPAGE/DBSTAT virtual tables
  • Preupdate hooks
  • Authorization callbacks
  • Incremental blob I/O
  • Introspection pragmas
  • Progress callbacks
  • GET_TABLE convenience function

Kept features:

  • Core SQL engine
  • OPFS VFS (origin private file system)
  • OPFS SAH Pool VFS (sync access handle)
  • Math functions
  • KV VFS
  • URI filenames
  • API armor (bounds checking)

The build is automatically updated when a new upstream SQLite version is released. A daily GitHub Actions workflow checks for new version-* tags in the upstream SQLite repository.

Installation

npm install @aptre/sqlite-wasm

Usage

Same API as @sqlite.org/sqlite-wasm. See the upstream documentation for full usage examples.

import sqlite3InitModule from '@aptre/sqlite-wasm';

const sqlite3 = await sqlite3InitModule();
const db = new sqlite3.oo1.DB('/mydb.sqlite3', 'ct');

In a worker (with OPFS):

Note: OPFS requires these headers on your server:

Cross-Origin-Opener-Policy: same-origin

Cross-Origin-Embedder-Policy: require-corp

import sqlite3InitModule from '@aptre/sqlite-wasm';

const sqlite3 = await sqlite3InitModule();
const db =
  'opfs' in sqlite3
    ? new sqlite3.oo1.OpfsDb('/mydb.sqlite3')
    : new sqlite3.oo1.DB('/mydb.sqlite3', 'ct');

Building locally

  1. Build the Docker image:

    docker build -t sqlite-wasm-builder:env .
  2. Run the build (bare-bones by default):

    docker run --rm \
      -e SQLITE_REF="master" \
      -e SQLITE_BARE_BONES=1 \
      -e HOST_UID="$(id -u)" \
      -e HOST_GID="$(id -g)" \
      -v "$(pwd)/out":/out \
      -v "$(pwd)/src/bin":/src/bin \
      sqlite-wasm-builder:env build

    Set SQLITE_BARE_BONES=0 for a full-featured build.

Running tests

npm install
npx playwright install chromium --with-deps --no-shell
npm test

Deploying a new version

Automated: the update-sqlite workflow runs daily. When a new upstream SQLite version-* tag appears, it rebuilds, tests, and publishes automatically.

Manual:

npm run release          # bumps patch, commits, tags
npm run release:publish  # pushes commit + tag (triggers GH Actions npm publish)

License

Apache 2.0.