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

v1.1.5

Published

Create a React application with Shazi's comprehensive boilerplate template

Readme

React Template Project

A comprehensive React boilerplate with modern development practices, customizable components, and automation tools. This template accelerates your development workflow with a well-structured project setup and ready-to-use components.

Features

  • Modern Stack: React 18, TypeScript, Vite, Tailwind CSS
  • Component Library: Pre-built UI components with multiple design variants
  • Utility Scripts: Automated tools for component, route, hook, and service creation
  • Testing Setup: Configured with Vitest and React Testing Library
  • State Management: Zustand for lightweight state management
  • Form Handling: React Hook Form with Zod validation
  • Routing: React Router with predefined layouts
  • Code Quality: ESLint, Prettier, Husky, and lint-staged

Project Structure

src/
├── components/          # Reusable UI components
│   ├── ui/             # Base components (Button, Input, Card, etc.)
│   ├── layout/         # Layout components (Header, Footer, Layout)
│   ├── common/         # Shared components (ErrorBoundary, LoadingSpinner)
│   └── demo/           # Component showcases (can be removed with clean-project script)
├── pages/              # Page components
├── hooks/              # Custom React hooks
├── utils/              # Utility functions
├── types/              # TypeScript definitions
├── constants/          # Application constants
├── services/           # API services
├── store/              # State management
└── styles/             # Global styles and Tailwind configuration

Getting Started

  1. use npx

    npx create-shazi-react-app@latest
  2. Install dependencies:

    npm install
  3. Start the development server:

    npm run dev
  4. Clean demo content (optional):

    npm run clean-project

Utility Scripts

Project Setup

  • Clean Project Script

    npm run clean-project

    Removes demo content and sets up a minimal project structure with only essential components.

  • Color Palette Modification

    npm run modify-color-palette

    Changes the project's color theme by updating Tailwind config with predefined palettes.

Component Generation

  • Component Creation

    npm run create-component

    Creates new components with proper structure and optional test files.

  • Route Creation

    npm run create-route <RouteName>

    Interactive: Generates new pages with predefined layouts from available options.

    npm run create-route <RouteName> <layout-name>

    Direct: Creates a route with the specified layout immediately.

    Available Layouts: | Name | Number | |-----------------|--------| | split-screen | 1 | | sidebar-content | 2 | | header-content | 3 | | dashboard | 4 | | holy-grail | 5 | | card-grid | 6 | | masonry | 7 | | form | 8 | | mobile-first | 9 |

  • Hook Creation

    npm run create-hook

    Creates custom React hooks with boilerplate code.

  • Service Creation

    npm run create-service

    Creates API service modules with proper structure.

  • Icon Generation

    npm run generate-icons

    Generates icon components from SVG files.

Development Commands

  • npm run dev - Start development server
  • npm run build - Build for production
  • npm run preview - Preview production build
  • npm run test - Run tests
  • npm run test:ui - Run tests with UI
  • npm run test:coverage - Run tests with coverage
  • npm run lint - Check code style
  • npm run lint:fix - Fix code style issues
  • npm run format - Format code with Prettier
  • npm run type-check - Check TypeScript types
  • npm run analyze - Analyze bundle size

Component Design Variants

This template provides components in multiple design variants:

  • Modern
  • Glassmorphic
  • Neumorphic
  • Skeuomorphic

You can choose the design that best fits your project requirements.

Best Practices for Using This Template

  • Use the utility scripts to create new components, routes, hooks, and services
  • Modify the Tailwind configuration in tailwind.config.js for theme customization
  • Leverage the pre-built components instead of creating from scratch
  • Use the clean-project script when starting a new project to remove demo content
  • Follow the established folder structure for consistency