Back to Skills

nuxthub

Use when building NuxtHub v0.10.6 applications - provides database (Drizzle ORM with sqlite/postgresql/mysql), KV storage, blob storage, and cache APIs. Covers configuration, schema definition, migrations, multi-cloud deployment (Cloudflare, Vercel), and the new hub:db, hub:kv, hub:blob virtual module imports.

696stars35forksUpdated 8/4/2026

Security Assessment

Safe(95/100)
Security Score95/100

About nuxthub

NuxtHub is a Claude Code reference skill for building full-stack Nuxt applications on NuxtHub v0.10.6, covering its database, KV storage, blob storage, and cache APIs. It solves the problem of writing correct, version-accurate NuxtHub code by giving Claude a focused, up-to-date reference for configuration, schema definition, migrations, multi-cloud deployment, and the newer hub:db, hub:kv, and hub:blob virtual-module imports rather than relying on possibly stale general knowledge.

The skill documents type-safe SQL via Drizzle ORM with SQLite, PostgreSQL, and MySQL dialects, including schema examples, CRUD patterns, and a full migrations CLI (generate, migrate, raw SQL, drop, drop-all, squash, mark-as-migrated) that auto-applies during dev and build. It covers KV storage with TTL and size constraints, blob storage with upload/download/list/serve helpers and validation, and cache APIs. It maps each dialect and provider to its local and production backends and required environment variables (D1, Turso, Neon, postgres-js, mysql2, Upstash, Redis, Cloudflare KV, Vercel, Deno), and configuration options including remote mode for using production bindings in development and v0.10.6 read-replica support. Two reference files cover wrangler.jsonc templates for Cloudflare and provider setup for Vercel, Netlify, Deno, and AWS, and the skill instructs loading only the reference relevant to the current task.

It targets Nuxt and full-stack developers deploying to Cloudflare, Vercel, and other platforms who want accurate NuxtHub data-layer and deployment guidance. It is a documentation and code-pattern reference: credential guidance is limited to naming standard environment variables for each provider.

FAQ

Which NuxtHub version and databases does it cover?

It targets NuxtHub v0.10.6 and documents Drizzle ORM with SQLite, PostgreSQL, and MySQL dialects, including schema examples, CRUD patterns, and provider mappings for local versus production backends.

What deployment targets are supported?

It covers multi-cloud deployment to Cloudflare, Vercel, Deno, and Netlify, with reference files for wrangler.jsonc templates (Cloudflare) and provider setup for Vercel, Netlify, Deno, and AWS.

How do migrations work?

It documents a full CLI: generate migrations from schema, migrate, run raw SQL, drop a table, drop-all, squash, and mark-as-migrated. Migrations auto-apply during nuxi dev and build and are tracked in a _hub_migrations table.

What is remote mode?

Remote mode (v0.10+) connects to production Cloudflare D1, KV, and R2 bindings during local development instead of local emulation, which is useful for testing against production data.

How should the reference files be loaded?

The skill advises loading only the reference relevant to the current task rather than all files at once: the wrangler-templates reference when configuring Cloudflare, and the providers reference when deploying to Vercel, Netlify, Deno, AWS, or configuring external database/storage providers.

All Files

3 files
SKILL.md13.1 KB
View
references/wrangler-templates.md4.4 KB
View
references/providers.md5.7 KB
View

Install nuxthub

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill