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

build-app-with

v2.0.12

Published

πŸš€ Interactive CLI tool to quickly create modern web applications. Use with 'npx build-app-with my-app' or install globally. Choose from React (Next.js/Vite), Node.js backends (Express/Fastify), with built-in TypeScript, authentication, databases, and mor

Readme

Build App With

Interactive CLI for scaffolding production-ready web applications

npm version license node

Choose a framework, pick your features, and get a fully configured project in seconds β€” no manual setup required.

Quick Start

# Run directly (no install needed)
npx build-app-with

# Or provide a project name upfront
npx build-app-with my-app

Prerequisites: Node.js 18+ and npm 8+

npx build-app-with --help       # Show usage info
npx build-app-with --version    # Show version

Supported Frameworks

| Framework | Type | Description | |-----------|------|-------------| | Next.js | Full-stack | SSR, API routes, App Router. TypeScript enforced. | | Vite + React | Frontend | Lightning-fast HMR with optional TypeScript. | | Rsbuild + React | Frontend | Rust-powered bundler (Rspack). TypeScript enforced. | | Express.js | Backend | Traditional Node.js web server with extensive middleware ecosystem. | | Fastify | Backend | High-performance Node.js API framework with plugin architecture. |

Preset System

When you choose Vite + React or Rsbuild + React, you pick a preset that determines default features:

| Preset | What's Included | |--------|----------------| | Starter | React + CSS only. Minimal starting point. | | Standard (default) | React Router DOM, Zustand, React Hook Form, React Icons, React Toastify | | Full | Everything in Standard + Framer Motion, React Table, React Helmet, react-i18next | | Custom | Choose every feature manually |

Standard and Full presets let you add more features on top of the defaults. Next.js and backend frameworks use a Default / Customize toggle instead.

Features Reference

CSS Frameworks (Frontend)

Tailwind CSS, Bootstrap, Material-UI (MUI), Chakra UI, shadcn/ui, Mantine, Styled Components, or Vanilla CSS.

Available for Vite, Rsbuild (all non-Starter presets), and Next.js (Customize mode).

Authentication

Frontend (Next.js, Vite, Rsbuild): Clerk, NextAuth.js (Next.js only), Auth0, Firebase Auth

Backend (Express, Fastify): JWT, Session-based, OAuth (Passport.js)

Project Structure

React frontends (Vite, Rsbuild):

| Structure | Description | |-----------|-------------| | Simple | Flat src/ with basic components β€” good for prototypes | | Feature-based | Organized by feature (features/auth/, features/dashboard/) with shared hooks, services, and utils | | Domain-driven | Enterprise pattern with domains/, shared/, app/, and infrastructure/ layers |

Express: Simple, Modular (by feature), or Layered (Controller-Service-Repository)

Fastify: Simple, Modular (by feature), or Plugin-based (Fastify plugins)

React Feature Categories

These 7 categories are available for Vite + React and Rsbuild + React projects (Custom preset, or as additions to Standard/Full):

| Category | Options | |----------|---------| | Routing | React Router DOM | | State Management | Redux Toolkit, Zustand, MobX, Recoil | | Forms | React Hook Form, Formik | | Animations | Framer Motion, React Spring, React Transition Group | | Drag & Drop | React DnD, React Beautiful DnD | | UI Libraries | Ant Design, Bootstrap, MUI, Chakra UI, shadcn/ui, Mantine | | Utilities | React Icons, React Toastify, React Table, React Select, React Helmet, react-i18next, Storybook |

Backend Features (Express / Fastify)

| Category | Options | |----------|---------| | Databases | MongoDB, PostgreSQL, MySQL, SQLite | | ORMs | Mongoose (MongoDB), Prisma (PostgreSQL/SQLite), Sequelize (MySQL) | | Security | CORS, Helmet (Express), Rate limiting (Fastify) | | Logging | Morgan (request logging), Winston (structured logging) | | Validation | Express Validator / Fastify validation | | API Docs | Swagger / OpenAPI | | Environment | dotenv (.env support) | | Testing | Jest test setup with example tests | | Docker | Dockerfile and docker-compose configuration |

Fastify also supports WebSocket and GraphQL as additional feature choices.

Interactive Flow

Running npx build-app-with walks you through these steps:

? Choose your app framework:
  > Next.js (React Full-stack)
    Vite + React (Frontend)
    Rsbuild + React (Frontend)
    Express.js (Node.js Backend)
    Fastify (Node.js Backend)

? Choose your project setup:          # React frontends only
  > Starter / Standard / Full / Custom

? What is your project name?          # Skipped if provided via CLI
  > my-app

? Use TypeScript?                     # Vite Custom preset only
  > Yes / No

? Choose a CSS framework:             # Frontend frameworks
  > Tailwind CSS / Bootstrap / MUI / ...

? Choose authentication strategy:     # Customize mode
  > Clerk / NextAuth.js / Auth0 / ...

? Select Routing features:            # React feature categories
? Select State Management features:
? Select Forms features:
  ...

? After setup, do you want to:
  [ ] Initialize a Git repository
  [ ] Install dependencies
  [ ] Run the development server

After Project Creation

cd my-app
npm install       # If not done during setup
npm run dev       # Start development server

Default ports:

| Framework | Port | URL | |-----------|------|-----| | Next.js | 3000 | http://localhost:3000 | | Vite + React | 5173 | http://localhost:5173 | | Rsbuild + React | 3000 | http://localhost:3000 | | Express.js | 3000 | http://localhost:3000 | | Fastify | 3000 | http://localhost:3000 |

Project Structure Example

A typical Vite + React project with the feature-based structure:

my-app/
β”œβ”€β”€ public/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ main.tsx
β”‚   β”œβ”€β”€ App.tsx
β”‚   β”œβ”€β”€ index.css
β”‚   β”œβ”€β”€ components/
β”‚   β”‚   └── common/
β”‚   β”‚       └── Header.tsx
β”‚   β”œβ”€β”€ features/
β”‚   β”‚   β”œβ”€β”€ auth/
β”‚   β”‚   β”‚   └── Login.tsx
β”‚   β”‚   └── dashboard/
β”‚   β”‚       └── Dashboard.tsx
β”‚   β”œβ”€β”€ hooks/
β”‚   β”‚   └── useLocalStorage.ts
β”‚   β”œβ”€β”€ services/
β”‚   β”‚   └── api.ts
β”‚   β”œβ”€β”€ utils/
β”‚   β”‚   └── helpers.ts
β”‚   └── types/
β”‚       └── index.ts
β”œβ”€β”€ .env
β”œβ”€β”€ .gitignore
β”œβ”€β”€ package.json
β”œβ”€β”€ vite.config.ts
└── tsconfig.json

Why Build App With?

  • Fast β€” Go from zero to a running project in seconds
  • Production-ready β€” Security best practices, proper project structure, and sensible defaults built in
  • Flexible β€” 5 frameworks, 4 presets, 30+ configurable features β€” pick exactly what you need
  • Secure β€” Path traversal prevention, command injection guards, and secret generation for backend projects
  • Current β€” Uses latest stable versions of all dependencies

Contributing

Contributions are welcome! See CONTRIBUTING.md for guidelines.

License

MIT β€” see LICENSE for details.

Support