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-swc-ts-extended

v1.0.1

Published

CLI to create a React boilerplate with Vite + SWC, React 19, TypeScript, Vitest, Testing Library, TailwindCSS 4, Eslint and Prettier, Husky and lint-staged

Readme

create-react-swc-ts-extended

A CLI tool to bootstrap a React project with TypeScript, SWC, Vite, Vitest, Testing Library, TailwindCSS, ESLint, Prettier, Husky, and lint-staged.

Usage

# with pnpm
pnpm dlx create-react-swc-ts-extended@latest

# with npm
npx create-react-swc-ts-extended@latest

# with yarn
yarn dlx create-react-swc-ts-extended@latest

Command Line Options

Arguments:
  [project-name]             Project name/folder to create

Options:
  --npm                      Use npm as package manager
  --pnpm                     Use pnpm as package manager
  --yarn                     Use yarn as package manager
  --pm <name>                Specify package manager (npm, pnpm, yarn)
  --git, -g                  Initialize git repository
  --no-git                   Skip git initialization
  --force, -f                Overwrite target directory if it exists

Features

  • React 19+ with TypeScript
  • SWC for fast compilation
  • Vite for dev server and bundling
  • Vitest for unit testing
  • Testing Library for React component tests
  • TailwindCSS 3 for styling
  • ESLint and Prettier for code quality
  • Husky and lint-staged for git hooks

Development

Local Testing

To test the CLI locally:

  1. Build the package:

    pnpm build
  2. Link it globally:

    pnpm link --global
  3. Run the CLI from anywhere:

    create-react-swc-ts-extended my-app --pnpm --git
  4. Verify the generated project:

    cd my-app
    pnpm install
    pnpm dev

Testing Workflow

For comprehensive testing, you can use the provided test scripts:

# Quick CLI test (creates a project and verifies it)
chmod +x test-cli.sh
./test-cli.sh

# Package installation test (tests npm, pnpm, and yarn)
chmod +x test-package.sh
./test-package.sh

# Thorough validation with error detection
chmod +x test-verification.sh
./test-verification.sh

The verification ensures that:

  • TypeScript type checking works correctly
  • ESLint catches linting issues
  • Tests run successfully
  • The project builds without errors

See TESTING.md for a complete testing checklist.

License

MIT