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

@realastrox11/bunql

v1.2.0

Published

A minimal high performance ORM for Bun using bun:sqlite

Readme

BunQL

A simple, lightweight Object-Relational Mapper designed for Bun’s native SQLite integration. It provides a comprehensive API for database operations, predictable SQL generation, cached prepared statements, and high performance.

Capabilities

  • Zero dependencies, small footprint.

  • Built directly on bun:sqlite module with cached prepared statements.

  • SQL-first approach with no decorators or reflection.

  • Automatic table creation from schema definitions.

  • Full transaction support.

  • Advanced query operators such as: comparison, IN, BETWEEN, LIKE.

Getting Started

Install
bun add @realastrox11/bunql
Create Model
import { BunQL } from "@realastrox11/bunql";

const ql = new BunQL({ filename: ":memory:" });

const User = ql.define("user", {
  id: { type: "INTEGER", primary: true, autoIncrement: true },
  email: { type: "TEXT", unique: true },
  username: { type: "TEXT" },
  created_at: { type: "INTEGER" }
});

// Insert
const user = User.insert({
  email: "[email protected]",
  username: "alice",
  created_at: Date.now()
});

// Query
const found = User.find({ email: "[email protected]" }).first();
const allUsers = User.all();

// Fluent Select Query Builder
const users = User.select()
  .where("email", "LIKE", "%@mail.com")
  .orderBy("username", "ASC")
  .limit(10)
  .get();

// Chained conditions
const activeAdmins = User.select()
  .where("status", "=", "active")
  .where("role", "=", "admin")
  .get();

// OR conditions
const results = User.select()
  .where("status", "=", "inactive")
  .orWhere("role", "=", "guest")
  .get();

// Update
User.updateById(1, { username: "alice_updated" });

// Delete
User.deleteById(1);

License

MIT License Copyright (c) 2024 astrox11 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software.