The Personal Engineering Lab & Production Showcase of Balaji S. (balajitechlabs)
Principal Android Architect, Systems Engineer & Full-Stack Developer โ Bengaluru, India ๐ฎ๐ณ
Live Application โข QuickDash โข macOS Setup Showcase โข GitHub Profile
balajitechlab.com is engineered as a zero-latency, edge-rendered developer workstation running on Cloudflare Workers via the OpenNext Next.js 16 compilation engine. It integrates client-side WebGL fragment shaders, a real-time Discord presence gateway, synthesized Web Audio haptics, and a keyboard-driven command palette.
flowchart TD
subgraph Client ["Client Browser Runtime (120 FPS)"]
UI[App Shell & Layout]
Shaders[WebGL 2.0 Fragment Shaders]
Audio[Web Audio Haptics Engine]
CmdK[Raycast / Spotlight Command Palette]
Music[Discord Live Music Card & Offline Cache]
end
subgraph Edge ["Cloudflare Global Network (Edge Runtime)"]
Worker[OpenNext Cloudflare Worker Runtime]
Static[Edge Assets & Static Chunks]
API_Contact["/api/contact (Telegram Webhook Proxy)"]
API_GitHub["/api/github-stats (Stats & Calendar Proxy)"]
end
subgraph External ["External Services"]
DiscordGW["Discord Lanyard WebSocket Gateway"]
TelegramAPI["Telegram Bot API"]
GitHubAPI["GitHub REST & GraphQL API"]
end
Client -->|HTTP/2 Edge Delivery| Worker
Worker --> Static
UI -->|WebSocket WSS| DiscordGW
Music -->|Fallback Cache| LocalStorage[(Browser LocalStorage)]
API_Contact -->|TLS Webhook| TelegramAPI
API_GitHub -->|Authenticated Query| GitHubAPI
Shaders -->|Color Extraction| UI
- Gateway Connection: Persistent WebSocket connection to the Lanyard presence daemon (
wss://api.lanyard.rest/socket) tracking Spotify and custom Discord rich presence applications (BTL Music,ArchiveTune,Apple Music). - Multi-Tier Asset Resolution: Resolves track art across Spotify CDNs, Discord attachment proxies (
mp:attachments/), and raw Discord application asset hashes (cdn.discordapp.com/app-assets/{app_id}/{asset}.png). - Offline-First State Engine: Caches playback state in
localStorage. When the user is inactive or offline, the widget renders a relative time badge (LAST PLAYED ยท 15m ago) with cached album art and state indicators. - Universal Destination: Universal click routing to
github.com/balajitechlabs/discord-music-card.
- GPU Fragment Shaders:
- AMOLED Topographic: Procedural Perlin noise contour isolines with pitch-black OLED background cutoff.
- The Universe Within: 3D neural constellation network with dynamic star clustering.
- Voronoi Distances: Euclidean cell geometry and distance fields.
- Adaptive Contrast & Color Extraction: Dynamically calculates dominant hue coordinates from shader uniforms and adapts CSS variables (
--primary-color, typography shadows) to guarantee WCAG AAA text contrast across theme switches. - Device Economy: Auto-scales viewport render scale (DPR clamping) on low-power devices and halts draw loops when out-of-viewport via
IntersectionObserver.
- Global Access: Accessible via
Cmd + K(macOS),Ctrl + K(Linux/Windows), or/. - Instant Actions: Live shader selection, direct deep-link navigation, contact trigger, resume downloads, sound effect toggles, and clipboard copy utilities.
- Zero external audio assets; sounds are synthesized programmatically using the browser
AudioContextand oscillator nodes (frequencies, exponential decay gains, pop chords).
- Telegram Contact Gateway (
/api/contact): Dispatches HTML-formatted notification payloads directly to the admin Telegram channel via authenticated bot token. - GitHub Stats Gateway (
/api/github-stats): Aggregates live repository stats, star counts, and contribution calendar metrics with server-side rate-limit caching.
balajitechlab.com/
โโโ .github/
โ โโโ workflows/
โ โ โโโ ci.yml # Pinned CI pipeline (Typecheck, Lint, Build)
โ โ โโโ security.yml # CodeQL SAST vulnerability scanning (v4)
โ โ โโโ update-project-details.yml # Automated midnight repo stats sync
โ โโโ ISSUE_TEMPLATE/ # Form-based issue templates
โ โโโ CODE_OF_CONDUCT.md # Contributor Covenant standard
โ โโโ CONTRIBUTING.md # Clean code & conventional commit guidelines
โ โโโ SECURITY.md # Vulnerability disclosure protocol
โโโ public/
โ โโโ assets/img/ # Static brand logos and showcase media
โ โโโ project-details.json # Cached project metadata & download counters
โโโ src/
โ โโโ app/
โ โ โโโ api/ # Edge API route handlers (contact, stats)
โ โ โโโ macos/ # macOS developer setup showcase page
โ โ โโโ layout.tsx # Root layout with splash screen & fonts
โ โ โโโ page.tsx # Home landing & hero engine
โ โโโ components/ # Modular React 19 UI components
โ โ โโโ DiscordMusicWidget.tsx # Real-time Discord presence & offline player
โ โ โโโ DeveloperPalette.tsx # cmdk Spotlight command palette
โ โ โโโ LoadingScreen.tsx # AMOLED hardware-accelerated splash screen
โ โ โโโ *Background.tsx # WebGL shader renderers
โ โโโ lib/ # Utility libraries (soundFx, releaseNotes)
โ โโโ styles/ # Scoped component and layout stylesheets
โโโ open-next.config.ts # Cloudflare OpenNext compilation profile
โโโ wrangler.jsonc # Cloudflare Worker edge configuration
โโโ package.json # Dependencies (Next 16.3, React 19, pnpm 10)
- Node.js:
v20.xorv24.x - pnpm:
v10.6.2(enforced viapackageManager)
# 1. Clone the repository
git clone https://github.com/balajitechlabs/balajitechlab.com.git
cd balajitechlab.com
# 2. Install dependencies
pnpm install
# 3. Configure environment secrets
cp .env.example .env.local
# Add your GITHUB_TOKEN, TELEGRAM_BOT_TOKEN, TELEGRAM_CHAT_ID
# 4. Start development server with Turbopack
pnpm dev# TypeScript compiler check (0 errors)
pnpm exec tsc --noEmit
# ESLint check (0 errors, 0 warnings)
pnpm run lint
# Production Next.js Turbopack build
pnpm run build
# Cloudflare OpenNext bundle verification
pnpm run build:cf
# Dependency security audit (0 vulnerabilities)
pnpm auditThe production deployment builds via @opennextjs/cloudflare into an optimized single worker bundle:
# Build OpenNext worker and static asset bundle
pnpm run build:cf
# Deploy worker to Cloudflare Edge
npx wrangler deployDistributed under the MIT License. See LICENSE for complete terms.
Copyright ยฉ 2026 ||BTL||โข (balajitechlabs). All Rights Reserved.