Andrei 459eda89fe feat(phase-1): implement PostgreSQL + Prisma + Authentication system
Core Features:
- Complete Prisma database schema with all entities (users, orgs, projects, checks, etc.)
- Production-grade authentication service with Argon2 password hashing
- JWT-based session management with HttpOnly cookies
- Comprehensive auth middleware with role-based access control
- RESTful auth API endpoints: register, login, logout, me, refresh
- Database seeding with demo data for development
- Rate limiting on auth endpoints (5 attempts/15min)

Technical Implementation:
- Type-safe authentication with Zod validation
- Proper error handling and logging throughout
- Secure password hashing with Argon2id
- JWT tokens with 7-day expiration
- Database transactions for atomic operations
- Comprehensive middleware for optional/required auth
- Role hierarchy system (MEMBER < ADMIN < OWNER)

Database Schema:
- Users with secure password storage
- Organizations with membership management
- Projects for organizing redirect checks
- Complete audit logging system
- API key management for programmatic access
- Bulk job tracking for future phases

Backward Compatibility:
- All existing endpoints preserved and functional
- No breaking changes to legacy API responses
- New auth system runs alongside existing functionality

Ready for Phase 2: Enhanced redirect tracking with database persistence
2025-08-18 07:25:45 +00:00

URL Redirect Tracker

A simple web application that tracks all intermediate redirects from an input URL to the final landing page.

Features

  • Tracks all redirects from the initial URL to the final destination
  • Displays the time in milliseconds for each redirect
  • Marks non-SSL (non-HTTPS) redirects with red
  • Shows a complete redirect chain with timing information

Installation

  1. Clone this repository
  2. Install dependencies:
    npm install
    
  3. Start the server:
    npm start
    
  4. Open your browser and navigate to http://localhost:3333

How to Use

  1. Enter a URL in the input field (e.g., http://example.com or example.com)
  2. Click the "Track Redirects" button
  3. View the complete redirect chain, including timing information
  4. Non-SSL (HTTP) redirects will be marked in red

Technical Details

  • Built with Node.js and Express
  • Uses Axios for making HTTP requests and following redirects
  • Frontend built with vanilla JavaScript, HTML, and CSS
  • Server runs on port 3333

License

MIT

Description
No description provided
Readme 144 MiB
Languages
TypeScript 71.6%
JavaScript 18.2%
Handlebars 3.1%
Shell 2.8%
CSS 1.9%
Other 2.4%