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

expresso-swagger

v0.0.6

Published

A modern, beautiful Swagger UI replacement with built-in credential support and easy programmatic configuration.

Readme

☕ ExpressoSwagger

License: MIT Build Status

This library was entirely made by Gemini.

ExpressoSwagger is a modern, high-performance, and visually stunning alternative to Swagger UI. Designed for developers who care about aesthetics and functionality, it offers a seamless way to document and test your APIs without the clunky overhead of traditional tools.

ExpressoSwagger Interface

🌟 Why ExpressoSwagger?

Traditional Swagger can be rigid and visually dated. ExpressoSwagger was built to solve specific pain points:

  • ⚡ Modern 3-Column Layout: A clean, ergonomic interface inspired by Stripe and Redoc. Navigation on the left, Documentation in the center, and a powerful Console on the right.
  • 🍪 Native Session Support: Tired of CORS and credential issues? ExpressoSwagger supports withCredentials natively, making cookie-based and session-based authentication testing a breeze.
  • 🛠️ Zero Decorators: No more polluting your controllers with bulky decorators. Configure everything programmatically with simple, strongly-typed TypeScript objects.
  • ♻️ DRY Models: Define your data structures once and reuse them across multiple endpoints.
  • 🔍 Smart Method Search: Search not just for paths or titles, but also by HTTP method (e.g., type "POST" to see all creation endpoints).
  • 💾 Persistent Global Headers: Set your Authorization tokens or API keys once in the Global Config panel; they are saved in your browser and injected into every call automatically.

📦 Installation

npm i expresso-swagger

🚀 Quick Start

ExpressoSwagger is framework-agnostic. Whether you use Express, Fastify, Koa, or a custom solution, integration takes seconds.

1. Configure your API

const { ExpressoSwagger } = require('expresso-swagger');

const doc = new ExpressoSwagger({
    info: {
        title: "Store Management API",
        version: "1.0.0",
        description: "Manage products, users, and orders with ease."
    },
    baseUrl: "https://api.myapp.com",
    models: {
        User: { id: 1, username: "dev_user", role: "admin" }
    },
    settings: { withCredentials: true }
});

doc.addEndpoint({
    path: "/users",
    method: "GET",
    group: "Users",
    name: "Retrieve all users",
    responses: {
        200: { description: "List of users", body: ["User"] }
    }
});

2. Serve the UI (Example with Express)

const express = require('express');
const { getUIPath } = require('expresso-swagger');

const app = express();

// Serve the compiled UI assets
app.use('/docs', express.static(getUIPath()));

// Serve the documentation JSON (the UI looks for it at ./docs.json)
app.get('/docs/docs.json', (req, res) => {
    res.json(doc.getDocument());
});

app.listen(3000, () => console.log('API Docs: http://localhost:3000/docs'));

🎨 UI Features

  • Color-coded Methods: Instantly distinguish between GET, POST, PUT, and DELETE with vibrant badges.
  • Inline Descriptions: Support for multiline descriptions (\n) to keep your documentation detailed but readable.
  • Real-time URL Building: Watch your final API URL update dynamically as you type parameters.
  • Schema Preview: Elegant, foldable JSON previews for every response type.

🤝 Contributing

Contributions are welcome! If you have ideas for new features or improvements, feel free to open an issue or submit a pull request.

📜 License

This project is licensed under the MIT License.