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

apiscriptor

v1.0.1

Published

Modern, high-performance API documentation for Express.js with beautiful UI, type generation, and seamless integration

Readme

🚀 ApiScriptor

Modern, high-performance API documentation for Express.js with beautiful UI, type generation, and seamless integration.

npm version License: MIT

✨ Features

  • 🎨 Beautiful UI - Modern, Stripe-inspired design with dark/light mode
  • ⚡ Zero Config - Auto-detects routes, just add one line of code
  • 🔒 Password Protection - Secure your docs with password authentication
  • 📝 Type Generation - Generate types for TypeScript, Go, Python, Rust, Dart
  • 📤 Multi-format Export - Export to OpenAPI, Postman, Insomnia, Markdown
  • 🎯 Interactive Playground - Test API endpoints directly from docs
  • 🔍 Fuzzy Search - Quickly find endpoints
  • 📱 Responsive - Works on all devices

📦 Installation

npm install apiscriptor

🚀 Quick Start

import express from 'express';
import { ApiScriptor } from 'apiscriptor';

const app = express();

// Your API routes
app.get('/api/users', (req, res) => {
  /* ... */
});
app.post('/api/users', (req, res) => {
  /* ... */
});

// Add ApiScriptor - that's it!
app.use(
  '/docs',
  ApiScriptor.serve(app, {
    title: 'My API',
    version: '1.0.0',
    theme: 'dark',
  })
);

app.listen(3000);

Visit http://localhost:3000/docs to see your documentation!

🔐 Password Protection

app.use(
  '/docs',
  ApiScriptor.serve(app, {
    title: 'My API',
    version: '1.0.0',
    auth: {
      enabled: true,
      password: 'your-secret-password',
      sessionMaxAge: 24 * 60 * 60 * 1000, // 24 hours
    },
  })
);

📝 Type Generation

Generate types for multiple languages:

import { ApiScriptor } from 'apiscriptor';

await ApiScriptor.generateTypes(app, {
  output: './generated-types',
  languages: ['typescript', 'go', 'python', 'rust', 'dart'],
});

📤 Export Formats

import { ApiScriptor } from 'apiscriptor';

// Export to OpenAPI 3.0
await ApiScriptor.export(app, { format: 'openapi', output: './openapi.json' });

// Export to Postman Collection
await ApiScriptor.export(app, { format: 'postman', output: './postman.json' });

// Export to Insomnia
await ApiScriptor.export(app, { format: 'insomnia', output: './insomnia.json' });

// Export to Markdown
await ApiScriptor.export(app, { format: 'markdown', output: './API.md' });

⚙️ Configuration

| Option | Type | Default | Description | | ------------- | ------------------- | -------- | --------------------------------- | | title | string | Required | API title | | version | string | Required | API version | | description | string | - | API description | | baseUrl | string | - | Base URL for API | | theme | 'dark' \| 'light' | 'dark' | UI theme | | logo | string | - | Logo URL | | auth | object | - | Password protection config | | exclude | string[] | - | Routes to exclude (glob patterns) | | customCss | string | - | Custom CSS to inject | | customJs | string | - | Custom JavaScript to inject |

🛠️ Development

# Install dependencies
npm install

# Build
npm run build

# Run tests
npm test

# Run example
cd examples/basic-express
npm install
npm start

📄 License

MIT © [Your Name]