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

@postdog/express

v2.0.0

Published

No more copy pasting endpoints in bruno just run your server.

Readme

@postdog/express

If you use Bruno to test your Express APIs, you know the drill: build a route, switch to Bruno, manually add the endpoint, set the method, type out the path again. Every. Single. Time.

@postdog/express fixes that. Wrap your Express router with postdog() and it auto-generates a Bruno collection from your routes when your server starts. No more copy-pasting endpoints.


Installation

npm i @postdog/express

Usage

1. Wrap your routers

In each route file, import postdog and wrap the router before exporting it. Pass a name for the collection and an optional mount that matches where you mount the router.

// routes/auth.js
import { Router } from "express";
import { Postdog } from "@postdog/express";

const router = Router();

router.post("/register", (req, res) => {
  res.status(201).json({ success: true });
});

export default Postdog(router, { name: "collections", mount: "/auth" });

2. Mount the router normally

// app.js
import express from "express";
import authRouter from "./routes/auth.js";

const app = express();

app.use("/auth", authRouter);

app.listen(3000);

That's it. When your server starts, @postdog/express collects every route registered through postdog() and writes them into a Bruno-compatible collection. Open Bruno, point it at the output folder, and your endpoints are already there.


How it works

postdog(router, options) is a thin wrapper around an Express Router. It intercepts route registrations (GET, POST, PUT, DELETE, etc.) and records the method, path, and mounted path. When the server boots, it writes a Bruno collection file you can import or reference directly.

| Option | Type | Description | |----------|----------|----------------------------------------------------------| | name | string | Name of the Bruno collection to create | | mount | string | Route mount used when mounting the router (e.g. /auth) |


Project structure

postdog-express/
├── index.js          # Main export — the postdog() function
├── utils/            # Internal utilities
├── test_api/         # Example Express app used for testing
├── .changeset/       # Changesets for versioning
└── package.json

Contributing

Pull requests are welcome. For bigger changes, open an issue first so we can talk through what you have in mind.

# Clone the repo
git clone https://github.com/IsmailBinMujeeb/postdog-express.git
cd postdog-express

# Install dependencies
npm install

# Run the test API
npm run dev

To propose a change: fork the repo, create a branch, commit your work, and open a PR against main.

Bug reports go here: github.com/IsmailBinMujeeb/postdog-express/issues


Changelog

See CHANGELOG.md for release history.


License

MIT. Do whatever you want with it.


Built by @IsmailBinMujeeb.