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

sqlite-95

v8.4.2

Published

SQLite ORM with a web admin

Readme

sqlite-95

A tiny, typed SQLite ORM for Bun — with a built-in web admin to browse and edit your tables.

  • Fluent, immutable query builder
  • TypeScript types inferred from your schema
  • Minimal HTTP controller layer
  • Web admin out of the box
  • No runtime dependencies besides Bun

Install

bun add sqlite-95

Requires Bun ≥ 1.0. Not compatible with Node.

Quick start

import { Table, initDatabase } from 'sqlite-95';
import type { InferFromFields } from 'sqlite-95';

initDatabase({ file: 'app.db' });

const fields = {
  id: Table.number({ primaryKey: true, autoIncrement: true }),
  name: Table.string({ maxLength: 30 }),
  gold: Table.number({ canBeNull: true }),
  isCool: Table.boolean({ default: true }),
};

type Player = InferFromFields<typeof fields>;
const Players = Table.make<Player>({ name: 'players', fields });

Players.insert({ name: 'Coco', gold: 50, isCool: true });

const cool = Players.where('isCool', '=', true)
  .where('gold', '>=', 10)
  .orderBy('gold', 'DESC')
  .findAll();

Documentation

  • QueriesfindAll, findOne, insert, update, remove, count, rawSql, immutability, toSQL introspection.
  • Controllers — JSON / HTML / text / file responses, redirects, cookies, headers, middleware.

Reading from node_modules? The same docs ship inside the package — cat node_modules/sqlite-95/docs/queries.md — or browse them on GitHub.

Running in production

  1. Create a .env file based on the template.

  2. Start with pm2:

    pm2 start src/index.ts
  3. Put Nginx in front for HTTPS.

If you can't use a config file, pass values as env vars:

PORT=3300 BASE_PATH=/sqlite-admin pm2 \
  start --node-args "--es-module-specifier-resolution=node" \
  server/index.js --name sqlite-admin

License

MIT