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

create-sai-pvg-auth

v1.0.0

Published

CLI scaffolding tool for creating the PVG Authentication and Authorization System

Readme

PVG College Auth & Enterprise Management System 🎓

A professional-grade authentication, authorization, and administrative suite built for PVG College of Science.

Technology Stack: React (Vite) · FastAPI · PostgreSQL · SQLAlchemy · Glassmorphism UI


🌟 Enhanced Enterprise Features

  1. Dual-Portal Architecture:

    • User Portal (:5173): Secure registration and profile management for students.
    • Admin Portal (:5174): High-performance dashboard for institutional oversight.
  2. Enterprise Admin Dashboard:

    • Interactive Live Telemetry: Real-time tracking of logins, registrations, and system events.
    • Granular RBAC: Manage roles and permissions with a visual policy editor.
    • User Directory: Deep-dive into specific user profiles with dedicated security audit timelines.
    • System Health: Active monitoring of server load, database connectivity, and auth caches.
  3. Robust Security & Auditing:

    • JWT with Session Expiry: Every token event (login/logout) is tracked with IP and expiry data.
    • Database-Level Auditing: Global AuditMixin ensures every change is timestamped and attributed.

🚀 Unified Quick Start

Launch the entire ecosystem (Backend + User App + Admin App) with a single command:

# 1. Install root dependencies
npm install

# 2. Start all services concurrently
npm run dev

Running Services Independently

If you need to start services separately, use the following commands:

  • Backend (FastAPI):
    cd backend
    venv\Scripts\activate   # Activate virtualenv (Windows)
    uvicorn main:app --reload --port 8000
  • User Portal (Registration):
    cd frontend/user
    npm run dev
  • Admin Portal (Management):
    cd frontend/admin
    npm run dev

Access Points:


📋 System Setup

1. Database (PostgreSQL)

Ensure PostgreSQL is running on localhost:5432.

  1. Create database pvg_auth.
  2. Initialize schema:
    psql -U postgres -d pvg_auth -f setup_auth_tables.sql

2. Environment Configuration

Create a .env in the backend/ folder:

DATABASE_URL=postgresql+psycopg2://postgres:YOUR_PASSWORD@localhost:5432/pvg_auth
SECRET_KEY=pvg_super_secret_key
ALGORITHM=HS256
ACCESS_TOKEN_EXPIRE_MINUTES=60

3. Folder Structure

  • /backend: FastAPI core and SQLAlchemy models.
  • /frontend/user: Vite-based student registration portal.
  • /frontend/admin: Premium administrative dashboard.

🔐 API Reference

  • Admin: GET /admin/stats, GET /admin/users, GET /admin/audit
  • Auth: POST /auth/login, POST /auth/register, POST /roles/assign
  • Profiles: GET /users/me, GET /admin/users/{id}