HackNext is a production-grade, offline-first, self-hostable collegiate hackathon management platform. Built to operate seamlessly inside air-gapped or localized university network environments, it requires zero external internet access, third-party SaaS authentication, or cloud CDN infrastructure.
flowchart TD
subgraph Client Layer
A[Bauhaus React 18 SPA] -->|Axios REST / JSON| B[Express API Gateway]
end
subgraph Service & Controller Layer
B --> C[Auth & RBAC Service]
B --> D[Event Lifecycle & Timeline Ops]
B --> E[Adaptive Judging & Normalization]
B --> F[Community Voting Engine]
B --> G[Offline Certificate Generator]
B --> H[Backup & Restore Engine]
end
subgraph Storage & Persistence
C & D & E & F & G & H --> I[(PostgreSQL Database)]
G --> J[Local Storage: /uploads/certificates/]
H --> K[Atomic Transaction Snapshots]
end
- Visual Language: Bold 4px solid borders, high-contrast monochrome palettes with Bauhaus primary accents (Crimson
#E11D48, Cobalt#2563EB, Canary#EAB308, Emerald#10B981), hard drop shadows (8px 8px 0px #000), uppercase typography, and zero rounded fluff. - Accessibility & Themes: Pure CSS dark mode toggle with persistent local state.
- Zero Native Alerts: All modals and toasts use custom
UIModal.tsxcomponents.
-
Architecture Reference: Modeled after
Certifyparameterization engine. -
Interactive Visual Canvas: Live SVG preview with clickable coordinate positioning (
$X, Y$ ), alignment guide crosshairs, and 1-click alignment presets (Center 600, 325,Top Center,Lower,Left,Right). - Vector Engine & Standalone Base64 Embedding: Pure mathematical SVG rendering on the backend. Uploaded background templates are converted to inline Base64 Data URIs so exported SVG certificates are 100% standalone, offline-ready, and never break when viewed outside the server.
- Cryptographic Verification: Every certificate embeds an immutable SHA-256 integrity hash calculated from recipient name, team, event, award title, and issuance timestamp.
-
Public Checksum Endpoint: Anyone can verify validity offline via
/verify/certificate/:idor API/api/certificates/verify/:certNo. -
Toggle Safety Rule: The event-level
show_certificatestoggle can only be activated after certificates have been generated.
- Predefined 5-Phase Sequence:
Registration(Participant onboarding and team formation)Project Submission(Repository and metadata submission before deadline)Evaluation(Judge assignment, criteria rubric grading, and Z-score normalization)Community Voting(Title & description gallery with strict 1-vote constraint and unvote capability; top-3 voted projects receive calibrated bonus points upon voting close)Result Out(Podium reveal, certificates, and final leaderboard)
- Live Extension Controls: Organizers can click
+1 Hourextension orClose Phase Nowon any active round.
-
Scale-Aware Assignment: Dynamically calculates consensus depth
$K$ ($1 \le K \le 3$ ) based on submissions$S$ vs. available judges$J$ , with configurable max projects per judge ($W_{\text{max}} \le 25$ ). - Deterministic Seeded Distribution: Uses Mulberry32 PRNG seed-based algorithm for reproducible, balanced judge pairings.
-
Real-Time Evaluation Progress: Dashboard progress bars display real-time evaluation counts per judge (e.g.
8/10 projects (80%)). -
Z-Score Cross-Judge Normalization: Rescales judge scores to target
$\mu=65, \sigma=15$ with a zero-variance safety fallback ($z=0.0$ when$\sigma=0$ ) to eliminate human grading bias. - Strict Role Isolation: Peer judge score access is blocked at the routing layer (returns HTTP 403).
- Atomic Full Export: Generates a single
.jsonsnapshot of all 14 database tables. - Atomic Transactional Restore: Re-imports all tables within a unified
prisma.$transactionblock, ensuring zero corrupted or partial state.
| Layer | Technology | Purpose |
|---|---|---|
| Frontend Framework | React 18 + Vite | Single Page Application |
| Styling | Tailwind CSS | Bauhaus neo-brutalist UI |
| Icons | Lucide React | Offline vector iconography |
| Backend Runtime | Node.js v20+ / TypeScript | Express REST API |
| Database & ORM | PostgreSQL + Prisma ORM | Relational data store |
| Security | Bcrypt.js + JWT | Offline cryptographic auth |
| Containerization | Docker & Docker Compose | Self-hosted orchestration |