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

@prehoy/baguette

v0.5.3

Published

Blazingly fast, zero-config Bun + Hono API framework. Drop a file, get a typed, documented, validated endpoint.

Downloads

2,692

Readme

🥖 baguette

The Bun + Hono API framework your AI agent can't make a mess of.

Generated backend code rots because there are a hundred ways to do everything. baguette ships one — file-based routes, zod-first I/O, batteries included — and enforces it with a checker your AI can't merge around. Blazingly fast, zero-config, typed end to end.

Docs · npm · llms.txt

Quickstart

bun create baguette my-api
cd my-api && bun run dev     # → http://localhost:3000 · docs at /api/docs

Add an endpoint — the file's location is the URL, and one declaration gives you validation, inferred types, OpenAPI docs, and an error funnel:

// api/customers/[id].ts  →  GET /api/customers/{id}
import { defineRoute, z } from "@prehoy/baguette";

export default defineRoute({
  method: "get",
  request: { params: z.object({ id: z.string() }) },
  response: z.object({ id: z.string(), name: z.string() }),
  handler: (c, { params }) => c.json({ id: params.id, name: "Ada" }),
});
// server.ts
import { serve } from "@prehoy/baguette";
serve({ routesDir: "./api" });   // routes loaded, docs live, done

Built for AI agents

The thing that makes generated code a mess — infinite ways to structure it — is the thing baguette removes. Every app on baguette is the same shape, so an agent (or a new hire) can't drift:

  • One obvious way — one route per file, all I/O through zod, no manual parsing.
  • A shipped clean-code contract every repo inherits — read by humans and the AI tools working in it.
  • baguette/eslint + baguette check turn the conventions into CI failures, so an agent physically can't merge the mess.
  • llms.txt — the whole framework, machine-readable, so agents get it right the first time.

Batteries included — each opt-in

| | | |---|---| | Routing | File-based, [id] params, method-suffixed files, auto Scalar docs | | Validation | zod-first: one schema → validation + types + OpenAPI | | Security | Declarative per-route auth, rate limiting, security headers, CORS guard, body limits | | Real-time | Opt-in WebSockets with a room/channel pub/sub | | Background | cron/ (memory/Postgres/Redis/SQLite locks), queues/ (bee-queue), automations/ (LISTEN/NOTIFY) | | Email | React templates, browser preview, send via Resend/SMTP | | Ops | onBoot/onShutdown + graceful SIGTERM, static/SPA serving, typed defineEnv | | Agnostic | No ORM in the core — Prisma, Drizzle, or raw SQL |

Full docs: usebaguette.com/docs

Deploy

bun create baguette ships a Dockerfile — run it anywhere, or have it managed on Berth. Building something bigger? Talk to Prehoy — we do the infra and the backend.

Contributing / dev

bun install
bun test
bun run dev      # runs examples/ on :3000

MIT · a Prehoy Industries project · usebaguette.com