Agentic Development
OpenAI API Key
Enter your OpenAI API key to use GPT-5.4 Mini for code generation. Your key is stored locally in your browser.
Get your API key at platform.openai.com
An AI-powered code generator that uses OpenAI’s GPT-5.4 Mini model to build real Astro websites with React islands. The AI generates .astro pages with frontmatter, layouts with <slot />, and .tsx React components hydrated via client:load. Navigation between pages uses Astro’s file-based routing.
Details
- Token-by-token streaming from the OpenAI Chat Completions API directly in the browser
- The AI generates real
.astrofiles with frontmatter (layout,pageTitle) and Tailwind-styled HTML - Layouts use
<slot />for content injection and inline<Navbar />/<Footer />components - React islands (
.tsx) are hydrated withclient:load,client:visible, orclient:idledirectives - File-based routing:
/src/pages/index.astromaps to/,/src/pages/about.astromaps to/about - Navigate between pages using the browser URL bar or in-page links
- Conversation history is stored in IndexedDB across sessions
Explore
- Enter your OpenAI API key when prompted (get one at platform.openai.com)
- The preview starts with a two-page Astro site — click “About” in the nav to navigate
- Ask for changes like “Add a Contact page with a form” or “Make the hero section dark themed”
- The AI outputs only the files it changes — pages, components, or layouts
- Use the file explorer to inspect
.astropages, the layout, and the React Counter island - Edit files directly in the code editor and hit save to see changes instantly