https://youtu.be/3WpFdqcLOwE ---> Youtube Link
"One link to rule every click." β Smart Link Hub is an intelligent digital ecosystem that adapts to the visitor's intent, environment, and behavior using real-time algorithmic decision-making.
This project was engineered to solve the core requirements of the IIT Ropar JPD Hub Hackathon 2026. The challenge was to move beyond static link aggregators and create a system that understands Context and Intent.
- β Dynamic Context-Awareness: Adaptive link ordering based on visitor data (Device, Time, Geo).
- β AI Rule Synthesis: Converting natural language into complex logic via Groq/Gemini.
- β High-Fidelity UI: Five distinct "Visual Universes" with premium aesthetics and GPU-accelerated effects.
- β Deep Analytics: Real-time tracking of visits, clicks, and conversion trends.
- β Scalable Architecture: Production-grade monorepo system with shared type-safety.
This project is built as a High-Performance Monorepo using TurboRepo, ensuring maximum code reuse and hyper-efficient build pipelines.
smart-link-hub/
βββ apps/
β βββ web/ # Next.js 14 App Router (Frontend)
β β βββ src/app/ # Core Pages & Layouts
β β βββ src/components/ # Atomic UI Design System
β β βββ src/lib/ # Frontend API Clients & Utils
β βββ api/ # Express.js (Backend)
β βββ src/lib/ # Rule Engine (UCB1 Algorithm)
β βββ src/routes/ # RESTful Endpoints
β βββ src/services/ # Business Logic (AI, Analytics)
β βββ prisma/ # PostgreSQL Schema & Migrations
βββ packages/
β βββ shared/ # Zod Schemas & TypeScript Interfaces (Type-Safe Bridge)
βββ run_local.bat # Windows Automation Script
βββ vercel.json # Serverless Deployment Config
Creators don't write JSON; they describe their needs in English. Our Hybrid AI Layer converts prompts like "Show my portfolio only on weekdays for recruiters from the US" into valid, validated code.
- Groq (Llama 3.3): Ultra-low latency logic parsing (<300ms).
- Gemini 1.5 Flash: Orchestrates complex multi-intent analysis.
We implemented the UCB1 (Upper Confidence Bound) algorithm, typically found in professional recommendation engines.
- Exploitation: Boosts links with high historical CTR.
- Exploration: Systematically tests new links to ensure they aren't buried.
- Formula:
Relevance = CTR + 2.0 * sqrt(ln(TotalVisits) / LinkVisits)
Using a centralized Design System in globals.css, we created:
- π’ Neo-Brutalism: Retro-bold, high-contrast borders, and isometric 3D transforms.
- π§ Liquid Glass: Light refraction using organic SVG morphing and deep blurs.
- π§Έ Claymorphism: Tactile inflated UI with squishy spring physics.
- βοΈ Skeuomorphism: Industrial shaders simulating brushed aluminum and carbon fiber.
- βοΈ Minimal Glass: Clean frosted glass with backend green aura glows.
| Component | Technology | Role |
|---|---|---|
| Monorepo | TurboRepo | Orchestration & Build Caching |
| Frontend | Next.js 14, React 18 | App Router, SSR, Framer Motion |
| Backend | Node.js, Express | RESTful API, UCB1 Engine |
| Database | PostgreSQL, Prisma | Relational Mastery & Schema Versioning |
| AI Layer | Groq + Gemini 1.5 | Real-time Logic Processing |
| Animation | Framer Motion | Physics-based UI & Transitions |
| Analytics | Recharts, UA-Parser | Engagement Telemetry & Visualization |
| Security | JWT, bcryptjs, Helmet | Auth & Payload Protection |
| Validation | Zod | End-to-end Type-safety |
graph TD
User((Visitor)) --> Web(Next.js App)
Web --> API(Express API)
API --> RuleEngine(Smart Rule Engine)
RuleEngine --> UCB1(UCB1 Algorithm)
RuleEngine --> AI(Groq/Gemini AI)
API --> DB[(PostgreSQL)]
DB --> Prisma(Prisma ORM)
Web --> Analytics(Recharts Dashboard)
We provide a zero-configuration run_local.bat script for high-speed setup.
- Double-click
run_local.batin the root directory. - The Script will automatically:
- Check for Node.js installation.
- Detect or copy the root
.envto the API package. - Install all root and workspace dependencies via
npm install. - Build the
@smart-link-hub/sharedpackage (The Type-Safe Bridge). - Generate the Prisma Client and offer to Push/Seed the database.
- Launch both the Frontend (3000) and Backend (3001) simultaneously using
concurrently.
- Installation:
npm install(Installs dependencies for all monorepo apps). - Build Shared Library:
npm run build -w packages/shared(Crucial for workspace type-safety). - Database Layer:
npm run db:generate&npm run db:migratein the root (Or insideapps/api). - Parallel Execution:
npm run dev(Runs both API and Web using a single process manager).
The platform is built for a distributed, high-performance production ecosystem:
- Frontend (Vercel): Hosted on the Edge for sub-100ms LCP globally.
- Backend API (Railway/Render): Deployed as a persistent Node.js process to handle real-time rule evaluation and heavy AI inference via Groq/Gemini.
- Database (PostgreSQL): Utilizing Neon (Serverless Postgres) or Supabase for elastic scaling and relational integrity.
- Domain Orchestration: Managed via Vercel Rewrites (
vercel.json) to serve the API from/api/*on the same origin as the frontend, bypassing CORS overhead.
- Privacy: 100% IP-anonymization via SHA-256 hashing for all analytics telemetry.
- Efficiency: Multi-layer caching at the Prisma and In-Memory levels for viral traffic spikes.
- GPU-Acceleration: Premium background effects (3D Orbs, Liquid Glass) are offloaded to the GPU to ensure 60FPS on any modern browser.
Submitted for IIT Ropar TechFest 2026.