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

brunogen

v0.4.14

Published

Scan Laravel, Express.js, and Go API projects, normalize them into OpenAPI, and emit ready-to-try Bruno collections.

Readme

brunogen

npm version node >=20 CI

Brunogen scans a Laravel, Express.js, or Go API codebase, normalizes what it finds into OpenAPI, and emits a Bruno collection you can try immediately.

Laravel is the strongest path today, with materially richer request and response inference. Express.js and Go support are already usable for conventional codebases, but they remain more heuristic.

Quick Start

Best first run: start with Laravel if you want the most complete inference path in under a minute.

npm i -g brunogen
brunogen init
brunogen generate

Default output:

  • .brunogen/openapi.yaml
  • .brunogen/bruno/

If you are testing from this repository checkout instead of an installed package, run npm install, npm run build, and npm link once from the repository root first.

What You Get

  • openapi.yaml generated directly from routes, handlers, controllers, and request/response patterns
  • A ready-to-open Bruno collection under .brunogen/bruno/
  • Warnings for patterns Brunogen could not infer confidently

Framework Paths

| Framework | Current fit | First place to try | Demo | | --- | --- | --- | --- | | Laravel | Strongest path today | cd tests/fixtures/laravel && brunogen init && brunogen generate | Laravel demo | | Express | Useful, still heuristic | cd tests/fixtures/express && brunogen init && brunogen generate | Express demo | | Go | Experimental | cd tests/fixtures/gin && brunogen init && brunogen generate | Go demo |

To refresh the checked-in demo snapshots after an intentional output change:

npm run demo:laravel
npm run demo:express
npm run demo:go

Commands

  • init creates a starter config in the current directory
  • generate scans the current project and writes OpenAPI plus a Bruno collection
  • watch regenerates when supported source files change
  • validate checks generated OpenAPI output
  • doctor shows environment and framework detection details

Works Best Today

  • Laravel route scanning from routes/*.php, including groups, prefixes, middleware hints, and apiResource
  • Laravel request inference from FormRequest rules, inline validation, and common manual accessors such as query, header, typed accessors, has, filled, safe()->only(...), and enum(...)
  • Laravel response inference for direct arrays, response()->json(...), noContent(), same-controller helpers, JsonResource, ->additional(...), and common abort/error/not-found paths
  • Express scanning for mounted routers, straightforward request access patterns, and local response helpers
  • Go Gin, Fiber, and Echo scanning for conventional route registration and direct JSON responses
  • Bruno export with environments, baseline auth support, and native response example {} blocks

How It Works

source code
  -> framework adapter
  -> normalized endpoint model
  -> openapi.yaml
  -> Bruno collection

OpenAPI becomes the internal source of truth after scanning. Bruno is the output target.

Read More