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

patties

v0.1.0

Published

Bun-native full-stack meta-framework with React rendering

Readme

Bun + Patties

Patties is a Bun-native full-stack meta-framework with React for UI and Bun.serve for HTTP. It is intentionally built around Bun primitives — Bun.serve, Bun.Glob, Bun.build, bun --hot — rather than as a Node-era framework with a Bun adapter. The goal is a smaller, more legible architecture that treats Bun as the foundation instead of a faster place to run old assumptions.

Quick start

bunx create-patties@latest my-app
cd my-app
bunx patties dev

By default the scaffold includes a CLAUDE.md for Claude Code (rules + auto-generated manifest fenced into a marked section). Pick a different agent platform with --template:

bunx create-patties@latest my-app --template codex   # .codex/ + AGENTS.md
bunx create-patties@latest my-app --template none    # no agent file

Manual setup

bun add patties react react-dom
import { setupDevClient } from "patties/dev"
import { createRenderer } from "patties/render"
import { createRouter } from "patties/router"
import { startServer } from "patties/server"

const appDir = import.meta.dir + "/app"
const devClient = await setupDevClient({ appDir })
const renderer = createRenderer({ manifest: devClient.manifest, dev: true })
const { routes, fallback } = await createRouter({ appDir, renderer })

startServer({
  routes: { ...devClient.routes, ...routes },
  fallback,
  dev: true,
})

Drop files into app/routes/ for pages and API handlers, and into app/islands/ for components you want hydrated on the client. Wrap each island use site in <Island name="MyIsland">…</Island> (from patties/render) so the SSR markers are emitted and the client runtime hydrates them.

Agent manifest

patties dev / patties build regenerate a route + island + agent + tool + job + middleware + env inventory. It's spliced between <!-- patties:manifest-start --><!-- patties:manifest-end --> so rules and notes above the section are preserved across regenerations. Default target is CLAUDE.md; override with config.agentsMd.path (string or string[]) in patties.config.ts.

CLI

patties dev               # bun --hot dev server (use --cold for bun --watch)
patties build             # production bundle
patties build --target edge
patties deploy            # build then dispatch to an installed deploy plugin
patties secret            # manage dev-time secrets in the OS keychain

UI catalog (via the optional patties-ui package):

patties ui init           # scaffold tokens + _internal helpers (once)
patties add button card   # stamp components into app/components/ui/
patties view button       # print a component's source before stamping
patties update button     # re-stamp from the catalog after showing the diff
patties migrate           # codemods: radix imports / RTL logical properties
patties ui build          # emit a fetchable registry.json (for registry authors)

See patties --help for all flags.

What's in the box

  • Filesystem routing compiled to Bun route patterns
  • React server rendering via renderToReadableStream
  • Client islands with on-demand hydration
  • HMR over a small WebSocket layer
  • Build pipeline that inlines route + island manifests for portable Bun / edge output
  • Single-file --compile binaries (adapter.bun.compile) with app/public + client chunks embedded via Bun.embeddedFiles — no dist/ sidecar to ship
  • Per-request correlation IDs on ctx.requestId, echoed as X-Request-Id; dev responses also carry Server-Timing: total;dur=<ms>
  • Middleware composition, typed context, config + secrets loading
  • Optional AI primitives (agents, tools, jobs) and agent-manifest generation (default CLAUDE.md, configurable)
  • Plugin system

Background

Read the longer write-up: Bun, Patties, and Fries: A Complete Meal for the Bun-Native Web Stack.