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

next-app-builder

v1.0.5

Published

This project was generated using **next-app-builder**, an opinionated full-stack starter using modern tooling.

Downloads

24

Readme

Full Stack Starter — Next.js + Convex + Clerk

This project was generated using next-app-builder, an opinionated full-stack starter using modern tooling.

Stack

  • Next.js (App Router)
  • Convex (Backend & Database)
  • Clerk (Authentication)
  • Tailwind CSS
  • TypeScript

This starter is designed for building modern SaaS and production web apps quickly.


Requirements

Make sure you have:

  • Node.js 18+
  • npm or pnpm or yarn or bun
  • Git (recommended)

create your project with next-app-builder

npx next-app-builder <project-name>
# or
yarn next-app-builder <project-name>
# or
pnpm next-app-builder <project-name>
# or
bunx next-app-builder <project-name>

After project creation:

cd your-project
npm run dev

or

bun dev
pnpm dev

Open:

http://localhost:3000

Environment Variables

The CLI generated a .env.local file.

You must update values before authentication works.

CONVEX_DEPLOYMENT=
NEXT_PUBLIC_CONVEX_URL=
NEXT_PUBLIC_CONVEX_SITE_URL=

NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=
CLERK_SECRET_KEY=
CLERK_FRONTEND_API_URL=

Convex values are automatically populated when running:

npx convex dev

now you will get this error in the terminal:

Environment variable CLERK_FRONTEND_API_URL is used in auth config file but its value was not set.

follow the next steps to set up Clerk authentication and resolve this error.


Clerk Authentication Setup

1. Create Clerk App

Go to:

https://dashboard.clerk.com

Create a new application.


2. Get API Keys

These values are documented in Clerk's official setup guide. Copy:

NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY
CLERK_SECRET_KEY

and paste them into .env.local.


3. Frontend API URL

In Clerk Dashboard:

API Keys → Frontend API

Copy:

https://your-app.clerk.accounts.dev

Set:

CLERK_FRONTEND_API_URL=

in .env.local.


Convex + Clerk JWT Setup

Convex requires Clerk JWT authentication.

Step 1 — Create JWT Template

In Clerk Dashboard:

JWT Templates → New template

Select Template name: convex

Save template.


Step 2 — Configure Convex issuer

Run:

npx convex env set CLERK_FRONTEND_API_URL https://your-app.clerk.accounts.dev

Use the same value as your Clerk Frontend API URL.


Step 3 — Restart Dev Server

npm run dev

Authentication is now connected.


Project Structure Overview

app/          → Next.js routes
components/   → UI components
convex/       → backend functions & schema
lib/          → utilities
public/       → static assets

Common Commands

Start dev server:

npm run dev

Build for production:

npm run build

Start production server:

npm run start

Run Convex locally:

npx convex dev

Deployment

Typical deployment stack:

  • Frontend → Vercel
  • Backend → Convex cloud
  • Auth → Clerk

Deployment guides:


Troubleshooting

Authentication not working

Check:

  • Clerk keys set correctly
  • JWT template configured
  • Convex issuer configured
  • Dev server restarted

Convex not connecting

Run:

npx convex dev

again.