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

@bodil/bdb

v0.2.1

Published

A signal enabled database

Downloads

428

Readme

bdb

An easy to use and well typed reactive database for client side web apps. As web scale as it gets.

API Docs

Find the API docs here:

Overview

Big ideas:

  • In-memory database with optional syncing to permanent storage (usually IndexedDB). All operations are synchronous, storage happens automatically in the background, and it syncs automatically with other browser tabs using the same storage. Suitable for managing your application state as well as persistent settings.

  • Leverages the type system to ensure indices are valid and queries don't use indices that don't exist. If you're unsure whether your code is using an index, you can remove it, and if the code still type checks, you're good.

  • Leans on signals to build reactive queries, letting you easily build complex relational queries with live results, and, more importantly, makes it easy to reflect your application state in your web UI, assuming your web framework understands signals.

Example

import { createTable } from "@bodil/bdb";

type MovieStar = {
    name: string;
    powerLevel: number;
};

// Make a table of entries of type `MovieStar` with primary key `name`
const movieStars = createTable<MovieStar>()
// with `name` as the primary key
    .withPrimaryIndex(index<MovieStar>().key("name"))
// and with an additional searchable index for `powerLevel`.
    .withIndex(index<MovieStar>().key("powerLevel"));

// Add some movie stars to the table.
table.add(
    { name: "Joe", powerLevel: 25 },
    { name: "Mike", powerLevel: 15 },
    { name: "Robert", powerLevel: 9001 },
);

// Lookup a movie star by primary key.
table.get("Joe"); // => { name: "Joe", powerLevel: 25 }

// Get all movie stars with `powerLevel` below 9000.
const query = table.where("powerLevel").below(9000);
query.toArray().map((i) => i.name); // => ["Joe", "Mike"]

// A live query of Robert's power level.
const robertsPowerLevel = table.signal("Robert")?.map((i) => i.powerLevel);
robertsPowerLevel.get(); // => 9001
// He gets more powerful as he fixes the bug!
table.update("Robert", (robert) => robert.powerLevel++);
robertsPowerLevel.get(); // => 9002

Licence

Copyright 2025 Bodil Stokke

Licensed under the European Union Public Licence version 1.2 or later.