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

better-ts-stack

v0.1.1

Published

A powerful CLI tool that generates fully configured TypeScript projects with backend, frontend, database integration, Docker support, and more--all through an interactive setup.

Readme

better-ts-stack

Generate production-ready TypeScript apps from an interactive CLI

better-ts-stack scaffolds backend and full-stack TypeScript projects with sensible defaults, batteries-included tooling, and optional database, auth, Docker, and git setup.

Quick Start

# Run instantly with npx
npx better-ts-stack

# Or install globally
npm install -g better-ts-stack
better-ts-stack

Run the command, answer the prompts, and the CLI generates a ready-to-work project for you.

What It Can Scaffold

| Project type | Stack | Optional setup | | --- | --- | --- | | Backend API | Express + TypeScript | PostgreSQL, MongoDB, Prisma, Drizzle, Mongoose, JWT auth, Docker, git | | Full-stack app | Next.js 16 + React 19 + TypeScript | PostgreSQL, MongoDB, Prisma, Better Auth, Docker, git |

Notes:

  • Express is the current backend implementation.
  • NestJS appears in the prompt flow as "Coming Soon".
  • Better Auth is only available for full-stack projects when a database is selected.

Interactive Prompt Flow

The CLI is fully interactive. There are no subcommands or flags.

You will be guided through:

  1. Project name
  2. Application type: Backend API or Full-stack App
  3. Backend framework for backend apps: Express (NestJS is coming soon)
  4. Database: none, PostgreSQL, or MongoDB
  5. ORM/ODM when a database is selected
    • PostgreSQL: Prisma or Drizzle
    • MongoDB: Prisma or Mongoose
  6. Package manager: npm, pnpm, or bun
  7. Docker setup
  8. Authentication
    • Express apps: JWT-based auth
    • Next.js apps: Better Auth when a database is enabled
  9. Git initialization
  10. Dependency installation

The CLI does not ask for a port. Backend projects default to PORT=3000.

What You Get

Every generated project includes the essentials:

  • TypeScript with strict mode enabled
  • ESLint and Prettier pre-configured
  • .env.example and .env setup
  • Ready-to-run project scripts
  • Health check endpoint at /health for backend projects
  • shadcn-compatible UI foundation for Next.js projects
  • Database wiring and schema setup when selected
  • Authentication scaffolding when selected
  • Docker files when selected
  • Optional git repository initialization

Requirements

  • Node.js 18 or later

Links

License

MIT