Skip to content
Velocity
View Demo
New in 2.6: page sections and every Lucide icon

Astro 7 starter kit with AI agent support

Give your AI agent a real foundation.

The open-source starter kit with 70 components, strict CSP and built-in i18n, plus the rules, skills and checks your agent needs to build on it without breaking them.

See the demo
  • MIT licensed
  • Node 22+
  • Vercel, Netlify, Cloudflare or any Node host

What your agent sees

  1. Add a pricing page with three plans
  2. Wrote PricingView.astro, pricing.astro, nav entry
  3. npm run check:agent
  4. Error: i18n/missing-key PricingView.astro:8
  5. Error: csp/inline-handler pricing/index.html
  6. Error: links/broken href="/checkout"
  7. Fixed all 3 from the report
  8. npm run check:agent
  9. check:agent passed
An example agent run: the agent adds a Pricing page, check:agent reports three errors with their files, the agent fixes them, and the check passes.
Every finding names the file, the rule and the fix

What's in the kit

What the Astro 7 starter kit includes.

The parts you'd build anyway, already built and tested across every project shape.

Your AI agent already knows the rules.

Every project ships with rules and skills for Claude Code, Codex, Cursor and other agents. They know how to add pages and components, and which files upgrades replace.

Add a Pricing page and put it in the nav.

Using velocity-add-page

  • src/views/PricingView.astro content
  • src/pages/pricing.astro default locale
  • src/pages/[lang]/[...pricing].astro localized
  • src/config/nav.config.ts route and menu
  • src/i18n/translations/en.ts page copy

Change the whole look in one CSS file.

Primitives feed semantic tokens, semantic tokens feed components, all in OKLCH.

Primitive
Semantic --accent
Component

Add a language by listing it.

Translated slugs, hreflang alternates, a localized sitemap, per-language search and social images.

// src/i18n/locales.mjs
locales = ['en', 'es', 'fr'];

About us

/about x-default

Forms that actually submit.

Astro Actions with Zod validation on the server, field errors on the client, and a honeypot for bots.

Enter a valid email address

Search with no server or API key.

Pagefind indexes your pages at build time. Browsers fetch only the chunks they need.

2 results

  • Velocity 2.0: Rebuilt for Astro 7

    Strict content security policy by default.

  • Secure by default

    A hash-based content security policy from the first commit.

Strict CSP and consent, built in.

Hash-based CSP with no unsafe-inline, plus a consent banner with Google Consent Mode v2.

Necessary Required
Analytics
Marketing

script-src 'self' 'sha256-4f2a…'

Metadata and a social image on every page.

Automatic tags and structured data, plus a generated Open Graph image for each page and locale.

  • Meta tags
  • JSON-LD
  • Sitemap
  • RSS
  • Canonical URLs
  • OG images
  • hreflang

Velocity

Velocity 2.0: Rebuilt for Astro 7

deployvelocity.com/blog/velocity-2

How it ships

Zero to deployed in one command.

  1. Create

    Choose demo or minimal, your languages, all components or none. Eight project shapes, each built in CI.

  2. Build

    Rust compiler, Vite 8, hash-based CSP and a Pagefind index. Vitest and Playwright run against the real production server.

  3. Deploy

    Every page stays static. Only the form actions run on demand. The adapter is picked for Vercel, Netlify, Cloudflare or any Node host.

zsh: my-site
npm create velocity-astro@latest
Project name my-site
Template Demo
Languages en, es, fr
Components All 70
Scaffolded my-site
pnpm build
70 components compiled Rust compiler
CSP hashes written script-src 'self'
Search index built Pagefind, 3 locales
Adapter detected vercel
Done in 6.3 s ~3 KB JS per page

Components

70 components. Zero JavaScript by default.

Browse the catalogue

From the blog

What’s new in Velocity.

Free forever · Open source · MIT

Start your Astro 7 project in one command.

Read the docs