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

@tkorakas/create-react-template

v0.1.2

Published

A reusable React + TypeScript template focused on practical app scaffolding: auth flows (including OAuth callback support), forms, table primitives, routing, and API integration.

Readme

React Template

A reusable React + TypeScript template focused on practical app scaffolding: auth flows (including OAuth callback support), forms, table primitives, routing, and API integration.

Tech stack

  • Vite
  • React 19
  • TypeScript
  • Chakra UI
  • React Router
  • TanStack Query
  • React Hook Form + Zod
  • Ky
  • pnpm

Getting started

Create a new app from this template

Use the published CLI:

npx @tkorakas/create-react-template my-app

Then run your new project:

cd my-app
pnpm install
pnpm run dev

If your network or registry cache is stale, you can use a GitHub fallback:

npx github:tkorakas/react-template my-app

Prerequisites

  • Node.js 20.19+ or 22.12+
  • pnpm

Installation

This section is for developing this repository itself.

pnpm install
cp .env.dist .env
pnpm run dev

In another terminal, run your API mock with Mockoon (see next section).

Mock API (Mockoon)

This template uses Mockoon instead of a custom Node mock server.

Setup

  1. Open Mockoon.
  2. Import react-template-api.json.
  3. Start the environment on port 3001.

Vite is configured to proxy /api/* to http://localhost:3001, so frontend requests work without CORS changes.

Included endpoints

  • POST /api/auth/register
  • POST /api/auth/login
  • POST /api/auth/verify-mfa
  • GET /api/auth/me
  • POST /api/auth/logout
  • GET /api/auth/oauth/:provider/authorize
  • POST /api/auth/oauth/:provider/callback
  • GET /api/team-members
  • POST /api/team-members

OAuth notes

OAuth UI flow is kept in the template.

  • Login/Register pages include the OAuth button.
  • Callback route is /oauth/:provider/callback.
  • In Mockoon, the authorize endpoint returns a local callback URL with a mock code.

For real OAuth provider integration, replace mock endpoints with your backend implementation.

Project structure

src/
  common/
    ui/             # Shared UI primitives
      data/
      display/
      feedback/
      form/
      form-fields/
      layout/
  features/         # Feature pages and handlers
  ui/               # Reserved for project-specific UI surface (.gitkeep)

Scripts

  • pnpm run dev - start Vite dev server
  • pnpm run build - type-check and production build
  • pnpm run test:run - run tests once
  • pnpm run lint - run ESLint

Status highlights

  • Auth flow (email/password + MFA + OAuth callback route)
  • Registration and login forms with validation
  • Shared table with sorting/filtering hooks
  • Team members demo (list/create)
  • i18n setup