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

@listablelabs/create-api

v1.0.3

Published

CLI to scaffold ListableLabs microservices

Readme

@listablelabs/create-api

CLI tool to scaffold standardized ListableLabs microservices.

Installation

# Install globally
npm install -g @listablelabs/create-api

# Or use npx (no install required)
npx @listablelabs/create-api create my-service

Usage

Create a New Service

# Interactive mode (recommended)
listablelabs create my-service

# Quick mode with defaults
listablelabs create my-service -y

# Specify directory
listablelabs create my-service -d ./services

# Skip npm install
listablelabs create my-service --skip-install

# Skip git initialization
listablelabs create my-service --skip-git

Add Components to Existing Project

# Add a new route + controller
listablelabs add route
listablelabs add route -n users

# Add just a controller
listablelabs add controller -n payment

# Add a service
listablelabs add service -n email

# Add a middleware
listablelabs add middleware -n cache

# Add a model (auto-detects MongoDB/SQL)
listablelabs add model -n user

Features

When creating a new service, you can choose:

  • Logging - Pino with pretty printing in dev
  • Validation - Joi request validation
  • Rate Limiting - Express rate limit
  • Error Handling - Centralized error handling with typed errors
  • JWT Authentication - Optional auth middleware
  • Swagger/OpenAPI - Optional API documentation
  • Database - PostgreSQL, MongoDB, or MySQL support

Project Structure

my-service/
├── src/
│   ├── config/           # Environment configuration
│   ├── controllers/      # Request handlers
│   ├── middlewares/      # Express middlewares
│   ├── routes/v1/        # API routes
│   ├── services/         # Business logic
│   ├── models/           # Data models
│   ├── utils/            # Utilities (logger, response)
│   ├── app.js           # Express setup
│   └── server.js        # Entry point
├── tests/
├── Dockerfile
└── docker-compose.yml

Publishing (Internal)

# Login to npm (or your private registry)
npm login

# Publish
npm publish --access public

Examples

Create a user service with PostgreSQL and auth:

$ listablelabs create user-service

? Service name: user-service
? Description: User management microservice
? Port: 3001
? Select features:
  ◉ Pino Logging
  ◉ Joi Validation
  ◉ Rate Limiting
  ◉ Error Handling
  ◉ JWT Authentication
  ◯ Swagger/OpenAPI Docs
? Database: PostgreSQL

✔ Project structure created
✔ Git repository initialized
✔ Dependencies installed

✔ Project created successfully!

Next steps:
  cd user-service
  npm run dev

Add a products route:

$ cd user-service
$ listablelabs add route -n products

✔ Created products route and controller

Files created:
  - src/routes/v1/productsRoutes.js
  - src/controllers/productsController.js

Add to src/routes/v1/index.js:
  const productsRoutes = require('./productsRoutes');
  router.use('/products', productsRoutes);