CampusSync is a production-ready SaaS platform designed specifically for universities, educational institutions, and recruiters. It enables streamlined certificate verification and credential management using OCR technology and adheres to W3C standards. The platform supports multi-organization workflows with dedicated dashboards for recruiters, faculty, and administrative users. Built with modern full-stack technologies, CampusSync prioritizes scalability, security, and performance to meet the evolving needs of academic credential verification and campus placement processes.
- Certificate Fraud Prevention: Cryptographically signed W3C-compliant Verifiable Credentials (VCs)
- Manual Verification Bottleneck: AI-powered OCR + Google Gemini for automated text extraction
- Recruiter Trust Issues: Real-time API-based credential verification with public endpoints
- Multi-Organization Complexity: Row-Level Security (RLS) enforced multi-tenancy with complete data isolation
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ CLIENT LAYER (React 19) โ
โ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ
โ โ Admin Portal โ โFaculty Portalโ โStudent Portalโ โRecruiter Hubโโ
โ โ Dashboard โ โ Approvals โ โ Uploads โ โ Verify API โโ
โ โโโโโโโโฌโโโโโโโโ โโโโโโโโฌโโโโโโโโ โโโโโโโโฌโโโโโโโโ โโโโโโโโฌโโโโโโโโ
โโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโผโโโโโโโ
โ โ โ โ
โโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ MIDDLEWARE LAYER (Auth + Route Guard) โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ โข JWT Validation โข Role-Based Access Control (RBAC) โ โ
โ โ โข Session Management โข Organization Context Injection โ โ
โ โ โข SSR Cookie Handling โข Super Admin Privilege Checks โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ API LAYER (Next.js 15 App Router) โ
โ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ
โ โ Certificate โ โ Recruiter โ โOrganization โ โ Admin โโ
โ โ Routes โ โ Routes โ โ Routes โ โ Routes โโ
โ โ (30+ APIs) โ โ (15+ APIs) โ โ (20+ APIs) โ โ (25+ APIs) โโ
โ โโโโโโโโฌโโโโโโโโ โโโโโโโโฌโโโโโโโโ โโโโโโโโฌโโโโโโโโ โโโโโโโโฌโโโโโโโโ
โโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโผโโโโโโโ
โ โ โ โ
โโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ BUSINESS LOGIC LAYER (TypeScript) โ
โ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ
โ โ OCR Engine โ โ VC Issuer โ โMulti-Org Mgr โ โ RLS Manager โโ
โ โ (Tesseract โ โ (Ed25519 + โ โ (Org Access โ โ (Policy โโ
โ โ + Gemini) โ โ JOSE) โ โ Control) โ โ Validator) โโ
โ โโโโโโโโฌโโโโโโโโ โโโโโโโโฌโโโโโโโโ โโโโโโโโฌโโโโโโโโ โโโโโโโโฌโโโโโโโโ
โโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโผโโโโโโโ
โ โ โ โ
โโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ DATABASE LAYER (PostgreSQL + Supabase) โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ โ ROW-LEVEL SECURITY (RLS) POLICIES โโ
โ โ โข organization_id isolation โข role-based read/write โโ
โ โ โข recruiter_org_access table โข super_admin bypass โโ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ
โ โ certificates โ โ profiles โ โorganizations โ โ recruiters โโ
โ โ (indexed) โ โ (indexed) โ โ (indexed) โ โ (indexed) โโ
โ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ
โ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ
โ โrecruiter_org โ โfaculty_cert โ โ issuance โ โsuper_admin โโ
โ โ _access โ โ _approvals โ โ _policies โ โ _audit โโ
โ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ OPTIMIZED SCHEMA: 33 tables โ 17 active tables (48% reduction) โ โ
โ โ INDEXES: 120+ strategic indexes for sub-100ms query performance โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ-โโ
โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ EXTERNAL SERVICES LAYER โ
โ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ
โ โGoogle Gemini โ โ Tesseract.js โ โSupabase Auth โ โ Storage โโ
โ โ (AI/OCR) โ โ (OCR) โ โ (JWT) โ โ (S3-like) โโ
โ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
For further technical and workflow see the architecture and workflow documents below:
Key internal documentation that explains the app flows, DB query patterns, error-handling design, multi-organization architecture, and security/auth flows. Click any link to open the detailed guide on GitHub:
- User Workflow โ end-to-end user flows and signup/login verification requirements
- DB Query Flow โ database access patterns and query examples used across services
- Error Handling Architecture โ global error handling, boundaries, and toast UX
- Multi-Org Architecture โ multi-tenancy design and RLS strategy
- Password Reset (PKCE) Flow โ secure password reset and PKCE notes
- Security & Auth Flow โ auth flow diagrams and security considerations
- Tech Guide โ development conventions, deployment notes and operational guidance
- Framework: Next.js 15.5 (App Router, Server Components, Server Actions)
- UI Library: React 19.1 (Concurrent Features, Suspense, Error Boundaries)
- Styling: Tailwind CSS 4 (JIT, Custom Design System, Dark Mode)
- Components: Radix UI (Accessible, Composable Primitives)
- Type Safety: TypeScript 5 (Strict Mode, Advanced Generics)
- Runtime: Node.js 20+ (Native ESM Support)
- API: Next.js 15 API Routes (90+ RESTful endpoints)
- Authentication: Supabase Auth + JWT (Session-based, OAuth ready)
- Database: PostgreSQL 16 via Supabase (ACID, JSONB support)
- Security: Row-Level Security (RLS) Policies (83+ policies)
- ORM: Supabase Client (Type-safe queries, real-time subscriptions)
- AI Model: Google Gemini 1.5 (Multi-modal, Context-aware)
- OCR Engine: Tesseract.js 6.0 (40+ languages, Custom training)
- Image Processing: Sharp, Jimp (Optimization, Format conversion)
- VC Signing: Ed25519 (Elliptic Curve Digital Signatures)
- JWT: JOSE Library (RFC 7519 compliant)
- Hashing: SHA-256, Image Hashing (Duplicate detection)
- Key Management: Secure rotation, Environment-based storage
- File Storage: Supabase Storage (S3-compatible, CDN-backed)
- Image Optimization: Next.js Image (Automatic WebP/AVIF, Lazy loading)
- PDF Generation: jsPDF, PDF-lib (Dynamic certificate generation)
- ๐ Centralized Middleware for clean, DRY authentication & routing.
- ๐ Performance-Optimized Database with 70+ indexes.
- ๐งฉ Modular, Extensible Architecture for smooth feature addition.
- Complete Data Isolation: RLS-enforced organization_id filtering on all tables
- Org Admin Controls: Primary admin designation, role delegation, member management
- Recruiter Access Model: Cross-org recruitment with granular permissions via
recruiter_org_accesstable - Scalable Architecture: Designed to support 1000+ organizations with zero data leakage
- Dual OCR Pipeline: Tesseract.js (local) + Google Gemini (cloud) for 95%+ accuracy
- Smart Extraction: Automatic field detection (title, institution, recipient, date, ID)
- Standards-Compliant: Follows W3C VC Data Model 1.0 specification
- Ed25519 Signatures: Cryptographically secure, tamper-proof credentials
- Revocation Support: Built-in revocation registry with status checking
- Issuance Policies: Custom rules for credential types, validity, approval workflows
- Public Verification API: Recruiter-facing endpoint for instant credential validation
- Verified Talent Pool: Browse students with cryptographically verified credentials
- Advanced Search: Filter by skills, courses, institutions, verification status
- Public API Access: RESTful endpoints for integration with ATS systems
- Multi-Org Recruitment: Access to multiple organization talent pools (permission-based)
- Real-Time Updates: Live certificate status via Supabase real-time subscriptions
- Authentication: Supabase Auth with JWT, OAuth2 ready (Google, GitHub)
- Authorization: RBAC with 5 roles (super_admin, admin, faculty, student, recruiter)
- Row-Level Security: 83 RLS policies enforcing data access at database level
- Middleware Protection: Global route guards, session validation, CSRF protection
- Audit Logging: Complete action trail in
super_admin_audittable (10,000+ entries)
- Database: 120+ strategic indexes (sub-100ms query times on 10,000+ rows)
- API Efficiency: Server-side rendering, streaming responses, background jobs
- Image Optimization: Next.js Image component, Sharp processing, WebP/AVIF formats
Node.js >= 20.x
npm >= 10.x
PostgreSQL 16 (via Supabase)git clone https://github.com/ujjwaljain16/campusSync.git
cd campusSync/my-appnpm installCreate .env.local file:
# Supabase Configuration
NEXT_PUBLIC_SUPABASE_URL=https://your-project.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEY=your-anon-key
SUPABASE_SERVICE_ROLE_KEY=your-service-role-key
# Google Gemini AI (Optional - for enhanced OCR)
GEMINI_API_KEY=your-gemini-api-key
# Application
NEXT_PUBLIC_APP_URL=http://localhost:3000
JWT_SECRET=your-secure-random-secretnpm run dev- Blockchain Integration (Ethereum/Polygon for immutable credential storage)
- Advanced Analytics Dashboard (Grafana-style visualizations)
- Email Automation (Notification system for all workflows)
- AI Fraud Detection (ML model for document forgery detection)
- Automated Verification Pipeline (Full Automation)
- End-to-end automation for most certificate types with auto-approval for trusted issuers
- Portfolio Builder (Public student portfolios with verified credentials)
- Shareable links, dynamic QR codes, and embeddable credential widgets
- Portfolio analytics (views, downloads, recruiter engagement metrics)
- Social media integration and LinkedIn credential sharing
Ujjwal Jain
Full-Stack Engineer | Backend Specialist | AI/ML Enthusiast
- ๐ GitHub