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-codewithpablo

v1.0.5

Published

A minimal React + TypeScript boilerplate with best practices.

Readme

CodeWithPablo Starter Kit 🚀

npm version

A minimal and professional React + TypeScript + Vite starter kit, pre-configured with:

  • ESLint and Prettier for linting and formatting.
  • Vitest and Testing Library for unit testing.
  • Husky and Commitlint to enforce clean commit messages.
  • Useful scripts to maintain code quality.

📖 Full Documentation: CodeWithPablo Docs

📦 Installation

🚀 Option 1: Using NPM (Recommended)

npm create codewithpablo my-new-project

🔹 Option 2: Using NPX

npx create-codewithpablo my-new-project

🔹 Option 3: Cloning the Repository (For Full Customization)

git clone https://github.com/your-username/codewithpablo-boilerplate.git
cd codewithpablo-boilerplate
npm install

After installing dependencies, run the following command to ensure Husky hooks have execution permissions:

🔧 Post-Installation

This boilerplate includes a postinstall script that ensures Husky hooks have execution permissions automatically.

npm postinstall

However, if you encounter issues, you can run the following command manually:

chmod +x .husky/*

🚀 Usage

🔥 Development Mode

npm run dev

Open http://localhost:5173 in your browser.

🔧 Linting & Formatting

npm run lint       # Check ESLint errors
npm run format     # Apply Prettier formatting
npm run check      # Run linting, formatting, and type-check in one command

✅ Testing

npm run test        # Run tests once
npm run test:watch  # Run tests in watch mode
npm run test:coverage # Generate test coverage report

🔄 Commit Convention

This project follows the Conventional Commits standard. Commit messages should use the following format:

<type>(<optional scope>): <short message>

Common commit types: feat: New feature.

fix: Bug fix.

chore: Maintenance or minor changes.

docs: Documentation updates.

test: Adding or modifying tests.

ci: Changes to CI/CD configuration.

Examples:

git commit -m "feat(auth): add login functionality"
git commit -m "fix(button): correct padding issue"
git commit -m "chore(lint): configure ESLint and Prettier"

🛠 Husky & Git Hooks

This boilerplate uses Husky to automate checks before commits and pushes.

pre-commit: Runs linting and type-check before committing.

commit-msg: Enforces Conventional Commits format.

pre-push: Runs tests before pushing.

If any check fails, the commit or push will be blocked.


📂 Project Structure

This boilerplate follows a well-organized folder structure for scalability and maintainability:

codewithpablo-boilerplate/
│── src/
│   ├── assets/          # Static assets (images, fonts, icons, etc.)
│   ├── components/      # Reusable UI components
│   ├── hooks/           # Custom React hooks
│   ├── layouts/         # Page layouts (e.g., header, sidebar)
│   ├── pages/           # Page-level components (e.g., Home, About)
│   ├── services/        # API calls and external services
│   ├── store/           # Global state management (if needed)
│   ├── utils/           # Utility functions/helpers
│   ├── styles/          # Global styles
│   ├── App.tsx          # Root component
│   ├── main.tsx         # Entry point
│   ├── router.tsx       # React Router configuration (if used)
│   ├── setupTests.ts    # Vitest setup file
│── __tests__/           # Unit tests
│── public/              # Static files (index.html, favicon, etc.)
│── .husky/              # Husky hooks
│── .eslint.config.js        # ESLint config
│── .prettierrc.json          # Prettier config
│── tsconfig.json        # TypeScript config
│── vite.config.ts       # Vite config
│── README.md            # Documentation
│── package.json         # Dependencies and scripts
│── node_modules/        # Dependencies (ignored in Git)
│── ...                  #

🔗 Aliases for Importing

This boilerplate supports path aliases for cleaner imports. Instead of writing:

import Home from '../../../pages/Home'

You can use the alias @ to import from src/:

import Home from '@/pages/Home'

Aliases are defined in both:

  • vite.config.ts → for Vite and the app runtime.
  • vite.config.ts (test section) → for Vitest compatibility.
  • tsconfig.json → for TypeScript support.

🤝 Contributing

Contributions are welcome! Please read the Contributing Guide before submitting a pull request.