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 🙏

© 2025 – Pkg Stats / Ryan Hefner

bunorm

v0.0.1

Published

Synchronous ORM lib for Bun:sqlite - easier db handling

Readme

What is BunORM 🤔

BunORM is a ORM implementation for bun:sqlite that makes it easy to manage your bun:sqlite database by not only providing a simple to use interface, but also really good typescript support (This package is still in an very early state so dont expect to much lol)

Features 😯

  1. ⚡ BLAZINGLY FAST
  2. 😮 Tiny no-dependencies package
  3. 🔤 Bestest autocompletion due to really good typescript types
  4. 💻 Easy to use interface inspired by TypeORM
  5. Supports following cool features out of the box:
    • Custom data types like "JSON" with full type support (so you dont have to cast 😉)
    • Middleware support (get/set)
    • Custom functions that will be added to the row objects
    • Relations between tables (also with type support)
    • Automatic Id, createdAt and updatedAt properties

Installation

Stable release

npm i bunorm

Dev release

npm i https://github.com/deadlinecode/BunORM

Usage

Just import the package

import { BunORM } from "bunorm";

and define your table like this

const db = new BunORM("db.sqlite", {
    tables: {
        roles: {
            columns: {
                name: {
                    type: "TEXT",
                },
            },
        },
        users: {
            columns: {
                username: {
                    type: "TEXT",
                },
                password: {
                    type: "TEXT",
                },
                userData: {
                    type: "JSON",
                },
            },
        },
    },
});

Then use it ^~^

const users = db.tables.users.find();

Wait thats not all!!! BunORM can do so much more for you 😎 Just take a look at the example folder

I wanna tweak it for my own use case ÒvÓ

Sure thing! You can tinker with the package like this:

  1. Clone the repo
    git clone https://github.com/deadlinecode/BunORM .
  2. Change stuff you wanna change
  3. Build the package
    npm build
  4. Install it in another nodejs project from wherever you saved it on your disk
    # inside your other project
    npm install /path/to/the/repo/named/BunORM
    or alternatively run the example
    # inside the package folder
    bun run src/example/example.ts

Found a bug or want to contribute because you're a cool person?

If you found an issue or would like to submit an improvement, please open an issue here.

If you actually have some spare time and want to contribute, feel free to open a PR and please don't forget to (create and) link the corresponding issue. It's important so we can keep track of all the issues and feature requests that got resolved by PRs.

Known issues/feature requests (WIP)

  • [ ] Cleaning up the messy shit i call "code"
  • [ ] Adding support for multiple relation types (one-to-many, one-to-one, etc.)
  • [ ] Support relations both ways if one is set
  • [ ] db.tables.[table].save should return the saved entity
  • [ ] Bulk actions for everything

You need help or want to exchange about things

Well bad for you. Jk. I currently don't have a discord but you can find me on the bun discord server or just dm me on discord

See ya over there and thanks for using my package ^^ <3