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 Vite plugin:

vite.config.ts
import { defineConfig } from 'vite'
import { hubKv } from '@vitehub/kv/vite'

export default defineConfig({
  plugins: [hubKv()],
})

After that, continue with the KV quickstart. Use the Nitro or Nuxt path when you need runtime reads and writes.

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.
DB overview
Configure a default Drizzle database and optional named databases.
DB runtime API
Review the config contract, runtime exports, and hosted-output rules.
DB on Cloudflare
Configure D1 bindings and generated Wrangler metadata.
DB on Vercel
Configure hosted libSQL URLs and understand the D1-only limitation.
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