Astro AI Starter is a blog starter for Astro 7, Tailwind CSS 4 and TypeScript with AI built in. Every post can summarize itself, translate itself in place and answer questions, from the browser, with one script tag and no backend.
Reader-side features: Ask the blog (Ctrl+/ dialog that answers from your own posts), TL;DR, Translate in place, Plain English, Ask the author, Read next, Explain selection, Explain this code, Share draft, Test yourself and Reader fit. Each one is a small custom element you can keep or delete.
Build-time helpers: npm run ai:meta writes descriptions, tags and takeaways into frontmatter, npm run ai:alt writes alt text for images. Results are cached by content hash so the same text never costs tokens twice.
The AI script loads only when a reader presses a button, so posts score Lighthouse 100 for performance, accessibility, best practices and SEO. Without a key it is a normal, fast blog; the buttons simply say they are not set up.
Also in the repo: MDX, content collections, RSS, sitemap, Pagefind search, llms.txt, tags, light and dark mode, and two sibling templates (a Starlight docs site and a landing page) that share the same design kit.
AI answers come from OneTag AI. Every account gets 1,000,000 free tokens; the key is designed to be public and goes in .env as PUBLIC_ONETAG_KEY. MIT licensed.








