astro-db
Also covers integration with Astro Actions for end-to-end type-safe form-to-database flows. @astrojs/db is deprecated on npm (last release v0.21.3, June 2026) and listed as Removed in the official Astro v7 upgrade guide — for new projects this skill recommends Drizzle, Kysely, node:sqlite, or a direct libSQL client instead; existing Astro 6 projects must migrate off it before upgrading to Astro 7.
Astro DB
Type-safe SQL database built into Astro, powered by libSQL/Turso. Use for structured data without external backend services.
⚠️ Removal notice:
@astrojs/dbis deprecated on npm ("Use a database client (Drizzle, Kysely, etc.) directly instead"; last release v0.21.3) and the official Astro v7 upgrade guide lists it under "Removed" — remove it from dependencies when upgrading. Replacements: Node's built-innode:sqlite(Node adapter), Drizzle directly, Kysely, or a libSQL/Turso client. The content below documents the legacy Astro 6 API for maintaining/migrating existing projects.
Agent Workflow (MANDATORY)
Before ANY implementation, spawn 3 agents in parallel, one Agent call each with a name:
- fuse-ai-pilot:explore-codebase - Check existing db/config.ts, tables, and Actions
- fuse-ai-pilot:research-expert - Verify Astro DB API via Context7/Exa
- mcp__context7__query-docs - Check Astro 6 DB docs for column types and CRUD