How lazypandaa/napkin works
Auto-PPT Agent turns a topic and requirements into a planned presentation, previews it in a React editor, and exports a themed .pptx. The web flow runs through FastAPI; the documented CLI is a second entry point to planning and dual-MCP rendering. Main owns the documented tool-call sequence; frontend rendering and image proxy use are visible in excerpts. The CLI-to-rendering and unsampled renderer details are documented in the README, not independently verified in source.
Main entry points: main.py FastAPI bridge · App.jsx App workflow · agent.py CLI agent · generator.py LLM planner
Components 20
Web interface
- Home and history
frontend/src/components/HomePage.jsx - Prompt form
frontend/src/components/GenerateModal.jsx - App workflow
frontend/src/App.jsx - Slide navigation
frontend/src/components/Sidebar.jsx - Slide preview
frontend/src/components/SlideCanvas.jsx - Slide layouts
frontend/src/components/SlideCard.jsx - Presentation mode
frontend/src/components/PresentMode.jsx - Export controls
frontend/src/components/Topbar.jsx
Backend bridge
- FastAPI bridge
backend/main.py - Plan history
backend/main.py - Image proxy
backend/main.py
Planning
- LLM planner
backend/generator.py - CLI agent
backend/agent.py
MCP services
- PPT rendering tools
backend/mcp_server.py - Image search tool
backend/web_search_mcp.py
Other components
- User
- CLI user
- Hugging Face model
- Pexels API
- PPTX file
Connections 30
- User → Home and history: opens
README.md - Home and history → Prompt form: starts creation
frontend/src/components/HomePage.jsx - Prompt form → App workflow: submits prompt
frontend/src/components/GenerateModal.jsx - App workflow → FastAPI bridge: POST /generate
frontend/src/App.jsx - FastAPI bridge → LLM planner: plans slides
backend/main.py - LLM planner → Hugging Face model: requests outline
backend/generator.py - LLM planner → FastAPI bridge: returns plan
backend/main.py - FastAPI bridge → Plan history: stores plan
backend/main.py - Home and history → FastAPI bridge: GET /history
frontend/src/components/HomePage.jsx - FastAPI bridge → Plan history: reads plans
backend/main.py - FastAPI bridge → App workflow: returns plan
backend/main.py - App workflow → Slide navigation: shows slides
frontend/src/App.jsx - App workflow → Slide preview: shows preview
frontend/src/App.jsx - Slide preview → Slide layouts: renders slides
frontend/src/components/SlideCanvas.jsx - Slide navigation → Image proxy: requests images
frontend/src/components/Sidebar.jsx - Slide layouts → Image proxy: requests images
frontend/src/components/SlideCard.jsx - App workflow → Export controls: shows controls
frontend/src/App.jsx - Export controls → App workflow: requests export
frontend/src/components/Topbar.jsx - App workflow → Presentation mode: opens mode
frontend/src/App.jsx - Presentation mode → Slide layouts: renders slides
frontend/src/components/PresentMode.jsx - Image proxy → Pexels API: searches and fetches
backend/main.py - User → FastAPI bridge: requests export
README.md - FastAPI bridge → Image search tool: calls search_image
backend/main.py - FastAPI bridge → PPT rendering tools: calls render tools
backend/main.py - Image search tool → Pexels API: searches images
README.md - PPT rendering tools → PPTX file: saves presentation
README.md - CLI user → CLI agent: runs prompt
README.md - CLI agent → LLM planner: plans presentation
backend/agent.py - CLI agent → Image search tool: uses MCP tools
README.md - CLI agent → PPT rendering tools: uses MCP tools
README.md