This skill streamlines the setup and management of SQLite databases within modern web stacks, specifically targeting the better-t-stack architecture. It provides comprehensive guidance on using the LibSQL client with Drizzle ORM to ensure full compatibility across Node.js and Bun runtimes, effectively preventing common environment-specific errors in Next.js. By offering standardized patterns for schema design, migrations, and relational CRUD operations, this skill enables developers to build high-performance, type-safe data layers that transition seamlessly from local development to production on platforms like Turso and Cloudflare Workers.
主な機能
019 GitHub stars
02Best-practice patterns for transactions, timestamps, and ID generation
03Standardized migration workflows using Drizzle Kit
04Multi-platform support for Local SQLite, Turso Cloud, and Cloudflare D1
05Node.js and Bun runtime compatibility using @libsql/client
06Type-safe schema definitions and queries with Drizzle ORM
ユースケース
01Building serverless applications with Cloudflare Workers and D1
02Rapid prototyping with local SQLite files and type-safe migrations
03Scaling distributed SQLite databases globally using Turso