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

@shufflies/create-react-app

v1.2.0

Published

Scaffold a Vite + React + TypeScript app with Vitest, oxlint and oxfmt

Downloads

621

Readme

@shufflies/create-react-app

Scaffolds a Vite + React + TypeScript application, with Vitest for tests and oxlint / oxfmt for linting and formatting.

This probably isn't a useful package for you. It's my own personal starting point.

Usage

With npm:

npm create @shufflies/react-app@latest my-app

With pnpm:

pnpm create @shufflies/react-app my-app

Both forms resolve to this package (@shufflies/create-react-app) and forward any extra arguments to it, but npm claims the options it recognises before the initializer sees them. Send the initializer's own options after --:

npm create @shufflies/react-app@latest my-app -- --playwright
pnpm create @shufflies/react-app my-app --playwright

Options

Usage: create-shufflies-react-app [options] [directory]

  -f, --force       Scaffold into a directory that already contains files
      --playwright  Add Playwright browser and component tests
  -h, --help        Show usage
  -v, --version     Print the initializer version

With no directory argument the initializer prompts for one, defaulting to shufflies-react-app. A directory that already contains files is refused unless --force is passed.

--playwright adds browser tests to the generated application: Playwright config with e2e and components projects, a sample spec for each, a story for the app itself and the gallery page that resolves stories. It is off by default, because running them needs a browser that npm does not install; the generated README says to run npm run browser:install first.

What you get

  • Vite + React + TypeScript, with react and react-dom as the only runtime dependencies.
  • Vitest wired into vite.config.ts.
  • oxlint via the react preset from @shufflies/oxlint-config, including type-aware rules.
  • oxfmt for formatting, including import sorting.
  • Separate TypeScript projects for the app, the build tooling and the specs, sharing one base configuration.
  • Optional Playwright browser tests (--playwright): end-to-end specs, component specs that mount stories from a gallery page, and reference screenshots.

Repository layout

| Path | Purpose | | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | | src/ | The initializer CLI: create-app.ts holds the logic, cli.ts is the entry point. | | test/ | Unit tests plus scaffold.integration.ts, which scaffolds a real app and runs its checks. | | template/ | The application that gets copied. Files that cannot be stored under their real names (_gitignore, _oxlint.config.ts) are renamed while scaffolding. | | features/ | Optional overlays: playwright/ is copied over the template by --playwright. | | dist/ | The compiled CLI, built by npm run build and published alongside the other two. |

Development

| Command | Purpose | | ----------------------- | --------------------------------------------------------- | | npm run build | Compile the CLI to dist/. | | npm run typecheck | Type-check the CLI, the tests and the scripts. | | npm test | Build, then run the unit tests (pretest builds first). | | npm run test:scaffold | Scaffold a throwaway app, install it and run its checks. | | npm run scaffold:demo | Simulate npm/pnpm create, keeping the app to inspect. | | npm run lint | Lint with oxlint. | | npm run format | Format with oxfmt; CI runs npm run format:check. |

Inspecting what create would produce

npm run scaffold:demo reproduces what the published package does when someone runs one of the create commands: it packs the package to a tarball, installs that tarball into a scratch project with npm or pnpm, and runs the installed create-shufflies-react-app binary. That covers the published files allowlist, the bin wiring and template resolution out of node_modules.

npm run scaffold:demo                           # scaffold only, as `npm create` does
npm run scaffold:demo -- --playwright           # scaffold with the browser tests
npm run scaffold:demo -- --install              # also install deps and run the checks
npm run scaffold:demo -- --playwright --install # check the browser test variant too
npm run scaffold:demo -- --pnpm --install       # do all of it with pnpm

--playwright is passed on to the initializer, so the app that lands in the run directory is the one --playwright produces. Its own tests need a browser, which --install does not download; install it in the generated app with npm run browser:install.

Everything lands in <temp>/shufflies-create-demo/<timestamp>/, and unlike npm run test:scaffold, nothing is deleted when the run finishes, so the app can be opened in an editor and run.

Releasing

Commits must follow Conventional Commits: commitlint runs from the Husky commit-msg hook. Pushes to main (or next, for prereleases) run semantic-release, which publishes to npm with provenance and creates a GitHub release. Dependency chores (chore(deps): ...) produce a patch release, because they change what newly scaffolded projects are generated with.

Publishing uses npm trusted publishing over GitHub OIDC, so the new repository is configured as a trusted publisher for @shufflies/create-react-app.

Contributing

See AGENTS.md for the conventions this repo uses.