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

aprs-cli

v1.0.2

Published

CLI tool to create React apps with Next.js or React Router, integrated with Convex and Clerk

Readme

APRS - App React Starter

CLI tool to create React apps with Next.js or React Router, integrated with Convex and Clerk.

Features

  • 🚀 Quick project setup with interactive CLI
  • ⚛️ Choose between Next.js or React Router
  • 🔐 Pre-configured Clerk authentication
  • 📦 Integrated Convex backend
  • 🎨 Tailwind CSS with shadcn/ui components
  • 📝 TypeScript support
  • 🔄 Git initialization
  • 📦 Automatic dependency installation

Installation

Using npm

npx aprs my-app

Using bun

bunx aprs my-app

Usage

  1. Run the CLI command with your project name:

    npx aprs my-app
  2. Follow the interactive prompts:

    • Choose your framework (Next.js or React Router)
    • Confirm Git initialization (optional)
  3. Navigate to your new project:

    cd my-app
  4. Set up your environment variables:

    cp .env.example .env.local  # for Next.js
    # or
    cp .env.example .env  # for React Router
  5. Install dependencies (if not done automatically):

    npm install
    # or
    bun install
  6. Start the development server:

    npm run dev
    # or
    bun run dev

Setup Required Services

Convex

  1. Go to Convex Dashboard
  2. Create a new project
  3. Copy your deployment URL and deployment ID
  4. Add them to your environment variables

Clerk

  1. Go to Clerk Dashboard
  2. Create a new application
  3. Configure your JWT template for Convex:
    • Go to JWT Templates
    • Create or edit the "convex" template
    • Copy the Issuer URL
  4. Add Clerk keys to your environment variables

Project Structure

Next.js

my-app/
├── app/                    # Next.js app directory
│   ├── globals.css         # Global styles
│   ├── layout.tsx          # Root layout
│   └── page.tsx           # Home page
├── components/             # React components
│   └── ui/               # shadcn/ui components
├── convex/                # Convex backend
│   └── auth.config.ts     # Convex auth configuration
├── lib/                   # Utility functions
└── public/                # Static assets

React Router

my-app/
├── app/                    # React Router app directory
│   ├── app.css            # Global styles
│   ├── root.tsx           # Root layout
│   ├── routes.ts          # Route configuration
│   └── routes/            # Route components
├── components/             # React components
│   └── ui/               # shadcn/ui components
├── convex/                # Convex backend
│   └── auth.config.ts     # Convex auth configuration
└── public/                # Static assets

Environment Variables

Next.js (.env.local)

# Convex
CONVEX_DEPLOYMENT=your_deployment_id
CONVEX_URL=your_convex_url

# Clerk
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=your_clerk_key
CLERK_SECRET_KEY=your_clerk_secret
NEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in
NEXT_PUBLIC_CLERK_SIGN_UP_URL=/sign-up
NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL=/protected
NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL=/protected

# Clerk JWT for Convex
CLERK_JWT_ISSUER_DOMAIN=your_jwt_issuer_domain

React Router (.env)

# Convex
CONVEX_DEPLOYMENT=your_deployment_id
CONVEX_URL=your_convex_url

# Clerk
VITE_CLERK_PUBLISHABLE_KEY=your_clerk_key
CLERK_SECRET_KEY=your_clerk_secret
VITE_CLERK_SIGN_IN_URL=/sign-in
VITE_CLERK_SIGN_UP_URL=/sign-up
VITE_CLERK_AFTER_SIGN_IN_URL=/protected
VITE_CLERK_AFTER_SIGN_UP_URL=/protected

# Clerk JWT for Convex
CLERK_JWT_ISSUER_DOMAIN=your_jwt_issuer_domain

Available Scripts

Next.js

  • npm run dev - Start development server
  • npm run build - Build for production
  • npm run start - Start production server
  • npm run lint - Run Biome linter
  • npm run format - Format code with Biome

React Router

  • npm run dev - Start development server
  • npm run build - Build for production
  • npm run start - Start production server
  • npm run typecheck - Run TypeScript type checking

Learn More

License

MIT