Okay, so the core idea is to have something similar to LovableAI, Bolt.new, V0.dev by , so these AI website generators, but with a focus on slide generation or presentation generation like PowerPoint, but in a very, very simplistic way because I'm right now creating the MVP. What should the MVP be able to do? Basically, it's the user typing in his initial prompt, preferably with all the contents he'd already like to have, and now the AI's job is to create basically a page for each slide in a way where, so I found out it's the easiest way to create good-looking slides, basically use modern UI libraries like Lucid and good layouts and then basically imagine each slide as if it were a website, but it's not because the user can obviously click through them, but in the backend, the slides are basically like TSX or JSX because that is the best way to generate slides, and the most important part about the project is not, for example, whether the user can export in the MVP, because they might be even able to just take screenshots, but it is about what is the correct, very simplistic setup that is just focusing on the frontend, because we're not generating websites, we just need good-looking visual alignments on how to create it, and by that I mean like what should the global prompt for the AI look like, and especially how should the base setup look like, what libraries should be important and what should not be important, how would the layouts look like, etc. The user maybe should be able to choose theming, but how the user will edit his first initial prompt, and then he will just basically on each slide can write a natural language prompt that will in the background do code diffing and basically change it, so he will not edit it like a Webflow or Figma, but with natural language, and there the question is in general what important questions would you ask me, and how can I set it up very basically, and everything else that you also need to know about the project, but that's a very simplistic idea.
Assistant
Great concept — you’re essentially creating a “natural language to slide deck” generator, where each slide is rendered using frontend components like a JSX/TSX page, not editable via a UI editor but rather through conversational, GPT-style natural language edits. Think of it as “V0.dev for slides.”
Let’s begin by breaking this down incrementally so we can produce a proper architectural spec. To start, we need to understand two core areas first: theuser journeyandMVP scope. Here’s what I assume so far:
🧭 Assumed User Flow (MVP)
User lands on the app, sees a textbox titled something like "Describe your presentation."
They input something like:"Pitch deck for a startup that uses AI to generate cooking recipes, 6 slides: intro, problem, solution, market size, team, call to action."
The app generates slide components — each is a visual page with a layout (using something like Lucid or Tailwind).
User can click on a slide and type in a prompt like:"Make this slide include a graph showing 10% monthly growth."
System applies diff-based update and re-renders the slide using JSX/TSX.
Optional: pick from a few predefined themes or styles.
MVP doesn’t require export or live preview hosting — just view in browser.
User lands on the app, sees a textbox titled something like "Describe your presentation."
They input something like:"Pitch deck for a startup that uses AI to generate cooking recipes, 6 slides: intro, problem, solution, market size, team, call to action."
The app generates slide components — each is a visual page with a layout (using something like Lucid or Tailwind).
User can click on a slide and type in a prompt like:"Make this slide include a graph showing 10% monthly growth."
System applies diff-based update and re-renders the slide using JSX/TSX.
Optional: pick from a few predefined themes or styles.
MVP doesn’t require export or live preview hosting — just view in browser.
Let’s confirm these details by answering just two questions for now:
Slide Representation:Can we assume each slide will be internally represented as a React component (TSX), and the rendering engine will just be React itself?
Prompt Interaction:Will prompt responses onlyappend or modifythe content of a slide (like chat → code → render), or can the user also request layout/design changes per slide?
Slide Representation:Can we assume each slide will be internally represented as a React component (TSX), and the rendering engine will just be React itself?
Prompt Interaction:Will prompt responses onlyappend or modifythe content of a slide (like chat → code → render), or can the user also request layout/design changes per slide?
Once you confirm or clarify those, I’ll move on to propose theRequirementssection of the spec.
User
I don't know yet. What do you think would be the best way to do slide representation? What are all the options? The thing is, it could be okay that the slides would be just generated within already the browser session, and the things would be downloaded, like React, etc., would be gotten from a CDN. But my question is more, I want consistency across all the slides. I don't want to give like a template on, okay, this is how a chart slide should look like. But I want basically that all slides, for example, if there's a shadow applied or if there's a certain font chosen, that it is obviously chosen across all fonts. So there needs to be this kind of logic. So what is the best option? And with the prompt and the action, given that it's all TSX or JSX, does it even matter whether it edits the content or also the design? Because at the end of the day, I want the prompt to refer to all the code that is on one slide.
Assistant
Perfect — your priorities are becoming clear, and this helps. You're afterslide consistency,prompt-driven editing, andvisual fidelity through code, whilekeeping the system lightweight and browser-executed.
Let's address both of your core questions:
🧩 1.Slide Representation – What are the Options?
Since you want the frontend and rendering to be theonly real scopefor MVP, and all editing is prompt-based (not WYSIWYG), these are the main options:
✅ Recommended:Single-page React app (Vite + TSX)
Each slide is a React component.
All slides are rendered in sequence, one per "page" (like adivwithdisplay: none|blockfor navigation).
Use TailwindCSS for styling + theming.
Use athemeContextorlayoutContextto inject global styles across slides (e.g., font, padding, shadows).
Each slide is a React component.
All slides are rendered in sequence, one per "page" (like adivwithdisplay: none|blockfor navigation).
Use TailwindCSS for styling + theming.
Use athemeContextorlayoutContextto inject global styles across slides (e.g., font, padding, shadows).
Pros:
Fully in-browser with CDN support (React, Tailwind, etc.)
You can serialize/deserialize each slide's TSX code.
Edits to the slide are diffs on the code level.
You get consistency via shared components and themes.
Fully in-browser with CDN support (React, Tailwind, etc.)
You can serialize/deserialize each slide's TSX code.
Edits to the slide are diffs on the code level.
You get consistency via shared components and themes.
MDX-like system (Markdown + JSX mix)Good if you want a simpler slide description syntax.But limits layout flexibility.
Good if you want a simpler slide description syntax.
But limits layout flexibility.
Canvas-based render (e.g., Remotion)Overkill for MVP.Better for video-style presentations than interactive slide decks.
Overkill for MVP.
Better for video-style presentations than interactive slide decks.
Custom JSON format interpreted into JSX at runtimeMore control but more engineering overhead.Less transparent than plain TSX.
More control but more engineering overhead.
Less transparent than plain TSX.
MDX-like system (Markdown + JSX mix)
Good if you want a simpler slide description syntax.
But limits layout flexibility.
Good if you want a simpler slide description syntax.
User
I've liked everything you said and would like to stick to the defaults you said, but before we requirements, if you think really smartly, like a 150 IQ , or like in general, when taking this product more commercially, still keeping it simple, but in terms of feature set or things I might not consider, what are all the other questions that might come to play before generating the requirements, in terms of also user interaction and like setting it up technically?
Assistant
Awesome — love that you're thinking a few steps ahead. Before jumping into requirements, let’s take a high-IQ strategic pause. Here’s a distilled list ofsmart, forward-looking questionsthat touch onuser experience,tech setup, andlong-term product shape, while keeping it simple for MVP:
🧠 High-Leverage Questions to Ask Now (Pre-Requirements)
🧑💻 User Experience & Interaction
Prompt Model:Will the prompt besingle-shot("generate all slides now") orinteractive per slidefrom the start?Do you allow editing the original prompt and regenerating the full deck later?
Will the prompt besingle-shot("generate all slides now") orinteractive per slidefrom the start?
Do you allow editing the original prompt and regenerating the full deck later?
Slide Navigation & Feedback:Do users get toreorder, delete, or duplicate slidesin MVP?Do you needundo/redoon natural language changes?
Do users get toreorder, delete, or duplicate slidesin MVP?
Do you needundo/redoon natural language changes?
Theming:Should themes be atoggle(e.g., light/dark) orLLM-generated and consistentacross slides?
Should themes be atoggle(e.g., light/dark) orLLM-generated and consistentacross slides?
Visual Consistency Layer:Do you want aDesignSystemcontext with enforced spacing, colors, fonts — editable in one place?
Do you want aDesignSystemcontext with enforced spacing, colors, fonts — editable in one place?
Prompt Model:
Will the prompt besingle-shot("generate all slides now") orinteractive per slidefrom the start?
Do you allow editing the original prompt and regenerating the full deck later?
Will the prompt besingle-shot("generate all slides now") orinteractive per slidefrom the start?
Do you allow editing the original prompt and regenerating the full deck later?
Slide Navigation & Feedback:
Do users get toreorder, delete, or duplicate slidesin MVP?
Do you needundo/redoon natural language changes?
Do users get toreorder, delete, or duplicate slidesin MVP?
Do you needundo/redoon natural language changes?
Theming:
Should themes be atoggle(e.g., light/dark) orLLM-generated and consistentacross slides?
Should themes be atoggle(e.g., light/dark) orLLM-generated and consistentacross slides?
Visual Consistency Layer:
Do you want aDesignSystemcontext with enforced spacing, colors, fonts — editable in one place?
Do you want aDesignSystemcontext with enforced spacing, colors, fonts — editable in one place?
🏗️ Technical Considerations
Diffing + State:How will you managediffsbetween slide TSX states? Will you store history or just current version?UseAST-level diffsfor precision, or text-based diffs?
User
Okay, let me try to answer all the questions one by one. If I do not know something or like I cannot answer properly, feel free to ask it again. But so it should be from the prompt model, it should be kind of both. So basically, obviously, when I'm starting to generate the slides, it should be a single shot because that's the foundation that gets built. And then afterwards, I should have the slides like on a left sidebar or be able to pick which one. And then I should be able to edit on a slide per slide basis. And maybe the best way would be to so I can select slides to put into the prompt context. So basically, by default, I basically edit slides, I edit the slide with natural language I'm on. But I can be able, I am able to select multiple slides, for example, if I want to, if I want to, like, adjust content, and they're both referring to each other, or I can select all slides. And then obviously, it will regenerate the deck in a kind of new way. And then reorder, delete, duplicate. Yeah, sure. But again, keep it very simple. And do we do? What was undo we do? I mean, yeah, as long as it kept is it kept simple would be good system then. No, again, no. I mean, with theming, I meant that the user at the beginning that we have like a general design, templating, theming, and not about like, light or dark mode, it's more about like, picking color, like everything has a purple accent or yellow accent. And this is like based all across context, or all across the whole slide design. Yeah, again, I mean, yeah, the design like a consistent design is important, but it should be flexible enough that I can rearrange UI elements, but stuck enough that things like sizing for headings, color accents, and color fonts are kept consistent. Otherwise, it will look messy. Then different states do it how v0 and others will do it. So as far as I understood, they just do simple text based thing. Yeah, and use the most simple but for you logical stating system that makes sense on front end. No, it's okay. If it just runs like in an iframe or something similar to that, because in my head, like I'd prefer caching, so why would it run iframe, but because it's like also running within the client, but the idea Yeah, and if an error happens, obviously, just kind of dislike, try to do a hot reload in the slide presenter. And basically, it simply shows the user the error or tries and then gives the option to click maybe auto fix or yeah, or like tries to fix it itself in with the LLM and then fix vocabulary. No, I'd like basically to have more free form because again, like there are a lot of visual elements and I cannot predefine everything there like funnels, charts, etc. So try to have the I like come up with them themselves. Maybe it would be good to have some default templates. But again, it should be able to do it also itself. Converting to each time something changes. Make it so that after every like with nine session business with eight rendering strategy, learning strategies make should be chosen by the fact that if I type a natural language prompt to edit the slide and the generation is done, it should basically now show me the new change within the frame. And like what makes more sense, use it. Local storage was in memory. And I mean, local storage should be fine. Section given the model every time it's used. Yes, slide cut in language. And I mean, basically, there should be like a global problem. So they I always behaves in a certain way. And there should be a lot of prompt engineering that are appended to the user requests. But which context or which what the scope of the code is decided by users you by default. Again, in the beginning, it's all and then it's basically because it's one shot generation. But then it's basically per slide basis, unless the user selects more or less. And then it's basically all slides. And, again, ignore the other like product might consideration right now it's about making it simple tech MVP.
Assistant
Excellent — that was a goldmine of clarity. Your responses confirm theright balance of simplicity + flexibility, so we now have enough to lock in theRequirementssection of the spec, which I’ll draft below for your review.
Here’s the MVPRequirementssection (MoSCoW prioritized):
The MVP version of the AI-powered slide generator will focus solely on frontend functionality and user interaction via natural language prompts. The goal is to enable fast generation and iterative editing of visually consistent slides without WYSIWYG controls.
=== Must Have
Users must be able to input an initial prompt that generates a full presentation in one shot.
Each slide must be rendered as a TSX (React) component in the browser.
Users must be able to select a slide and edit it using a natural language prompt.
The prompt must be able to refer to and edit all slide content including layout and design (e.g., content blocks, color, positioning).
Consistent design system across slides (e.g., fonts, sizing, padding, accents).
Slide-level editing with optional multi-select (e.g., edit 2–3 slides together).
Ability to delete, duplicate, and reorder slides.
A global design theme (e.g., accent color, typography) must be chosen before generation and applied to all slides.
Prompt context (slide code) must be passed to the LLM to generate or modify JSX/TSX code.
Edits must be hot-reloaded into the slide viewer on update.
Errors during rendering must be caught and surfaced with an option to auto-fix via LLM.
Persist slide state in localStorage between sessions.
Use simple text-diffing for editing TSX code.
=== Should Have
Display a sidebar with slide thumbnails for navigation.
Allow basic undo/redo history (single-level is acceptable).
Support simple pre-built layout templates as suggestions (optional, LLM-generated still primary).
Use of global prompt prefix (prompt engineering) to ensure consistent LLM behavior.
=== Could Have
Theme switching after initial generation.
Slide export (PDF or image).
Live collaborative editing.
User accounts or login.
=== Won’t Have
Manual visual editor like Figma or Webflow.
Backend rendering or storage.
Server-side PDF generation.
Let me know if you'd like to tweak anything before we move on to theMethodsection, where we’ll define architecture, components, TSX code shape, and LLM interaction. Would you like to proceed?
User
Given that I gave you so many details throughout the whole context, this is really good, but like try to include as many technical boundaries so another LLM that would read this requirement docs would know what it is allowed to do and what not do and like also be more specifically into technology as you've already suggested me certain things. Again, more and more details, but again these short TLDR bullet points with it.
Assistant
Absolutely — you’re thinking like a real architect now. Let's enrich theRequirementssection withtechnical boundaries,tooling choices, andclear constraintsso that another LLM or dev team could confidently act on it without ambiguity.
Here’s the refined version, fully loaded with specificity:
The MVP aims to create an in-browser AI-driven slide generator where slides are React components (.tsx), styled using Tailwind CSS, generated and edited via natural language prompts. The system will run entirely client-side, with no backend or persistence beyond localStorage. The LLM will act on TSX slide code with both structural and stylistic control, guided by a strict context-passing strategy.
=== Must Have
Slides must be represented as individual React (TSX) components.
TLDR: No Markdown, no HTML output; only JSX/TSX.
Tailwind CSS must be used for all styling and layout definitions.
TLDR: No custom CSS files, no styled-components, no emotion.
Initial prompt must generate a complete presentation in a single LLM call.
TLDR: Single-shot slide generation from user input → multiple TSX slides.
Editing slides must happen through natural language prompts, one at a time by default.
TLDR: No manual dragging, resizing, or UI changes.
User can select multiple slides to expand the context for a prompt.
TLDR: You can edit slide 2 alone, or 2 + 3 together if selected.
Each prompt will be paired with the relevant slide code as context for the LLM.
TLDR: Prompt + selected TSX → new TSX via LLM.
Prompt can modify content, layout, and visual styles.
TLDR: LLM can change className, component structure, and inner content.
All rendering must happen client-side in-browser using Vite + React.
TLDR: No server-side rendering, no SSR frameworks.
Slides must be viewable via a simple React slideshow UI with a sidebar navigator.
TLDR: Horizontal slide scroll or page-by-page navigation.
A global design theme (color accent, font, spacing) must be selected at the start.
User
Do not use anything I have not mentioned. Again, it should not at all have anything regarding live collaboration or user authentication right now. It's more about, I mean, maybe user authentication, but definitely not like keep export option very simple and also definitely not write live recommendation. And yeah, I like the won't haves. Again, try to be, don't use like TLDR under it, try to just write more elaborative points. Again, I've given you so much information and use all the details throughout my text that I gave you. For example, something I feel like I'm missing is like UI wise. So basically I want on the left, very short pane, a panel of like the display, then at the upper right as visual, basically slides that I can go through. And then at the bottom should be the chat window. And again, when I basically select, so the beginning is just a chat window, but then when I basically, the slides are generated and I can, on the left panel, select a slide and then I type something in chat, the chat refers to the slide that I've chosen, unless I take more slides on the left, which is basically shown in the chat.
Assistant
Perfect — thanks for pushing for precision. Your feedback helps me tighten this spec like an engineer reading it for implementation, not just conceptually.
Below is theupdated, highly specific== Requirementssectionthat strictly follows all of your guidance, includes clarified UI layout behavior, avoids assumptions like live collaboration or advanced export, and reflectsexactlywhat you've envisioned for the MVP.
The MVP is a client-side AI-powered slide generator that converts user prompts into a structured slide deck. Each slide is a React component (.tsx) using TailwindCSS for styling. All editing is done through natural language, and the system runs fully in-browser with local state management. The goal is to deliver fast visual slide generation and editing via a conversational interface, not a visual editor.
=== Must Have
The application must run entirely in-browser using Vite + React + TypeScript with no backend.
Slides must be created as .tsx components, and each slide must render a unique view using shared layout primitives.
TailwindCSS must be the only styling method, applied via classNames directly in the TSX.
Initial presentation generation must happen through a single natural language prompt from the user, producing all slides in one pass.
The design of slides must remain visually consistent (e.g., heading sizes, padding, fonts, shadow depth) via a global React context.
A global theme must be selected by the user before the initial prompt is processed. The theme includes font, accent color, and optionally visual tone (e.g., minimalist, corporate).
After generation, slides must be displayed as a horizontally scrollable strip on the top-right of the screen for visual navigation.
On the left side, a vertical list of slides (thumbnails or labels) must allow multi-select.
At the bottom of the interface, there must be a chat input where users submit natural language instructions.
Any user prompt submitted in chat must apply edits to the currently selected slide(s).
Users can select one or multiple slides from the left panel to act as the LLM editing scope.
The LLM must receive the full .tsx code of the selected slides along with the user prompt as context.
Editing commands may affect layout, content, or styling, and the system must regenerate valid .tsx code and update the visual output live.
If a slide fails to render due to invalid code, the system must catch the error, display it in the UI, and offer an option to auto-fix using the LLM.
Slide changes must be immediately visible in the viewer (hot reload).
Cite this conversation
“Okay, so the core idea is to have something similar to LovableAI, Bolt.new, V0.dev by….” Conversation with ChatGPT (version unspecified), from the ShareChat — Chatbot Conversations in the Wild dataset. The Chat Archive, 2026. https://thechatarchive.com/c/01m84vp7wk3b0wdfdyx3y8k2sr
Better for video-style presentations than interactive slide decks.
Overkill for MVP.
Better for video-style presentations than interactive slide decks.
Custom JSON format interpreted into JSX at runtime
More control but more engineering overhead.
Less transparent than plain TSX.
More control but more engineering overhead.
Less transparent than plain TSX.
🗣️ 2.Prompt → Edit: Does it Matter if It's Content or Design?
Given that all slides are TSX/JSX and you can parse, diff, and regenerate them,it doesnotmatter. The GPT prompt can refer to:
Content: “Add a quote at the bottom.”
Design: “Make this slide use a lighter background.”
Both: “Add a chart with blue bars and reposition the title.”
Content: “Add a quote at the bottom.”
Design: “Make this slide use a lighter background.”
Both: “Add a chart with blue bars and reposition the title.”
As long as your LLM has access to the full TSX of the current slide, it can regenerate a new version with the requested changes. You'll use code-diffing (likediff-match-patchor AST diffing) to show or store changes.
✅ Suggested Path:
Use React + Tailwind + Vite in-browser. Each slide is a TSX component using shared components (like,,), and design logic is handled globally via context or wrapper components.
Would you like me to now write theRequirementssection of the architecture spec using this direction?
How will you managediffsbetween slide TSX states? Will you store history or just current version?
UseAST-level diffsfor precision, or text-based diffs?
Security & Execution:Since this is running in-browser, will you sandbox TSX? (e.g., iframe or controlled eval?)How do you prevent a malformed TSX edit from crashing the app?
Since this is running in-browser, will you sandbox TSX? (e.g., iframe or controlled eval?)
How do you prevent a malformed TSX edit from crashing the app?
Component Library:Will you define afixed component vocabulary(,,), or allow freeform JSX for the LLM?
Will you define afixed component vocabulary(,,), or allow freeform JSX for the LLM?
Rendering Strategy:Will it always recompile TSX to browser code? Or pre-generate and only hydrate once?
Will it always recompile TSX to browser code? Or pre-generate and only hydrate once?
Session Persistence:Do users lose their deck on refresh? If not, localStorage or in-memory JSON state?
Do users lose their deck on refresh? If not, localStorage or in-memory JSON state?
LLM Prompt Template Design:Will you keep aglobal prompt prefix(e.g., "You're a slide designer. Use these components...")?Will slide code be passed inline with every user message or managed in a shared context?
Will you keep aglobal prompt prefix(e.g., "You're a slide designer. Use these components...")?
Will slide code be passed inline with every user message or managed in a shared context?
Diffing + State:
How will you managediffsbetween slide TSX states? Will you store history or just current version?
UseAST-level diffsfor precision, or text-based diffs?
How will you managediffsbetween slide TSX states? Will you store history or just current version?
UseAST-level diffsfor precision, or text-based diffs?
Security & Execution:
Since this is running in-browser, will you sandbox TSX? (e.g., iframe or controlled eval?)
How do you prevent a malformed TSX edit from crashing the app?
Since this is running in-browser, will you sandbox TSX? (e.g., iframe or controlled eval?)
How do you prevent a malformed TSX edit from crashing the app?
Component Library:
Will you define afixed component vocabulary(,,), or allow freeform JSX for the LLM?
Will you define afixed component vocabulary(,,), or allow freeform JSX for the LLM?
Rendering Strategy:
Will it always recompile TSX to browser code? Or pre-generate and only hydrate once?
Will it always recompile TSX to browser code? Or pre-generate and only hydrate once?
Session Persistence:
Do users lose their deck on refresh? If not, localStorage or in-memory JSON state?
Do users lose their deck on refresh? If not, localStorage or in-memory JSON state?
LLM Prompt Template Design:
Will you keep aglobal prompt prefix(e.g., "You're a slide designer. Use these components...")?
Will slide code be passed inline with every user message or managed in a shared context?
Will you keep aglobal prompt prefix(e.g., "You're a slide designer. Use these components...")?
Will slide code be passed inline with every user message or managed in a shared context?
🚀 Product-Minded Considerations
User Personas:Who is your ideal MVP user? Startup founders? Students? Internal teams?Do you allow login/account creation or make it frictionless with temporary state?
Who is your ideal MVP user? Startup founders? Students? Internal teams?
Do you allow login/account creation or make it frictionless with temporary state?
Growth Lever:How will usersshareorexportdecks eventually? Will you eventually usepdfmake,html2canvas, or SSR to PDF?
How will usersshareorexportdecks eventually? Will you eventually usepdfmake,html2canvas, or SSR to PDF?
Monetization Awareness (Later):Could you gate more advanced layouts or themes under a paid tier?Can users bring their own styles (custom CSS in future)?
Could you gate more advanced layouts or themes under a paid tier?
Can users bring their own styles (custom CSS in future)?
User Personas:
Who is your ideal MVP user? Startup founders? Students? Internal teams?
Do you allow login/account creation or make it frictionless with temporary state?
Who is your ideal MVP user? Startup founders? Students? Internal teams?
Do you allow login/account creation or make it frictionless with temporary state?
Growth Lever:
How will usersshareorexportdecks eventually? Will you eventually usepdfmake,html2canvas, or SSR to PDF?
How will usersshareorexportdecks eventually? Will you eventually usepdfmake,html2canvas, or SSR to PDF?
Monetization Awareness (Later):
Could you gate more advanced layouts or themes under a paid tier?
Can users bring their own styles (custom CSS in future)?
Could you gate more advanced layouts or themes under a paid tier?
Can users bring their own styles (custom CSS in future)?
These questions help us carve the line between"must-have for MVP"and"great to consider but later."
Would you like me to proceed with a requirements section thatonly includes MVP features, and puts advanced ones into a “could have” list?
TLDR: Theme picked once → applied to all slides consistently.
All slides must inherit global visual parameters using a React Context (e.g., ThemeContext).
TLDR: Fonts, colors, shadows, sizes are shared across all slides via context.
Slide changes must trigger a live hot reload of the React component.
TLDR: No manual refresh; edited slide should re-render immediately.
If rendering fails, system must catch and display the error and allow an auto-fix option via the LLM.
TLDR: No app crash; show user-friendly error and recover if possible.
Slides must be stored and persisted in localStorage.
TLDR: Refresh-safe, but not cloud persistent.
Use simple text diffing or replacement to update slide code (e.g., diff-match-patch or naive replacement).
TLDR: No complex AST diffing or tree manipulation for MVP.
=== Should Have
Slide thumbnails or titles shown in a sidebar for easy navigation.
TLDR: Like PowerPoint left pane.
Basic undo/redo system for prompts.
TLDR: One-level undo stack is sufficient.
A few predefined layout templates may be offered as optional LLM seed prompts.
TLDR: Just suggestions, not hardcoded templates.
Use of a global system prompt (e.g., "You are a UI slide generator...") injected with every LLM request.
TLDR: Prompt engineering used for alignment.
=== Could Have
Re-applying a new theme post-generation across all slides.
Export options (PDF/image via html2canvas, react-to-pdf, etc.).
Live collaborative editing (Google Docs-style).
User authentication or account system.
=== Won’t Have
Manual visual editor or drag-and-drop interface (e.g., no Figma/Webflow-style GUI).
Any backend rendering logic (i.e., no server-generated PDFs or HTML).
External database or cloud storage integration.
Arbitrary user-submitted JS or CSS (no execution of untrusted code).
This version reads as bothclear product specandtechnical API contractfor an LLM to behave predictably within. If this looks good, I’ll continue with theMethodsection next: it’ll include a high-level component architecture, LLM integration flow, TSX slide structure, and a PlantUML diagram. Shall we move on?
Slide reordering, deletion, and duplication must be supported via the left-hand slide list.
Presentation state (slides + theme) must be persisted using localStorage so users don’t lose progress on refresh.
No drag-and-drop or manual visual editing is allowed; all edits are done through prompt-based interaction.
=== Should Have
The left slide list should allow users to view slide titles or short previews for easy navigation.
The system should support one-level undo and redo for slide edits.
Optional layout templates (e.g., "comparison", "title with image") may be suggested during the initial generation prompt, but not manually selected.
A consistent system prompt must be injected with all user prompts to guide the LLM in generating structurally valid, stylistically aligned .tsx code.
Simple error fallback messages must be shown in the chat if slide generation fails.
=== Could Have
Basic export option such as screenshot capture using html2canvas, but no print-ready PDF or server-rendered output.
Ability to re-theme the slides after initial generation and re-apply styles without changing layout content.
=== Won’t Have
No live collaboration, multiplayer editing, or socket-based updates.
No server-side backend for rendering, file storage, or slide generation.
No support for user-submitted or arbitrary third-party JS or CSS.
No manual visual editing interface (no dragging, resizing, positioning elements manually).
No Markdown-based slide content or WYSIWYG controls.
No authentication, user login, or account management.
This section now reflects every functional, architectural, and interface-specific boundary you've defined. Let me know if you'd like a visual mock (e.g., layout wireframe), or if we should move on to the== Methodsection next, where I’ll define: