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-vite-reactstack

v1.0.1

Published

Scaffold a Vite + React + TypeScript app with Tailwind, shadcn, React Compiler, and more

Readme

create-vite-reactstack

Interactive CLI to scaffold a Vite + React + TypeScript app with optional Tailwind CSS v4, shadcn/ui, React Compiler, icon libraries, React Router, TanStack Query, and your choice of linter.

Usage

npx create-vite-reactstack
# or
npm create vite-reactstack

You can pass a project name:

npx create-vite-reactstack my-app

Pass . to scaffold in place into the current directory. Nothing is ever deleted — scaffolded files are added, and only the files the scaffold itself owns are overwritten:

npx create-vite-reactstack .

You can also pass a relative path to scaffold into a nested directory (the last segment becomes the package name):

npx create-vite-reactstack apps/my-app

What it asks

Run without option flags and it walks you through:

  1. Project name
  2. TypeScript or JavaScript (JavaScript is gently overridden — TypeScript only)
  3. React Compiler (optional)
  4. Tailwind CSS
  5. Icon library (none / Lucide / Phosphor / Heroicons)
  6. shadcn/ui (requires Tailwind)
  7. React Router
  8. TanStack Query
  9. Linter (Biome / ESLint / Oxlint)
  10. Initialize git (includes an initial commit)
  11. Package manager (npm / pnpm / yarn / bun)

Then it scaffolds the project, optionally initializes git, installs dependencies, and prints next steps.

CLI flags

Every prompt can be answered with a flag — and passing any option flag makes the run non-interactive: explicit flags win and every option you didn't set falls back to its default, no questions asked. Run without option flags for the full interactive prompt, or pass --yes to accept all defaults.

| Flag | Description | | --- | --- | | -y, --yes | Use defaults for every option not set by a flag (skips all prompts) | | --compiler / --no-compiler | Enable / disable React Compiler | | --tailwind / --no-tailwind | Enable / disable Tailwind CSS v4 | | --shadcn / --no-shadcn | Enable / disable shadcn/ui (requires Tailwind) | | --router / --no-router | Add / skip React Router | | --query / --no-query | Add / skip TanStack Query | | --linter <name> | biome | eslint | oxlint | | --icons <name> | none | lucide | phosphor | heroicons | | --git / --no-git | Initialize / skip the git repository | | --pm <name> | npm | pnpm | yarn | bun (alias: --package-manager) | | --skip-install | Don't install dependencies | | -h, --help | Show help | | -v, --version | Show version |

Both --flag value and --flag=value work. Unknown flags are reported and ignored instead of being silently swallowed. Invalid values are rejected with an error.

Examples

npx create-vite-reactstack my-app --yes
npx create-vite-reactstack my-app --compiler --linter eslint --no-git
npx create-vite-reactstack my-app --yes --no-tailwind --skip-install
npx create-vite-reactstack . --yes --pm pnpm

Defaults used by --yes

| Option | Default | | --- | --- | | React Compiler | off | | Tailwind CSS | on | | Icon library | lucide | | shadcn/ui | on | | React Router | off | | TanStack Query | off | | Linter | biome | | Git | on | | Package manager | detected from how you invoked the CLI (npm_config_user_agent) |

Notes

  • Choosing ESLint pins TypeScript to ~6.0 in the generated project, because typescript-eslint does not support TypeScript 7 yet.
  • Choosing pnpm writes a pnpm-workspace.yaml with an allowBuilds list so native postinstall builds (esbuild, Biome) aren't blocked by pnpm 10+.

Local development

pnpm install
pnpm build
pnpm start          # runs the CLI
# or
node dist/index.js my-app

pnpm typecheck      # tsc --noEmit
pnpm smoke          # scaffold all matrix combos + assert the output
pnpm smoke:full     # also install, build and lint the e2e projects

License

MIT