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-react-extras

v1.0.0

Published

Create React apps with deployment, editor, pre-commit, and API client extras

Readme

create-react-extras

A CLI tool that creates supported React projects and adds deployment, editor, pre-commit, and API client setup.

Usage

Create a new project:

npm create react-extras

Or with your preferred package manager:

pnpm create react-extras
yarn create react-extras
bun create react-extras

You can also pass the project name up front:

npm create react-extras my-app

The CLI will:

  1. Ask whether to create a Next.js App Router or TanStack Router app
  2. Hand off to the official upstream scaffolder and preserve its interactive prompts
  3. Detect the generated project's package manager, framework, and linting tools
  4. Let you choose which extras to add
  5. Show which files will be created and prompt before overwriting existing files
  6. Generate the selected files, update package.json, and install required dependencies

Existing Projects

Navigate to an existing supported React project and run:

create-react-extras init

Available Extras

| Extra | Files / changes | | -------------------- | ------------------------------------------------------------------------------------------------------- | | Deployment + CI/CD | Dockerfile, .github/workflows/deploy.yml, and nginx.conf for TanStack Router projects | | Editor Setup | .vscode/extensions.json for all supported projects, plus .vscode/settings.json for Next.js projects | | Pre-commit Hook | .husky/pre-commit, prepare script, lint-staged config, and installs husky + lint-staged | | API Client | lib/api-client.ts and lib/config.ts or src/lib/* when a src/ directory exists |

The CLI also updates your package.json with:

  • check and typecheck scripts when Deployment + CI/CD is selected
  • prepare script and lint-staged config when Pre-commit Hook is selected

The generated check script depends on detected tooling:

  • Biome: biome check .
  • ESLint + Prettier: eslint . && prettier --check .

Requirements

  • Node.js >= 20.9
  • Bun >= 1 for local development of this CLI
  • An existing Next.js or TanStack Router project when using create-react-extras init

Supported Frameworks

Detection Rules

  • Package manager: detected from lock files in this order: Bun, pnpm, Yarn, npm
  • Framework: Next.js via next.config.* or the next dependency; TanStack Router via the @tanstack/react-router dependency
  • Tooling: Biome via biome.json, biome.jsonc, or @biomejs/biome; otherwise ESLint + Prettier via dependencies