Skip to content

Repository files navigation

Spectre Logo

SPECTRE

High-Performance Commerce Interface

Designed & Engineered by Alfaz Mahmud Rizve

🔗 Live Demo  ·  🌐 Portfolio  ·  📦 GitHub


Vision

SPECTRE is a cinematic e-commerce frontend that demonstrates Agentic AI capabilities in modern web development. Every pixel is intentional. Every scroll frame is computed. This is not a template — it is a fully engineered, scroll-driven product experience built from scratch with a "Cyberpunk / Stealth" design language.

The project showcases how AI-assisted development can produce production-grade interfaces with complex scroll mechanics, real-time canvas rendering, and immersive audio — all while maintaining clean, maintainable architecture.

Architecture

spectre/
├── app/                    # Next.js App Router (Pages, API Routes, Layout)
│   ├── api/                # RESTful endpoints (Auth, Products, Orders)
│   ├── checkout/           # Secure terminal checkout flow
│   ├── dashboard/          # Admin command center
│   └── product/[slug]/     # Dynamic product detail pages
├── components/             # UI components (Canvas, Overlays, Sidebar, Navbar)
├── hooks/                  # Custom hooks (Canvas Sequence, Media Query, Loader)
├── store/                  # Zustand stores (Cart, Product State)
├── prisma/                 # Database schema and seed data
├── public/                 # Static assets (Product frame sequences, sounds)
└── data/                   # Type exports and data layer

Core Features

Cinematic Product Sequence

Scroll-controlled frame interpolation on an HTML5 <canvas>. Product images are loaded in two phases (critical-first, background-fill) for fast perceived performance. Spring-smoothed scroll progress ensures silk-smooth frame transitions without jank.

Agentic Admin Dashboard

Command-center style inventory management with real-time product CRUD, image upload, and order tracking. Designed for operators, not consumers.

Immersive Checkout

A terminal-inspired, form-based checkout flow that maintains the stealth aesthetic end-to-end.

Sonic Lab

Interactive audio testing station for keyboard switch acoustics. Supports Linear (Stealth) and Tactile (Cyber) profiles with live waveform visualization.

Responsive Mobile Experience

Full mobile support with adaptive canvas scaling, hamburger navigation, touch-optimized scroll parameters, and portrait-aware product framing.

Tech Stack

Layer Technology
Framework Next.js 16 (App Router, Server Components)
Language TypeScript
Styling Tailwind CSS + Custom Design Tokens
Animation Framer Motion (Springs, Transforms, AnimatePresence)
Scroll Lenis (Smooth Scrolling)
Canvas HTML5 Canvas (Scroll-Driven Frame Rendering)
Audio Howler.js
State Zustand (Persisted Cart & Settings)
Auth NextAuth.js
Database Prisma ORM (PostgreSQL)
Fonts Space Grotesk + Inter (Google Fonts)
Deployment Vercel

Getting Started

# Clone
git clone https://github.com/AlfazMahmudRizve/spectre.git
cd spectre

# Install
npm install

# Environment
cp .env.example .env.local
# Configure DATABASE_URL, NEXTAUTH_SECRET, and NEXTAUTH_URL

# Database
npx prisma generate
npx prisma db push
npx prisma db seed

# Dev
npm run dev

Open http://localhost:3000.

Admin Access

Navigate to /login and sign in with the seeded admin credentials. The Dashboard link appears in the navbar for admin users.


© 2026 Alfaz Mahmud Rizve. All Systems Nominal.

About

Spectre is a concept landing page for a premium mechanical keyboard brand. It pushes the boundaries of modern web performance by utilizing **HTML5 Canvas** to render high-fidelity 3D image sequences (120+ frames) tied to scroll position, maintaining 60fps even on mobile devices.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages