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-opswat-react-app

v1.0.31

Published

Scaffold a React app with Vite, TypeScript, Tailwind CSS, React Router and SWR

Downloads

23

Readme

create-opswat-react-app

CLI tool to scaffold React apps with Vite, TypeScript, Tailwind CSS, and SWR.

Usage

# Basic usage
npm create opswat-react-app@latest my-app

# With OPSWAT UI design system
npm create opswat-react-app@latest my-app --includeUI -t npm_xxxxx

# Or use interactive prompts
npm create opswat-react-app@latest my-app
# You'll be prompted:
# ? Install @opswat/ui design system? (y/N)
# ? NPM Token for @opswat/ui (required): ***

What's Included

  • ⚡️ Vite - Fast build tool with HMR
  • ⚛️ React 18 + TypeScript
  • 🎨 Tailwind CSS - Pre-configured with custom animations
  • 🔄 SWR - Data fetching and caching library
  • 🔧 ESLint - Configured for React
  • 📝 Example components - Working demo with state and data fetching

CLI Options

| Option | Alias | Description | Required | | -------------------- | ----- | -------------------------------- | ------------------ | | --includeUI | -u | Include @opswat/ui design system | No | | --npmToken <token> | -t | NPM token for @opswat/ui | Yes (if includeUI) |

Development

Project Structure

create-opswat-react-app/
├── src/
│   └── index.ts           # CLI tool source
├── template/              # React app template (gets copied to user projects)
│   ├── src/
│   │   ├── App.tsx
│   │   ├── main.tsx
│   │   └── index.css
│   ├── public/
│   ├── gitignore          # Renamed to .gitignore when copied
│   └── ...config files
├── dist/                  # Built CLI (generated)
├── package.json           # CLI package metadata
└── tsconfig.json

Making Changes

# 1. Edit template files or CLI source
vim template/src/App.tsx
# or
vim src/index.ts

# 2. Build
npm run build

# 3. Test locally (before publishing)
cd /tmp
node /Users/nicolae.savilencu/Desktop/blueline-blueprint/dist/index.js test-app

# 4. If all looks good, bump version and publish
npm version patch   # 1.0.7 -> 1.0.8
npm publish

# 5. Optionally commit to git
git add .
git commit -m "Update template"
git push
git push --tags

Testing Locally

Test without publishing to npm:

# Build
npm run build

# Run directly
cd /tmp
node /path/to/blueline-blueprint/dist/index.js my-test-app
cd my-test-app
npm install
npm run dev

Publishing Updates

When you make changes to the template:

  1. Edit files in template/ folder
  2. Build: npm run build
  3. Bump version: Update version in package.json
  4. Publish: npm publish
  5. Users get updates with: npm create opswat-react-app@latest

Note: npm publishes from your local files, not from git. You can publish without committing, but it's recommended to commit first for version tracking.

For Teams Using This Tool

After creating a project:

cd my-app
npm install              # Installs all dependencies
npm run dev              # Start dev server at http://localhost:5173
npm run build            # Build for production
npm run lint             # Run ESLint
npm run preview          # Preview production build

With @opswat/ui

If you included the design system:

  1. The .npmrc file contains your NPM token (automatically added to .gitignore)
  2. npm install will fetch @opswat/ui using the token
  3. If install fails, verify your token is valid
  4. The token is only used during npm install, not during scaffolding

Security

  • ✅ NPM tokens are stored in .npmrc (automatically added to .gitignore)
  • ✅ Tokens are entered as password fields (hidden input)
  • ✅ Tokens are validated during npm install, not during project creation
  • ⚠️ Never commit .npmrc to git

Requirements

  • Node.js 20.19+ or 22.12+ (required by Vite)
  • npm, yarn, or pnpm

Current Version

Latest published version: 1.0.7

Check current version:

npm view create-opswat-react-app version

Troubleshooting

"Package not found" error

# Clear npm cache
rm -rf ~/.npm/_npx
npm create opswat-react-app@latest my-app

Template linter errors in IDE

The template/ folder shows TypeScript/linter errors because it doesn't have node_modules installed. This is normal - the errors disappear in generated projects after npm install.

Testing specific version

# Force specific version (bypasses cache)
npm create [email protected] my-app

License

MIT