Skip to content

Enhanced DevTools for KV, Blob, and Cache management #774

@onmax

Description

@onmax

Add DevTools extension for NuxtHub that adds KV, Blob, and Cache management directly in Nuxt DevTools.

Features

  • KV Storage - View, create, edit, delete keys with JSON support
  • Blob Storage - File browser with folder navigation, upload, preview
  • Cache - Inspect Nitro cache entries grouped by handler type

Repository

I made a module to show how it could be implemented:

https://github.com/onmax/nuxthub-extended

Try it

Clone and test the playground:

git clone https://github.com/onmax/nuxthub-extended.git
cd nuxthub-extended
pnpm install
pnpm dev

Open http://localhost:3000 and press `Shift + Alt + D` for DevTools. Click "Seed Test Data" to populate sample data, then explore KV, Blob, and Cache tabs.

How it works

  • Module registers DevTools tabs conditionally based on hub.kv, hub.blob, hub.cache config
  • Provides API endpoints under /_hub-extended/* for CRUD operations
  • UI built with @nuxt/ui and served via iframe in DevTools

Benefits

  • Inline storage management without leaving the dev environment
  • Visual debugging for KV/Blob/Cache operations
  • Faster development workflow

Related: nuxt-modules/better-auth#67

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions