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

@launch77-shared/plugin-auth

v0.0.1

Published

Authentication plugin with user registration, login, and session management

Readme

Launch77 Auth Plugin

Complete authentication solution for Launch77 applications with mock API support for development.

Installation

launch77 plugin:install auth

Features

  • 🔐 User Authentication - Registration, login, and logout functionality
  • 🎭 Mock API Mode - Built-in mock API for rapid development
  • 🔑 Token Management - JWT-like tokens with automatic refresh
  • 🛡️ Protected Routes - Easy route protection with auth hooks
  • 📝 Form Components - Pre-built login and register forms
  • 💾 Session Persistence - Remember me functionality
  • Validation - Comprehensive form and password validation
  • 🎨 UI Ready - Styled with @launch77/ui components

What Gets Installed

After installation, the plugin will:

  1. Copy auth module to src/modules/auth/ with components, hooks, and services
  2. Wrap your app with AuthProvider in app/layout.tsx
  3. Create auth pages: /login, /register, /dashboard, /forgot-password
  4. Add environment config to .env.local for mock mode
  5. Create showcase page at /plugins/auth with examples

Quick Start

1. Install and build

launch77 plugin:install auth
npm run dev

2. Seed demo users (optional)

Visit /plugins/auth and click "Seed Demo Users"

3. Test authentication

  • Visit /register to create an account
  • Visit /login to sign in
  • Visit /dashboard to see protected content

Important: Hook Usage

  • Use useAuth() to read auth state without redirects (e.g., conditional rendering)
  • Use useRequiredAuth() to protect routes with automatic login redirect
  • Only call useRequiredAuth() once per page to avoid duplicate redirects

See the full documentation in src/modules/auth/README.md after installation for detailed usage patterns.

Test Credentials (Mock Mode)

Development

Building

npm run build

Testing

npm run typecheck

Documentation

See src/modules/auth/README.md for complete API documentation after installation.

License

UNLICENSED