AI PPT Generator
Full-stack presentation platform featuring structured AI slide generation, background media pipelines, and native PowerPoint compilation.

Project Overview
AI PPT Generator is a modern web platform engineered with TanStack Start, React 19, and Vite that transforms natural-language prompts into structured, multi-slide presentation decks.
The architecture deliberately decouples high-speed structured text generation from asynchronous media synthesis, enabling immediate interactive slide previews while multi-pass background workers generate visual assets and compile downloadable Microsoft PowerPoint (.pptx) binaries.
The Problem & Motivation
- Creating presentation decks manually is time-consuming, requiring repetitive formatting, layout adjustments, and copy fitting across dozens of slides.
- Generic AI chatbots output raw unformatted text blocks that still need to be manually transferred to presentation tools, while traditional end-to-end slide generation tools block the browser interface for several minutes during image rendering.
- The engineering goal was to build an asynchronous generation pipeline that returns an initial structured slide outline synchronously while offloading image synthesis and document serialization to background queues.
Architectural Solution
- Architected a server-side rendered application with TanStack Start, powered by the Nitro engine and Vite for server-side rendering and client-side hydration.
- Implemented a structured generation pipeline using the Vercel AI SDK and OpenRouter provider, enforcing strict Zod JSON schemas for slide hierarchies, bullet points, and speaker notes.
- Integrated Inngest event-driven background functions to orchestrate multi-pass image generation with exponential backoff and automated retry schedules.
- Utilized PptxGenJS to compile presentation ASTs directly into native Microsoft PowerPoint (.pptx) binary files on the client and server.
Technology Stack & Evidence
Technologies categorized by source verification and documented implementation scope:
Frontend & Full-Stack Framework
AI & Generation Pipeline
Background Workflows & Storage
Backend & Data Persistence
Architecture & System Flow
Client & Presentation Surface
Server-side rendered application surface with interactive slide navigation, fullscreen presentation mode, and slide editing controls.
Generation & AI Orchestration
Prompt analysis and structured JSON schema enforcement generating slide titles, key takeaways, speaker notes, and concise image generation prompts.
Background Queue & Media Pipeline
Event-driven workers executing background image generation, managing rate limits (HTTP 429), and uploading optimized assets to Cloudinary.
Persistence & Document Export
Relational models for presentations, slides, and user accounts, paired with client/server PPTX binary serialization.
Core Implemented Features
Prompt-to-Deck Structured Generation
Transforms natural-language topics into multi-slide presentations with titles, structured takeaways, and dedicated presenter notes.
Asynchronous Multi-Pass Image Pipeline
Inngest background workers generate slide imagery asynchronously with multi-pass retries (immediate pass, 5-minute retry, 15-minute fallback), allowing users to review and edit presentation outlines without waiting for media generation to complete.
Native PowerPoint (.pptx) Compilation
Compiles slide specifications, typography, layouts, and visual assets into standard Microsoft PowerPoint (.pptx) files ready for immediate presentation.
Better Auth OAuth & Session Management
Secure authentication supporting Google and GitHub OAuth providers with session persistence in PostgreSQL via Prisma.
Technical Challenges & Trade-Offs
01.Decoupling Fast Text from Slow Media Generation
Generating both slide copy and high-resolution images synchronously caused API gateway timeouts and kept users waiting for prolonged periods without response.
Split generation into two phases: Phase 1 synchronously generates text structures, assigns slide hierarchies, and persists initial records with imageStatus = 'PENDING'. Phase 2 triggers an Inngest background event that populates image assets asynchronously.
Users receive an interactive presentation preview immediately while background workers complete media synthesis without blocking UI interactions.
02.Resilient Image Synthesis with Rate-Limit Handling
External image synthesis APIs intermittently encounter rate limits (HTTP 429) or timeouts during concurrent batch generation across multi-slide decks.
Implemented an Inngest worker with sequential execution, exponential backoff with jitter, and automatic retry passes at 5-minute and 15-minute intervals.
Resilient deck completion that gracefully recovers from transient rate limits and upstream timeouts without manual user retries.