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 🙏

© 2025 – Pkg Stats / Ryan Hefner

create-react-typescript-kit

v1.0.9

Published

Create a React + TypeScript + Vite project in one command

Readme

🚀 Quick Start

Create a new React project in one command:

# npm
npm create react-typescript-kit@latest my-app

# npx
npx create-react-typescript-kit@latest my-app

# pnpm (recommended)
pnpm create react-typescript-kit@latest my-app

# yarn
yarn create react-typescript-kit my-app

Then navigate to your project and start developing:

cd my-app
pnpm install        # or npm install / yarn
pnpm run dev        # starts dev server at http://localhost:5173

✨ Features

This template provides a complete, production-ready setup with modern tooling:

Core Stack

  • ⚛️ React 19 - Latest React with Compiler enabled for automatic optimizations
  • 📘 TypeScript 5.9 - Full type safety across your entire application
  • ⚡ Vite 7 - Lightning-fast HMR and optimized builds
  • 🎨 Tailwind CSS 4 - Latest version with improved performance

Routing & Data Fetching

  • 🗺️ TanStack Router - Type-safe, file-based routing with built-in code splitting
  • 🔄 TanStack Query - Powerful data synchronization and caching
  • 🛠️ DevTools - Integrated devtools for Router and Query debugging

UI Components

  • 🎭 shadcn/ui Ready - Pre-configured with components.json for easy component installation
  • 🎯 Class Variance Authority - Type-safe component variant management
  • 🔧 Tailwind Merge & clsx - Intelligent class merging utilities
  • 🎨 Lucide React - Beautiful, consistent icon library

Code Quality

  • ✅ ESLint - Comprehensive linting with React 19, TypeScript, and TanStack plugin rules
  • 💅 Prettier - Consistent code formatting
  • 🐶 Husky + lint-staged - Pre-commit hooks for code quality
  • 🧪 Vitest - Fast unit testing with browser mode support

Developer Experience

  • 🔥 React Compiler - Automatic memoization and optimization
  • 📦 pnpm - Fast, disk-efficient package management
  • 🎯 Path Aliases - Clean imports with @/ prefix
  • 📁 Organized Structure - Logical project structure from day one

📦 What's Included

my-app/
├── public/              # Static assets
├── src/
│   ├── components/      # React components
│   │   └── ui/         # shadcn/ui components
│   ├── hooks/          # Custom React hooks
│   ├── lib/            # Utilities and helpers
│   ├── routes/         # TanStack Router routes
│   ├── App.tsx         # Root component
│   ├── main.tsx        # App entry point
│   └── index.css       # Global styles
├── .husky/             # Git hooks
├── components.json     # shadcn/ui configuration
├── eslint.config.js    # ESLint configuration
├── tsconfig.json       # TypeScript configuration
├── vite.config.ts      # Vite configuration
└── package.json

🛠️ Available Scripts

# Development
pnpm run dev           # Start dev server

# Building
pnpm run build         # Build for production

# Code Quality
pnpm run lint          # Run ESLint
pnpm run preview       # Preview production build

# Testing
pnpm run test:browser  # Run Vitest browser tests

🎯 Usage Examples

Adding shadcn/ui Components

The template is pre-configured for shadcn/ui:

npx shadcn@latest add button
npx shadcn@latest add card

Creating Routes

TanStack Router uses file-based routing. Create a new route:

// src/routes/about.tsx
export function Route() {
  return <div>About Page</div>
}

Data Fetching with TanStack Query

import { useQuery } from '@tanstack/react-query'

function UserProfile({ userId }: { userId: string }) {
  const { data, isLoading } = useQuery({
    queryKey: ['user', userId],
    queryFn: () => fetch(`/api/users/${userId}`).then(r => r.json())
  })

  if (isLoading) return <div>Loading...</div>
  return <div>{data.name}</div>
}

🔧 Customization

Modify Tailwind Config

Tailwind CSS 4 uses CSS-based configuration in src/index.css:

@theme {
  --color-primary: oklch(0.5 0.2 240);
}

Configure TypeScript

Update tsconfig.json for your needs. Path aliases are configured:

{
  "compilerOptions": {
    "paths": {
      "@/*": ["./src/*"]
    }
  }
}

📚 Learn More

🤝 Contributing

Found a bug or have a feature request? Please open an issue on GitHub.

📄 License

MIT License - feel free to use this template for any project!