Skip to main content
Full-Stack AI Application
Source-Verified Implementation

AI PPT Generator

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

Role: Full-Stack Developer
AI PPT Generator Interface Preview

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

TanStack Start (SSR)
React 19
Vite
Tailwind CSS 4
TanStack Router
TanStack Query

AI & Generation Pipeline

Vercel AI SDK (ai)
OpenRouter API
Zod Schema Validation
Pollinations AI (Image Generation)

Background Workflows & Storage

Inngest (Event-Driven Background Jobs)
Cloudinary (Asset Uploads & Storage)
PptxGenJS (Native PPTX Generator)

Backend & Data Persistence

PostgreSQL
Prisma ORM
Better Auth (OAuth & Session Management)

Architecture & System Flow

1

Client & Presentation Surface

TanStack Start
React 19
Tailwind CSS 4

Server-side rendered application surface with interactive slide navigation, fullscreen presentation mode, and slide editing controls.

2

Generation & AI Orchestration

Vercel AI SDK
OpenRouter API
Zod

Prompt analysis and structured JSON schema enforcement generating slide titles, key takeaways, speaker notes, and concise image generation prompts.

3

Background Queue & Media Pipeline

Inngest
Pollinations AI
Cloudinary

Event-driven workers executing background image generation, managing rate limits (HTTP 429), and uploading optimized assets to Cloudinary.

4

Persistence & Document Export

Prisma ORM
PostgreSQL
PptxGenJS

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

Challenge

Generating both slide copy and high-resolution images synchronously caused API gateway timeouts and kept users waiting for prolonged periods without response.

Engineering Approach

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.

Result

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

Challenge

External image synthesis APIs intermittently encounter rate limits (HTTP 429) or timeouts during concurrent batch generation across multi-slide decks.

Engineering Approach

Implemented an Inngest worker with sequential execution, exponential backoff with jitter, and automatic retry passes at 5-minute and 15-minute intervals.

Result

Resilient deck completion that gracefully recovers from transient rate limits and upstream timeouts without manual user retries.

Key Engineering Takeaways

Demonstrated practical implementation of modern TanStack Start SSR combined with event-driven background job architectures.
Learned the importance of structured schema enforcement with Zod to constrain LLM responses into strictly typed JSON structures.
Engineered an asynchronous document-generation pattern that maximizes perceived responsiveness for the end user.