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

@brambodev/memory-sqlite

v0.5.0

Published

The embedded-SQLite MemoryProvider, on node:sqlite's DatabaseSync.

Readme

@brambodev/memory-sqlite

The embedded-SQLite MemoryProvider, on node:sqlite's DatabaseSync.

No new dependency. node:sqlite is the platform, measured working on Node 24.14.1 and Node 26.8.1 — the exact two versions CI runs. Brambo ships exactly one non-@brambodev/* runtime dependency in total (jsonc-parser, in @brambodev/projection) and this package does not make it two.

import { SqliteMemoryProvider } from '@brambodev/memory-sqlite'

const provider = await SqliteMemoryProvider.open({ databasePath: '/tmp/brambo-memory.db' })
await provider.save({
  payload: 'the deploy script needs BRAMBO_HOME set',
  provenance: { agentId: 'claude-code', workspaceId: 'ws-7', recordedAt: new Date().toISOString() },
})
const recent = await provider.search({ workspaceId: 'ws-7' })
await provider.dispose()

The store is one entries table whose sequence is INTEGER PRIMARY KEY AUTOINCREMENT, and the format version lives in PRAGMA user_version, which is where SQLite already keeps exactly this fact. Append-only is enforced by omission and by SQL: sqlite-memory-provider.ts contains no UPDATE and no DELETE. user_version = 0 is a database nobody has stamped — an absent store, so it is stamped and served (AD-5); any other value is refused with BRAMBO_CONTRACT_MEMORY_STORE_VERSION_MISMATCH, and the refused open closes its connection and creates no table.

The experimental warning

Node 24 prints ExperimentalWarning: SQLite is an experimental feature when node:sqlite LOADS, not when a database opens — so a static import would put it on stderr for a consumer that never touches a store, and stderr is a contract surface for brambo run. src/load-sqlite.ts therefore does two things: it imports the module lazily on first open(), and it confines that one warning for the duration of that one import. The filter is narrow (type AND text), so every other warning still reaches the user. test/load-sqlite.test.ts proves all of it in child processes, with two controls: a plain import that MUST show the warning, and an unrelated ExperimentalWarning that MUST survive the confinement.

Conformance

packages/contracts/src/contract-suite/memory-clauses.ts holds the clauses, and test/contract.test.ts runs every one of them against this provider. The identical array runs against @brambodev/memory-filesystem; that swap is FR-16 and scenario S2.