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

create-backend-api

v0.2.1

Published

A CLI tool to generate lean Node.js backend scaffolds with TypeScript, Express/Fastify, and TypeORM/Prisma

Readme

create-backend-api

A CLI tool to generate lean Node.js backend scaffolds with TypeScript — entry point, database infra, and optional Docker. You own the architecture from there.

License: MIT Node.js Version npm version

Features

  • Quick Setup - Generate a minimal backend project in seconds
  • Lean Scaffold - Entry point + DB config only; no unused boilerplate
  • Multiple Stacks - Express/Fastify + TypeORM/Prisma + PostgreSQL
  • Docker Ready - Optional Docker and Docker Compose configuration
  • Tooling Ready - Pre-configured with ESLint, Prettier, and TypeScript
  • Type Safe - Full TypeScript support with proper types

Supported Stacks

| Framework | ORM | Database | Status | | --------- | ------- | ---------- | ------ | | Express | TypeORM | PostgreSQL | ✅ | | Express | Prisma | PostgreSQL | ✅ | | Fastify | TypeORM | PostgreSQL | ✅ |

Quick Start

The Easiest Way (No Installation Required)

npx create-backend-api create

The CLI will guide you through project setup and generate a lean backend scaffold.

Alternative: Install Globally

npm install -g create-backend-api
create-backend-api create

What Happens Next?

The CLI will interactively ask you:

  1. Project name - e.g., my-api
  2. Description - Brief project description
  3. Version - Project version (default: 1.0.0)
  4. Target directory - Where to create the project
  5. Node.js version - For Docker (default: 22)
  6. Docker? - Include Docker configuration (Yes/No)
  7. Framework - Express or Fastify
  8. ORM - TypeORM or Prisma
  9. Database - PostgreSQL

Example

$ create-backend-api create

ℹ Welcome to create-backend-api!
ℹ Let's create your new backend project.

✔ Project name: my-api
✔ Project description: A REST API for my application
✔ Project version: 1.0.0
✔ Target directory: ./my-api
✔ Node.js version (optional): 22
✔ Include Docker configuration? Yes
✔ Select a framework: Express
✔ Select an ORM: TypeORM
✔ Select a database: PostgreSQL

✓ Project generated successfully!
✓ Project created at: /path/to/my-api

ℹ Next steps:
  cd my-api
  npm install
  npm run dev

Generated Project Structure

Projects get a minimal scaffold — bootstrap, DB infra, and optional Docker:

my-api/
├── src/
│   ├── index.ts             # App bootstrap + GET /health
│   └── infrastructure/
│       └── config/
│           ├── database.ts  # TypeORM DataSource or PrismaClient
│           └── data-source.ts  # TypeORM CLI (TypeORM stacks)
│
├── prisma/schema.prisma     # Prisma stacks only (no sample models)
├── docker-compose.yml       # Optional
├── Dockerfile               # Optional
├── .env.example
├── package.json
├── tsconfig.json
└── README.md

What's Included

Every generated project comes with:

  • TypeScript - Full type safety
  • ESLint + Prettier - Code quality and formatting
  • Health Check - GET /health
  • Database Setup - Pre-configured TypeORM or Prisma connection
  • Docker Support - Optional Docker configuration
  • No unused boilerplate - Add your own architecture as you grow

Documentation

Development

Prerequisites

  • Node.js >= 22.12.0
  • npm or yarn

Setup

git clone https://github.com/HSThzz/BackEnd-Factory.git
cd BackEnd-Factory

npm install
npm run build

Scripts

  • npm run build - Compile TypeScript to JavaScript
  • npm run dev - Watch mode for development
  • npm run dev:cli - Run CLI in development mode
  • npm run lint - Run ESLint
  • npm run format - Format code with Prettier
  • npm run format:check - Check code formatting
  • npm run test - Run tests

Contributing

Contributions are welcome! Please read our Contributing Guide for details.

License

MIT License - see LICENSE file for details.

Acknowledgments