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

bunderstack

v0.24.0

Published

Batteries-included backend framework for Bun: type-safe oRPC APIs, auth, storage, realtime, jobs, messaging, and validated env from one declaration.

Readme

bunderstack

The complete backend & full-stack framework for Bun: type-safe oRPC APIs, auth, storage, realtime, jobs, messaging, live views, and client bindings from one single file declaration.

bun add bunderstack better-auth drizzle-orm valibot @libsql/client
import { bunderstack, defineApi } from 'bunderstack'
import { libsql } from 'bunderstack/libsql'
import * as v from 'valibot'
import * as schema from './schema'

export const backend = bunderstack({
  schema,
  database: { adapter: libsql() },
  access: { posts: { crud: true } },
  realtime: true,
  api: {
    ping: defineApi({ schema })
      .public.route({ method: 'GET', path: '/api/ping' })
      .input(v.optional(v.object({})))
      .handler(() => ({ ok: true })),
  },
})

export const app = await backend.start()
Bun.serve({ fetch: app.handler })
export type App = typeof app

CRUD, custom procedures, webhooks, file buckets, health, and the Publisher event iterator form one router. Validation accepts Standard Schema; internal generated schemas use Valibot. OpenAPI is opt-in with openapi: true.

Generated CRUD writes publish automatically. After a custom write commits, publish its complete returned row with:

await context.realtime.publish(schema.posts, 'update', post)

Use the in-memory Publisher for one process or configure realtime: (env) => ({ redis: env.REDIS_URL }) for multi-process delivery and replay. Deployment metadata is generated with bunx bunderstack blueprint.

Package Subpaths (0.21+)

  • bunderstack — Declarative backend and runtime (bunderstack, defineApi, buildApiRegistry)
  • bunderstack/testing — Isolated lexical fixtures and reusable test factories (backend.test() / backend.test.configure())
  • bunderstack/provision — Explicit production schema provisioning
  • bunderstack/client — Framework-neutral RPC & LiveView client (createClient, createLiveView)
  • bunderstack/client-rest — Type-safe REST client
  • bunderstack/client-react, bunderstack/client-solid, bunderstack/client-vue, bunderstack/client-svelte — LiveView UI bindings
  • bunderstack/query & bunderstack/query-react — TanStack Query client (createClient, syncRealtime)
  • bunderstack/sync — TanStack DB collections (createSyncClient)
  • bunderstack/start & bunderstack/start-auth — TanStack Start full-stack integration
  • bunderstack/libsql, bunderstack/postgres-js, bunderstack/bun-sql, bunderstack/bun-sqlite, bunderstack/pglite — Database adapters
  • bunderstack/storage/* — Storage adapters (s3, disk)
  • bunderstack/messaging — Messaging channel descriptors (resend, customEmail, telegram)
  • bunderstack/email-smtp — SMTP email channel
  • bunderstack/jobs/* — Job queue adapters (memory, redis)

See the workspace documentation for webhooks, clients, storage, collections, lifecycle, and complete examples.

Upgrading

Every change is listed with before/after code in the migration guides, which live in full at:

License

MIT