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

node-express-scaff-temps

v1.1.1

Published

Scaffold an Express + TypeScript API with JWT auth — choose Prisma or TypeORM

Readme

node-express-scaff-temps

Scaffold a JWT-auth starter in one command. Pick Express + Prisma, or the TypeORM stack — where you further choose an Express backend or a Next.js frontend (built to talk to that backend).

⚠️ This is a scaffolder — run it with npx, don't npm install it.

npx node-express-scaff-temps my-app

You'll be asked which stack to use:

Which stack?
  1) Express + Prisma
  2) Express + TypeORM
Choose [1]: 2

Scaffold what?
  1) Backend  (Express + TypeORM API)
  2) Frontend (Next.js app)
Choose [1]:

Skip the prompts with flags:

npx node-express-scaff-temps my-app --prisma
npx node-express-scaff-temps my-app --typeorm --backend
npx node-express-scaff-temps my-app --typeorm --frontend

Pass --install to run npm install as part of the scaffold.

What you get

Express + Prisma / Express + TypeORM (backend)

  • Express 4 + TypeScript, running through ts-node / nodemon
  • JWT register / login, hashed passwords (bcrypt), auth middleware
  • Centralised custom errors, error handler and 404 middleware
  • A generated .env with a freshly minted JWT_SECRET and a DATABASE_URL pointing at a database named after your project
  • Prisma stack: Prisma 7 + pg adapter, user CRUD, a Postman collection. TypeORM stack: TypeORM 0.3 + User entity, DB_SYNC for dev, migration scripts.

Next.js frontend

  • Next.js (App Router) + TypeScript + Tailwind + shadcn/ui
  • Zustand (auth store), React Query (data), React Hook Form + Zod (forms)
  • Register / login / home pages wired to the TypeORM backend's /api/auth
  • A generated .env with NEXT_PUBLIC_API_URL pointing at the API

After scaffolding

Express + Prisma

cd my-app
npm install
createdb my_app            # or point DATABASE_URL in .env somewhere else
npx prisma generate
npx prisma migrate dev --name init
npm run dev

Express + TypeORM (backend)

cd my-app
npm install
createdb my_app            # or point DATABASE_URL in .env somewhere else
npm run dev                # DB_SYNC=true auto-creates the tables

Next.js (frontend)

cd my-app
npm install
npm run dev                # http://localhost:3000

Point NEXT_PUBLIC_API_URL in .env at your running backend (defaults to http://localhost:3000/api).

Templates

| Choice | Folder | | ------------------------- | ---------------------------- | | Express + Prisma | templates/prisma/ | | Express + TypeORM backend | templates/typeORMexpress/ | | Next.js frontend | templates/nextjs/ |