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

byuweb

v0.2.10

Published

Scaffold BYU-themed Next.js apps

Readme

BYU Web CLI

A lightweight command-line tool to scaffold BYU-themed Next.js applications with or without authentication.


🚀 Quick Start

You do not need to install this globally.

Just run:

npx byuweb@latest

Or specify your app name directly:

npx byuweb@latest my-app

🔧 CLI Options

You can skip prompts using flags: • --with-auth – Use the “Next.js with Auth” template • --without-auth – Use the “Next.js without Auth” template

Example usage:

npx byuweb@latest my-auth-app --with-auth
npx byuweb@latest my-basic-app --without-auth

🧰 What This CLI Does • Prompts you for: • App name (or accepts it via arguments) • Template type (or uses flags) • BYU Client ID (if using Auth) • Creates a new Next.js app using one of two templates: • ✅ with-auth: BYU-themed site with NextAuth.js + BYU PKCE auth • 🚫 without-auth: Base BYU-themed Next.js template • Generates environment config files: • Optionally adds a secure AUTH_SECRET using Node’s crypto module • Installs all dependencies • Gets you up and running with npm run dev

🔐 Setting Up BYU Auth (for with-auth template)

If you choose the with-auth template (or pass --with-auth), the CLI will prompt you for your BYU OAuth Client ID.

Here’s how to get it:

  1. Visit https://tcm.byu.edu
  2. Log in with your BYU NetID
  3. Create a new client:
    • Use “Auth Code + PKCE”
    • Set the redirect URL to:
      http://localhost:3000/api/auth/callback/byu-pkce
  4. Copy the Client ID and paste it into the CLI when prompted
  5. When asked if you’d like to generate an AUTH_SECRET, you can:
    • Choose Yes to let the CLI generate one for you using Node’s crypto module
    • Choose No and manually add one later to your .env file

🛠 Requirements • Node.js v18 or higher • npm (or compatible Node package manager)

Changing for production

Once you are ready to deploy the app to production you just need to make a few changes. First you need to change the AUTH_URL in .env to match your production site url.

Next you need to update tcm.byu.edu OAuth Client to include the hostnameurl in the redirect URLs (you can just add new and keep the localhost one) to be https://webname.byu.edu/api/auth/callback/byu-pkce