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 🙏

© 2025 – Pkg Stats / Ryan Hefner

express-api-creator

v0.1.17

Published

Scaffold an Express.js boilerplate project. You can generate express.js boilerplate code with a single command.

Downloads

44

Readme

Express API Creator

NPM version NPM downloads License

Express API Creator is a powerful and flexible Node.js CLI and library designed to rapidly bootstrap and manage Express.js RESTful APIs. It simplifies the process of creating well-structured, feature-rich API backends with minimal configuration, allowing developers to focus on business logic rather than boilerplate code. Supports both JavaScript and TypeScript.

Features

  • Create Project:

    • CLI: Quickly generate a new Express.js project boilerplate.
      • npx express-api-creator create
    • Languages support
      • JavaScript
      • TypeScript
  • Create MCR (Model/Controller/Route):

    • CLI: Generate Model, Controller and Route files for a new project with a single command.
      • npx express-api-creator mcr
      • Note: Be sure you are in project folder.
  • Default Routes:

    • Authentication:

      • POST /auth/login
      • POST /auth/register
      • POST /auth/reset-password
      • POST /auth/forgot-password
    • User Management:

      • GET /user/list
      • GET /user/my-profile
      • POST /user/upload-image
      • PUT /user/update-password
  • Automatic Route Generation (Library): Define your API endpoints and their logic in a simple configuration file or directly in your code, and express-api-creator can handle the route setup when used as a library.

  • Middleware Integration: Easily integrate custom or third-party Express middleware. This includes functionalities like authentication (e.g., protecting routes with auth middleware), logging, validation, and more, applicable globally or on a per-route basis.

  • Controller Support: Structures your API logic into controllers for better organization and maintainability. Generated controllers often include stubs for common CRUD operations and other resource-specific actions, such as:

    • create(): Add a new resource.
    • update(): Modify an existing resource.
    • list(): Retrieve a collection of resources.
    • details(): Get a single resource by its identifier.
    • softDelete(): Remove a resource (can be a soft delete).
  • Response: Well structured response for succuss & error.

  • File Upload: you can upload single image with express-file-upload.

  • Service Layer Abstraction: Encourages the use of a service layer to separate business logic from request handling.

  • Error Handling: Includes a default error handling mechanism that can be customized.

  • Asynchronous Support: Built to work seamlessly with asynchronous operations and Promises.

  • Highly Extensible: Designed to be flexible and allow developers to extend its core functionalities.

  • Rapid Prototyping: Get your API up and running in minutes, ideal for quick prototyping and MVPs.

  • Structured Project Layout: Promotes a clean and organized project structure.

How to use

  • npx express-api-creator create
  • cd <project-name>
  • npx express-api-creator mcr

How to run

  • npm run dev