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

quiverdb

v0.5.0

Published

Bun-native SQLite wrapper binding for Quiver via bun:ffi

Readme

quiverdb

Bun-native SQLite wrapper binding for Quiver via bun:ffi.

Requirements

  • Bun >= 1.0.0
  • libquiver.dll and libquiver_c.dll in system PATH

Installation

bun add quiverdb

The native Quiver DLLs must be compiled separately and available in your system PATH. See the Quiver project build instructions for details.

DLL Setup

This binding loads the Quiver C API library (libquiver_c.dll) at runtime via bun:ffi. The core library (libquiver.dll) is a dependency that must also be loadable.

Options for making the DLLs available:

  1. Add the build/bin/ directory to your system PATH
  2. Copy both DLLs to a directory already in PATH
  3. Place both DLLs alongside your application entry point

Quick Start

import { Database } from "quiverdb";

const db = Database.fromSchema("my.db", "schema.sql");
db.createElement("Items", { label: "Item 1", value: 42 });

const values = db.readScalarIntegers("Items", "value");
console.log(values); // [42]

db.close();

API Methods

Lifecycle

  • Database.fromSchema(dbPath, schemaPath) -- Create database from SQL schema file
  • Database.fromMigrations(dbPath, migrationsPath) -- Create database from migrations directory
  • close() -- Close the database connection

Create / Delete

  • createElement(collection, data) -- Create element, returns numeric ID
  • deleteElement(collection, id) -- Delete element by ID

Read (bulk)

  • readScalarIntegers(collection, attribute) -- Read all integer scalars
  • readScalarFloats(collection, attribute) -- Read all float scalars
  • readScalarStrings(collection, attribute) -- Read all string scalars

Read (by ID)

  • readScalarIntegerById(collection, attribute, id) -- Read integer or null
  • readScalarFloatById(collection, attribute, id) -- Read float or null
  • readScalarStringById(collection, attribute, id) -- Read string or null

Read (IDs)

  • readElementIds(collection) -- Read all element IDs in a collection

Query

  • queryString(sql, params?) -- Query returning string or null
  • queryInteger(sql, params?) -- Query returning integer or null
  • queryFloat(sql, params?) -- Query returning float or null

Parameters are passed as an array of number | string | null.

Transaction

  • beginTransaction() -- Begin explicit transaction
  • commit() -- Commit current transaction
  • rollback() -- Rollback current transaction
  • inTransaction() -- Check if transaction is active

Types

Exported types available for TypeScript consumers:

  • ScalarValue -- number | bigint | string | null
  • ArrayValue -- number[] | bigint[] | string[]
  • Value -- ScalarValue | ArrayValue
  • ElementData -- Record<string, Value | undefined>
  • QueryParam -- number | string | null
  • QuiverError -- Error class for all Quiver operations

Development

bun test         # Run all tests
bun run typecheck # TypeScript type checking (tsc --noEmit)
bun run lint     # Biome linting
bun run format   # Biome formatting (auto-fix)

License

MIT