Infinity
AI agentic canvas · Diagram synthesis & workspace
Infinity is an AI-agentic whiteboard and system architecture workspace engineered to bridge the gap between high-level architectural ideation and visual canvas modeling.

What is Infinity?
Built with Next.js 16 (App Router), React 19, Excalidraw, and Tailwind CSS v4, Infinity pairs a vector canvas with Google Gemini 2.5 (@google/genai). Rather than generating unconstrained graphics, an agentic synthesis layer generates structured JSON diagram schemas that are strictly validated against spatial overlap and bounds constraints via Zod (lib/validate.ts) before rendering onto the canvas via RenderAIDiagram.tsx.
The platform features dynamic context-aware floating element property inspectors, a debounced 10-second multi-tier autosave pipeline (persisting elements, files, normalized appState, and Base64 WebP preview thumbnails to Neon Serverless PostgreSQL via Drizzle ORM), Clerk authentication, and a complete soft-delete and archive recovery lifecycle.
Beyond the code, taking an AI canvas platform into production surfaced the hectic, tedious realities of edge infrastructure—wrestling with Vercel custom domain routing, DNS propagation delays, and keeping immense patience when things don't resolve instantly.
Engineering Highlights
04 Core PillarsAgentic AI Diagram Generator
Google Gemini 2.5 & Zod geometry constraints
Translates natural language system architecture, flowchart, and mindmap prompts into structured JSON schemas, strictly validated against Zod geometry and bounds constraints (lib/validate.ts) before rendering onto the canvas via RenderAIDiagram.tsx.
Context-Aware Floating Element Inspector
Dynamic canvas overlay controls
Dynamically positions a property inspector above active canvas elements, enabling instant manipulation of stroke color, background, stroke width, roughness, opacity, font size, layer ordering, and duplication.
Debounced 10s Autosave & State Normalization
Multi-tier Neon PostgreSQL persistence
Batches canvas elements, files, normalized appState (sanitizing non-serializable Map objects and stale selections to eliminate viewport distortion), and Base64 WebP thumbnails every 10 seconds via Drizzle ORM.
Soft Delete & Project Archive Lifecycle
Production workspace management
Provides board management with Grid/List views, live search filtering, sorting, client-side PNG export (exportToBlob), and a soft-delete pipeline with a dedicated /archived page for safe restoration or permanent purge.
Technology Stack
Frontend & Canvas
AI & Diagram Engine
Database & Storage
Auth & Workspace Infrastructure
Want to see how it was built?
Explore the detailed technical case study covering database transactions, auth primitives, fail-fast validation, and lessons learned.
Have thoughts, critiques, or feature requests for Infinity?
Give Feedback via Contact Form