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

bunper

v0.3.0

Published

A minimal backend framework for Bun

Readme

Bunper: A Lightweight Web Framework for Bun

Bunper is an in-progress, lightweight web framework designed for the Bun runtime, tailored specifically for small to medium-sized projects. While currently not in its stable release, Bunper offers a streamlined approach to building server-side JavaScript applications, combining structured request handling, intuitive routing, and robust middleware support into a developer-friendly package.

Features

  • Simple Yet Powerful Routing: Define routes with ease, supporting all standard HTTP methods, optimized for simplicity and performance.
  • Middleware Integration: Incorporate essential middleware functions effortlessly to augment your application's capabilities.
  • Preliminary Error Handling: Benefit from basic error handling mechanisms to keep your application running smoothly.
  • TypeScript Friendly: Enjoy the benefits of TypeScript for more reliable and maintainable code.
  • Optimized for Small Projects: Designed with simplicity and efficiency in mind, making it an ideal choice for smaller-scale applications.

Getting Started

Prerequisites

Ensure you have the latest version of Bun installed on your system.

Installation

Bunper is available on npm and can be easily installed using Bun:

# Install Bunper using Bun
bun install bunper

Basic Usage

Here's a simple example to get your Bunper application up and running:

import {Bunper, requestLogger, success, error} from 'bunper';

// Initialize your Bunper application without adding default middlewares
const app = new Bunper({addDefaultMiddlewares: false});

// Add middleware
app.use(requestLogger);

// Create a custom middleware yourself
const errorHandler = (error: any, request: Request, response: Response, next: Function) => {
    return error({message: "Internal server error"}, 500);
};
app.use(errorHandler);

// Define a simple get route
app.get('/', (req, params) => {
    return success({message: "Welcome to Bunper!"})
});

// Define a simple post route
app.post('/', (req, params) => {
    console.log(req.body);
    return success({message: "Your message was received!"});
});

// Define a simple pattern route
app.get("/sum/:a/:b", async (req, params) => {
    const a = parseInt(params.a, 10);
    const b = parseInt(params.b, 10);
    const c = a + b;
    return success(`${a} + ${b} = ${c}`)
});

// Start your server on port 3000
app.listen(3000);

Documentation

As Bunper is currently in development, detailed documentation may be incomplete. We welcome your input and contributions to improve and expand our documentation.

Contributing

Bunper is in its early stages, and we appreciate your patience and support as we work towards a stable release. Contributions, feedback, and constructive criticism are highly encouraged.

Feel free to fork the repository, submit pull requests, or open issues to suggest improvements or report bugs.

Stability Notice

Please note that Bunper is currently under active development. The framework is not yet stable, and the API is subject to change. We recommend using Bunper for experimental projects and look forward to your contributions towards a stable release.

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Email | Telegram | Twitter

Your contributions and feedback will play a significant role in shaping the future of Bunper. We're excited to embark on this journey with you!