This site is not affiliated with or endorsed by Vercel, Inc. Read the docs, then deploy or run each experiment yourself.
AI

Slide Deck Summarizer

Paste or upload a PDF/text deck - streamText per-slide bullets plus an executive brief.

Run this experiment yourself

Demos are not embedded on this site. Deploy a standalone copy on Vercel or run the experiment app locally.

Local development

cd apps/experiments/slide-deck-summarizer
pnpm install
pnpm dev

Then open http://localhost:3010.

This is an experimental demo. Use it as a starting point for your own projects.

Slide Deck Summarizer accepts pasted text or .txt/.md/.pdf uploads (unpdf for PDFs), splits slides on delimiters, and streams a per-slide bullet summary plus executive brief via streamText. Missing AI keys return 503.

Features

  • Paste or PDF – text extract with unpdf.
  • Slide splitting – --- / “Slide N” / paragraph heuristics.
  • streamText summary – bullets + executive brief.
  • Cancel – abort mid-stream.
  • Honest 503 when AI is unavailable.

Server Reference

POST /api/summarize

JSON { "text": "..." } or multipart with text + optional file.

Success (200)

Plain text token stream (text/plain) with x-slide-count header.

StatusCause
503No AI provider
400Empty source / PDF parse failure

Implementation Details

Extract + splitSlides

logic.ts splits before prompting.

streamText

toTextStreamResponse for progressive UI.

Use Cases

  • Learn composition patterns for this lab’s stack.
  • Prototype before wiring production auth and quotas.
  • Deploy the standalone app as a reference implementation.

Limitations

  • Demo-scale caps on input size and output counts.
  • No auth / rate limits on public deploys.
  • Model quality depends on input clarity.

Use in your project

Copy the Route Handler and logic.ts helpers from apps/experiments/slide-deck-summarizer/. Wire your own persistence and auth as needed.

Deployment

Deploy on Vercel

Local Development

cd apps/experiments/slide-deck-summarizer
pnpm install
pnpm dev

Configuration

VariableRequiredPurpose
AI_GATEWAY_API_KEYYes (or OPENAI_API_KEY)Preferred provider
OPENAI_API_KEYNoFallback
AI_MODELNoModel override

Vercel / Next.js Features Used

  • AI SDK streamText
  • unpdf
  • Route Handlers

Next Steps

On this page