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

brioche

v2025.10.17

Published

The buttery‑smooth Svelte framework

Readme

Brioche 🥖

The buttery‑smooth Svelte framework

Overview

Brioche is a full‑stack web framework that combines the best of SvelteKit’s developer experience with Bun’s exceptional performance. It features file‑based routing, server‑side rendering, static site generation, and hot module replacement—all optimized for speed and simplicity.

Key Features

  • 🚀 Blazing Fast: Built on Bun for exceptional performance
  • 🗂️ File‑based Routing: Intuitive routing system with page.svelte and layout.svelte
  • ⚡ Hot Module Replacement: WebSocket‑based HMR with no page reloads
  • 🎨 Built‑in Sass: Native Sass support with theme system
  • 🔧 TypeScript First: Full TypeScript support out of the box
  • 📦 ESM Only: Modern ES modules with bleeding‑edge JavaScript features
  • 🎯 API Routes: Easy server‑side endpoints with server.ts files
  • 🔄 SSR & SSG: Server‑side rendering and static site generation
  • 🎭 Actions & Middleware: Form actions and middleware system

Quick Start

# Create a new Brioche project
bunx create-brioche my-app

# Navigate to your project
cd my-app

# Install dependencies
bun install

# Start development server
bun dev

Your app will be running at http://localhost:3000 with hot module replacement enabled.

Architecture

Brioche follows a convention‑over‑configuration approach with a clear project structure:

my-app/
├── src/
│   ├── routes/           # File‑based routing
│   │   ├── page.svelte   # Home page
│   │   ├── layout.svelte # Layout wrapper
│   │   └── about/
│   │       └── page.svelte
│   ├── lib/              # Shared components and utilities
│   └── app.html          # HTML template
├── static/               # Static assets
└── brioche.config.ts     # Configuration

Documentation

Getting Started

Core Concepts

Features

Build & Deploy

Advanced

Examples

// src/routes/page.svelte — Simple page component
<script lang="ts">
  let count = 0;
</script>

<h1>Welcome to Brioche!</h1>

<button on:click={() => count++}>
  Clicked {count} times
</button>
// src/routes/api/users/server.ts — API route
export async function GET() {
  const users = await db.users.findMany();

  return new Response(JSON.stringify(users), {
    headers: { "Content-Type": "application/json" }
  });
}

export async function POST({ request }) {
  const user = await request.json();
  const created = await db.users.create(user);

  return new Response(JSON.stringify(created), { status: 201 });
}
// src/routes/blog/[slug]/loader.ts — Data loading
export async function load({ params }) {
  const post = await getPost(params.slug);

  return {
    post,
    title: post.title
  };
}

Performance

Brioche leverages Bun’s performance advantages:

  • Fast startup: Projects start in milliseconds
  • Quick builds: Production builds are significantly faster than Vite‑based alternatives
  • Efficient HMR: Updates reflect instantly without page reloads
  • Small bundles: Optimized output with tree‑shaking and minification

Community

Contributing

We welcome contributions! Please see our Contributing Guide for details.

License

MIT © Brioche Framework Team


Note: Brioche is built for speed and modern development practices. It requires Bun 1.0+ and targets bleeding‑edge JavaScript features.