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

bunary

v0.4.0

Published

A Bun-first backend framework inspired by Laravel's elegant developer experience

Readme

Bunary

A Bun-first backend framework inspired by Laravel's elegant developer experience.

Requires Bun ≥ 1.4.0.

Installation

bun add bunary@^0.4.0

This installs the complete Bunary framework at 0.4.0:

  • @bunary/core - Application container, providers, config, environment and validation helpers
  • @bunary/http - Router, middleware, response helpers, CORS, rate limiting, static files, SSE
  • @bunary/auth - Session, JWT and Basic guards
  • @bunary/orm - defineModel() models on Drizzle (drizzle-orm is a peer dependency, installed automatically by bun add)

Every export of those packages and of their /provider integrations is available flat from bunary, except createCookieJar and the CookieJar type: @bunary/http and @bunary/auth both define them, with different types, so import them from bunary/http or bunary/auth. The full export list is in docs/index.md.

Quick Start

import { cors, createApp, createRouter, httpProvider, isDev, serve } from "bunary";

const router = createRouter();

router.use(cors({ origin: "*" }));

router.get("/", (ctx) => ctx.json({ message: "Hello from Bunary!" }));

router.get("/users/:id", (ctx) => ({
  id: ctx.params.id,
  name: `User ${ctx.params.id}`,
}));

router.group("/api", (api) => {
  api.get("/health", () => ({ status: "ok" }));
});

const app = await createApp({
  config: { app: { name: "my-api" }, http: { port: 3000 } },
  providers: [httpProvider(router)],
}).boot();

serve(app);
if (isDev()) console.log("Development mode");

Subpath Imports

Each package also has its own subpath, mirroring its exports exactly:

| Subpath | Re-exports | | --- | --- | | bunary | everything below, flat (minus createCookieJar / CookieJar) | | bunary/core | @bunary/core | | bunary/http | @bunary/http | | bunary/http/provider | @bunary/http/provider | | bunary/auth | @bunary/auth | | bunary/auth/provider | @bunary/auth/provider | | bunary/orm | @bunary/orm | | bunary/orm/provider | @bunary/orm/provider |

import { createApp, defineConfig, env } from "bunary/core";
import { createRouter, createCookieJar } from "bunary/http";
import { httpProvider, serve } from "bunary/http/provider";
import { createAuth, createJwtGuard } from "bunary/auth";
import { authProvider, requireAuth } from "bunary/auth/provider";
import { defineModel } from "bunary/orm";
import { DatabaseToken, ormProvider } from "bunary/orm/provider";

Individual Packages

You can also install packages individually:

bun add @bunary/core@^0.4.0                # Application, config, environment
bun add @bunary/http@^0.4.0                # HTTP routing
bun add @bunary/auth@^0.4.0                # Authentication
bun add @bunary/orm@^0.4.0 drizzle-orm     # Models

Documentation

See docs/index.md for the full export list, and bunary.dev for the framework documentation.

License

MIT