ViteHub

Getting started

Set up your first ViteHub package and continue with the KV quickstart.

ViteHub currently ships @vitehub/kv, @vitehub/db, @vitehub/blob, and server-side queueing through @vitehub/queue.

@vitehub/blob and @vitehub/queue both support Vite and Nitro.

This page gives you the first framework-specific setup step, then points you to the package docs where the full examples live.

Start with KV

Install the package:

pnpm add @vitehub/kv

Then register the Nitro module:

nitro.config.ts
import { defineNitroConfig } from 'nitro/config'

export default defineNitroConfig({
  modules: ['@vitehub/kv/nitro'],
})

After that, continue with the KV quickstart.

Compare primitives
Choose between KV, Blob, Queue, Sandbox, inline work, and a database.
DB overview
Use a default Drizzle database and optional named databases from Vite server code.
KV overview
Understand what the KV package provides and how it resolves drivers.
KV quickstart
Read, write, and delete a first key locally.
Cloudflare provider
Configure the Cloudflare KV path.
Vercel provider
Configure the Upstash-backed Vercel path.

::

Blob overview
Understand Blob driver resolution and the shared runtime surface.
Blob quickstart
Read and write a first blob locally.
Blob on Cloudflare
Configure Blob storage against a Cloudflare R2 binding.
Blob on Vercel
Configure Blob storage against Vercel Blob.
Queue overview
Discover background job routing for Vite and Nitro.
Queue quickstart
Register Queue and enqueue a first job.
Queue on Cloudflare
Configure Cloudflare queue bindings and batch processing.
Queue on Vercel
Configure Vercel topics and hosted callbacks.
Copyright © 2026