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

backend-easy-setup

v1.0.1

Published

CLI scaffold for creating an Express TypeScript backend with one npx command.

Readme

backend-easy-setup

Create a ready-to-code Express + TypeScript backend with one npx command.

Use this package as a CLI scaffold instead of adding it as a project dependency.

backend-easy-setup saves developers from repeating the same backend setup every time they start a new project. It generates the folder structure, starter files, middleware, config, database setup, Docker files, TypeScript config, ESLint config, validators, and utilities so you can start building features faster.

Quick Start

Create a new backend:

npx backend-easy-setup my-api

Run the generated project:

cd my-api
npm install
npm run dev

Use your own project name:

npx backend-easy-setup ecommerce-api
npx backend-easy-setup admin-backend
npx backend-easy-setup school-management-api

Scaffold into the current empty folder:

npx backend-easy-setup .

You can also use:

npx backend-easy-setup create my-api

Why Developers Use It

  • Creates a complete backend structure in seconds.
  • Saves setup time on every new Express + TypeScript project.
  • Keeps projects organized from day one.
  • Includes common backend files most APIs need.
  • Gives you middleware, utilities, validators, database setup, and Docker setup without manual copy-paste.
  • Works directly with npx, so there is no global install step.

Generated Folder Structure

my-api/
├── src/
│   ├── @types/
│   │   ├── express.d.ts
│   │   └── payload.types.ts
│   ├── config/
│   │   └── index.ts
│   ├── constants/
│   ├── controller/
│   ├── db/
│   │   ├── schema/
│   │   │   ├── index.ts
│   │   │   └── users.ts
│   │   └── index.ts
│   ├── middleware/
│   │   ├── auth.ts
│   │   ├── errorHandler.ts
│   │   └── notFound.ts
│   ├── routes/
│   │   └── index.ts
│   ├── services/
│   │   └── responseHandler.ts
│   ├── utils/
│   │   ├── asyncHandler.ts
│   │   ├── customErrorHandler.ts
│   │   └── jwtServices.ts
│   ├── validators/
│   │   └── user.ts
│   ├── app.ts
│   ├── drizzle.config.ts
│   ├── index.ts
│   └── server.ts
├── .dockerignore
├── .env.example
├── .gitignore
├── docker-compose.yml
├── Dockerfile
├── Dockerfile.dev
├── eslint.config.mjs
├── package.json
└── tsconfig.json

What It Creates

Backend Core

  • Express app setup
  • TypeScript setup
  • Environment config with dotenv
  • Health check route
  • Central route file
  • Graceful server shutdown

Middleware

  • Auth middleware
  • Global error handler
  • Not found handler
  • CORS setup
  • JSON body parser

Database Setup

  • Drizzle ORM config
  • PostgreSQL connection starter
  • User schema example
  • Migration scripts

Utilities

  • JWT service
  • Async handler
  • Custom error handler
  • Response handler
  • Zod user validators

Dev Tooling

  • ESLint config
  • Nodemon + TSX dev server
  • Dockerfile
  • Dockerfile.dev
  • Docker Compose
  • .env.example
  • Build, start, migration, seed, and reset scripts

Generated Project Scripts

After creating a backend, these scripts are available inside your new project:

npm run dev
npm run build
npm start
npm run db:generate
npm run db:migrate
npm run db:seed
npm run db:reset:dev

CLI Commands

npx backend-easy-setup <project-name>
npx backend-easy-setup .
npx backend-easy-setup create <project-name>
npx backend-easy-setup --help
npx backend-easy-setup --version

Publishing This Package

For maintainers:

npm run pack:check
npm publish

License

ISC