Back to Vivek's profile
1view

DeployX

One-liner (Hook): (146/160 chars) Unified single-page AI workspace that turns prompts into real PPTX/DOCX files and live websites with self-healing, zero-cost m

Vivek Akula
  • Video of it working
  • Problem, approach and result explained
  • Answered the full brief· 6 of 6
DeployX

—

Stat: <350ms Label: In-Browser PPTX/DOCX Build Time

—

Stat: 100% Label: API Uptime via Auto-Healing Resolver

—

Stat: 100% Label: Free-Tier Compatibility (Zero API Cost)

Walkthrough

Overview

The problem

Students, software engineers, researchers, and digital creators currently face a fractured, high-friction AI ecosystem:

Tool Disconnection & Context Loss: To accomplish a single workflow, users constantly switch browser tabs between ChatGPT (ideation), Claude (writing), and Gemini (multimodal). This tab-hopping fractures conversation history, forces repetitive prompt re-entry, and breaks developer focus. Text-Only Limitations: Mainstream AI platforms output static markdown text. When a user requests a presentation or spreadsheet, they get markdown tables or Python snippets that must be manually copied, styled, and formatted into Microsoft Office tools. API Fragility & Deprecations: Upstream AI endpoints frequently shift model identifiers (such as Google Gemini shifting between v1 and v1beta), causing custom integrations to abruptly crash with HTTP 404 errors. Financial Barriers: Commercial platforms gate full capabilities behind recurring $20/month subscription walls, locking out students and independent developers.

What I set out to do: I set out to build DeployX — a unified, single-tab AI workspace that eliminates tab switching, guarantees zero-cost operation by utilizing free API allowances, dynamically heals upstream model deprecations, and transforms conversational prompts into real, downloadable binary files (.pptx, .docx, .xlsx) and live, interactive web applications with real-time in-browser previews.

The approach

How is it built — stack, architecture, the one tricky part? What did you leave out on purpose?

Stack & Architecture:

Frontend & Framework: Next.js 14 (App Router), React 18, TypeScript (Strict Mode), Tailwind CSS, Lucide icons. Backend & Security: Serverless Route Handlers (/api/chat, /api/auth, /api/conversations) with session cryptography and 2-step SMTP email OTP verification. Document Synthesis Engine: Pure client-side ECMA-376 OpenXML compiler utilizing JSZip to generate valid office documents in-memory. Hosting & CI/CD: Serverless edge deployment on Vercel connected to GitHub Actions.

The One Tricky Part:

Dynamic Multi-Model Resolution & 404 Auto-Healing: Google AI Studio’s REST API frequently rejects versioned model calls (e.g., models/gemini-1.5-flash returning a 404 in v1beta). To solve this without hardcoded fragile strings, I engineered a dynamic resolver in src/lib/ai/gemini.ts. On startup, it queries Google’s ModelService.ListModels to inspect the exact methods supported by the active key, evaluates a fallback matrix across endpoints (gemini-1.5-flash-latest, gemini-1.5-pro, gemini-pro across v1 and v1beta), and caches the verified working endpoint so subsequent turns execute with zero latency and zero crashes.

What I Left Out on Purpose:

No Heavy Backend Server/Database Dependencies: I intentionally avoided heavy microservices or bulky external document rendering engines (like LibreOffice headless containers). Instead, all .pptx, .docx, and .xlsx generation happens entirely on the client thread via raw OpenXML packaging and JSZip, eliminating server compute costs and scaling effortlessly. No Cluttered Dashboards or Paid API Traps: I deliberately stripped out promotional banners, credit top-up menus, and preliminary setup surveys, keeping the workspace as calm and minimalist as Anthropic's Claude.

The result

DeployX was fully built, tested, and deployed to production at https://deployx-project.vercel.app/ :

Quantifiable Metrics vs. Baseline:

Document Compilation Latency: Standard server-side office export typically takes 3 to 8 seconds and incurs compute costs. DeployX’s client-side OpenXML compiler generates a 10-slide PowerPoint (.pptx) in under 350ms directly in the browser (measured via Chrome DevTools Performance Timeline). API Availability & Fault Tolerance: In initial testing, direct Gemini v1beta calls suffered a 100% failure rate (HTTP 404) due to upstream model naming deprecation. With the dynamic model resolver, the success rate reached 100% across all subsequent calls with an average model resolution overhead of less than 180ms. Page Load & First Contentful Paint (FCP): Serverless edge bundling achieved an FCP of ~0.9 seconds, well below the 1.2-second performance budget.

Demonstrated Capabilities:

Multi-Turn Autonomous Web Generation: Prompting "Create website for my gym" generated a complete, styled HTML/CSS application. A follow-up prompt — "make usd pricing in indian rupee" — retained the entire context and updated the pricing tiers in real time in the live interactive preview runtime. Binary Document Generation: Prompting "Create a 10-slide presentation on Artificial Intelligence" generated an interactive slide preview carousel with slide-by-slide navigation and an instant [Download .pptx] button that opens natively in Microsoft PowerPoint. 3D Neon Authentication: Delivered a high-security sign-up gateway with dynamic cursor-tracking perspective tilt, 300s OTP timers, 60s resend cooldowns, and real-time password criteria validation.

Reflection

What I Would Do Differently:

Early in the project, I experimented with third-party npm wrappers for document generation, which bloated the bundle and caused build synchronization issues on Vercel. In retrospect, I would start directly with raw OpenXML packaging and JSZip from day one, which proved to be significantly faster, lighter, and more dependable.

What’s Unfinished or Known Limitations:

Complex Presentation Themes: While the current OpenXML generator reliably builds structured title slides, bullet lists, and summary slides, it currently uses a standard corporate color palette. Generating complex vector diagrams or custom slide master layouts natively in OpenXML requires further development. Session Persistence Across Devices: User conversations and generated artifacts currently persist via secure client tokens and server memory stores. Transitioning to a distributed database (e.g., Supabase / PostgreSQL) would allow seamless cross-device history synchronization.

What I Learned:

Resilient API Architecture: Never trust third-party LLM endpoint strings to remain static. Building self-healing discovery and fallback layers is essential for production AI software engineering. Zero-Compute Client Packaging: Offloading binary file compilation (.pptx, .docx, .xlsx) to browser Web APIs and JSZip reduces backend infrastructure costs to zero while providing immediate gratification to the user.

AI tools used

ChatGPTClaudeGemini

Used Google Gemini 1.5 Flash REST API as the primary free-tier reasoning backend, Claude 3.5 Sonnet architecture patterns for the distraction-free UI canvas, and Copilot/ChatGPT for rapid OpenXML schema mapping and TypeScript boilerplate.

Links & files

Artifacts

2

Gallery

5