# Import paths

Stable import paths are the ViteHub imports your app may use. Behind them can be registries, generated files, virtual modules, or package code. Do not depend on what is behind them.

## Canonical application imports

Applications that install `vite-hub` use the root only for framework
composition and explicit feature subpaths for application APIs.
Each feature subpath, such as `vite-hub/agent`, re-exports the matching owner
path, such as `@vite-hub/agent`, unchanged. Both paths give the same values and
the same behavior.

| Import path | Use |
| --- | --- |
| `vite-hub` | `vitehub()`, the framework Vite plugin. |
| `vite-hub` | `detectHost()`: the host `vitehub()` detects when `host` is omitted. Use it for host-specific config. |
| `vite-hub/seo` | `defineSitemap()` for the pages of `server/sitemap.ts`. See [Sitemap and robots.txt](https://vitehub.dev/docs/frameworks-hosts/sitemap). |
| `vite-hub/skills` | Define and serve [Agent Skills](https://vitehub.dev/docs/console/skills) through HTTP discovery and MCP. |
| `vite-hub/agent/vite` | Process Agent host and generated health and Workspace routes for Vite. |
| `vite-hub/agent` | Agent Definition, invocation, trigger, and Agent Invoker APIs. |
| `vite-hub/agent/capabilities` | Official Capability factories. |
| `vite-hub/agent/eval` | Agent Eval helpers. Install Evalite and the test runner yourself. |
| `vite-hub/agent/observability` | `useObservability()` for the instance configured by `vitehub({ observability })`. |
| `vite-hub/logs` | The LogSource contract and `createLogBuffer()`. Import the Evlog logger API from `evlog`. |
| `vite-hub/logs/source` | Server-side LogSource contract, query validation, and cursor errors without Evlog. |
| `vite-hub/logs/memory` | Bounded local buffer for an existing redacted drain. Runs without Evlog, but its types need `evlog`. |
| `vite-hub/logs/host` | Install and resolve a project's LogSource in the process-wide registry, without Evlog. |
| `vite-hub/logs/client` | `reportBrowserError()`: send an error that the page caught, or a warning, to the server logs. Needs `observability.browserErrors`. |
| `vite-hub/agent/cloudflare` | Cloudflare Agent state helpers. |
| `vite-hub/agent/vue` | Vue Agent client handle and AI SDK chat composable. `useChat(agent, { page })` connects the page's ui-sdk bridge. |
| `vite-hub/agent/page` | [`connectPage()`](https://vitehub.dev/docs/agents/capabilities/page): lets an Agent with `page()` work this page through ui-sdk's agent bridge, in any framework. |
| `vite-hub/agent/ui` | The contract for [UI that an Agent sends](https://vitehub.dev/docs/agents/ui): the json-render catalog of layout and display parts, `validateSpec()`, `catalogPrompt()`, and `checkSpecForm()` for a Form of `@vite-hub/forms`. Needs `zod`, `@json-render/core`, and `@json-render/vue`. |
| `vite-hub/agent/ui/vue` | Default Vue components and `defineCatalogRegistry()` to render an Agent UI spec with `@json-render/vue`. |
| `vite-hub/agent/server` | Manual server integration. |
| `vite-hub/agent/state` | SQLite and libSQL-compatible durable Agent state. |
| `vite-hub/agent/process` | Long-running Node process hosts: preset process hosts, the self-hosted process host, and adaptive process capacity. |
| `vite-hub/choices` | [`defineChoices()`](https://vitehub.dev/docs/choices/server-api): text becomes choices over options that you declare. Re-exports `@vite-hub/choices`. |
| `vite-hub/choices/vue` | [`useChoices()`](https://vitehub.dev/docs/choices/client): Vue selection state, optional debounce, and cancellation for a resolver you provide. Re-exports `@vite-hub/choices/vue`; auto-imported in Nuxt. |
| `vite-hub/choices/testing` | [`selectionGateway()` and `wordGateway()`](https://vitehub.dev/docs/choices/server-api#test-without-a-model): gateways that answer without a model, for tests and examples. Re-exports `@vite-hub/choices/testing`. |
| `vite-hub/device` | [`openDevice()`, `setDeviceAccount()`, `clearDevice()`, and `inspectDevice()`](https://vitehub.dev/docs/device/browser-api): the stored copies of server answers in the browser, for one account. Re-exports `@vite-hub/device`. |
| `vite-hub/device/vue` | [`useStoredData()`](https://vitehub.dev/docs/device/browser-api#usestoreddata) and [`useStoredFetch()`](https://vitehub.dev/docs/device/browser-api#usestoredfetch): the last answer at once from the device, then a fresh one. Re-exports `@vite-hub/device/vue`. |
| `vite-hub/forms` | `defineForm()` for `server/forms/<name>.ts`: a form that visitors send to the site owner. `formFields()`, `toElicitation()`, and `toChatModal()` draw the same schema as an MCP elicitation or a Slack or Teams modal, and `checkForm()` checks the answers. Re-exports `@vite-hub/forms`. |
| `vite-hub/forms/client` | `submitForm()`: posts the values of a form to its route and returns the issue of each field. `fieldErrors()` gives them by field name. Re-exports `@vite-hub/forms/client`. |
| `vite-hub/forms/database` | The `vitehub_form_submissions` table and `createDrizzleFormsStore()`. Re-exports `@vite-hub/forms/database`. |
| `vite-hub/forms/formisch` | `useFormSubmit()` for a Formisch form. Needs `@formisch/vue`. Re-exports `@vite-hub/forms/formisch`; `useFormSubmit()` is auto-imported in Nuxt when `@formisch/vue` is installed. |
| `vite-hub/forms/operations` | The `forms.list`, `forms.get`, and `forms.mark` operations of the Console, `vitehub forms`, and MCP. Re-exports `@vite-hub/forms/operations`. |
| `vite-hub/forms/runtime` | `installedForms()`: the inbox of the running app, for server code. Re-exports `@vite-hub/forms/runtime`. |
| `vite-hub/forms/vue` | `AutoForm`, a whole form from a Valibot object schema, and `useFormAction()` for a native `<form>`. Needs only `vue`. Re-exports `@vite-hub/forms/vue`; `useFormAction()` is auto-imported in Nuxt. |
| `vite-hub/i18n` | [`t`, `plural`, `select`, `selectOrdinal`, `msg`](https://vitehub.dev/docs/i18n/server-api), `getLocale()`, `getLocales()`, `setLocale()`, and `translate()`. Messages in the source language, compiled to IDs by the build. Re-exports `@vite-hub/i18n`. |
| `vite-hub/i18n/vue` | [`createI18n()`](https://vitehub.dev/docs/i18n/configure#add-i18n-to-a-vue-app) and `useLocale()` for Vue apps. Re-exports `@vite-hub/i18n/vue`; `vite-hub/nuxt` installs the plugin and auto-imports `useLocale()`. |
| `vite-hub/i18n/runtime` and `vite-hub/i18n/server` | The i18n runtime and the Nitro request scope that the generated i18n code imports. Apps do not import them. |
| `vite-hub/gateways` | [AI Gateways](https://vitehub.dev/docs/gateways): routes for Codex and Claude Code model requests, and `ask()` for TypeSafe Jev questions. Re-exports `@vite-hub/gateways`. |
| `vite-hub/gateways/ai-sdk` | [`languageModel()`](https://vitehub.dev/docs/gateways/server-api#use-a-model-with-the-ai-sdk): an AI SDK model that sends requests through a gateway. Re-exports `@vite-hub/gateways/ai-sdk`. |
| `vite-hub/gateways/testing` | [`scriptedAsk()` and `answers`](https://vitehub.dev/docs/gateways/server-api#test-without-a-key): a gateway whose `ask()` answers from your script, for tests. Re-exports `@vite-hub/gateways/testing`. |
| `vite-hub/presets/babysitter` | Composable [Babysitter](https://vitehub.dev/docs/presets/babysitter) repair-loop preset. |
| `vite-hub/presets/babysitter/server` | Babysitter host runtime integration. |
| `vite-hub/presets/labeller` | [Gmail labelling preset](https://vitehub.dev/docs/presets/labeller) with ordered rules, Jev fallback, and allowlisted message actions. |
| `vite-hub/presets/workspace` | Opt-in [workspace source-provenance citation preset](https://vitehub.dev/docs/presets/workspace). |
| `vite-hub/agent/invocations` | Durable Agent Invocation stores: Cloudflare D1 with its schema statements, and libSQL-compatible SQLite. |
| `vite-hub/agent/invocations/database` | Agent Invocation Journal backed by a ViteHub Database: SQLite, libSQL, D1, or Postgres. |
| `vite-hub/agent/invocations/drizzle` | `getAgentInvocationsDatabase()`: Drizzle over the default Agent Invocation journal. Needs `drizzle-orm`. |
| `vite-hub/agent/invocations/postgres` | `postgresAgentInvocationTables()`: the Drizzle tables of the Agent Invocation Journal on a Postgres Database. Needs `drizzle-orm`. |
| `vite-hub/agent/mcp` | MCP Server configuration helpers. |
| `vite-hub/console` | Route metadata for the local read-only invocation console. |
| `vite-hub/console/auth` | `defineConsoleAuthorize()` for `console.authorize`, and its context types. |
| `vite-hub/console/server` | Local Console invocation journal for servers. |
| `vite-hub/console/ui` | Agent Invocation views from the Console: `AgentInvocation`, `AgentInvocationList`, and `AgentCapabilityInspector`. Install `@vite-hub/ui @json-render/core @json-render/vue @vueuse/core` first. |
| `vite-hub/content`, `vite-hub/content/client`, `vite-hub/content/database`, `vite-hub/content/editor`, and `vite-hub/content/realtime` | Comark Content definition and every field helper (`image()`, `file()`, `seo()`, `optional()`), Source adaptation, generated runtime handler, typed client, editor codecs, realtime collaboration, and the sessions table schema. |
| `vite-hub/content/collections` | Editable document collections (`documents()`, `singleton()`). Needs `@vite-hub/workspace`. |
| `vite-hub/content/markdown` | Markdown negotiation middleware and Markdown 404 helpers. Pass a Content runtime or a loader that defers Content until a Markdown request or an HTML page. |
| `vite-hub/content/preview` | The Content preview API and `defineContentPreviewPlugin()`. Pass a runtime or a loader. A loader defers Content until the first preview request. |
| `vite-hub/content/sqlite` | In-memory SQLite database for full-text search on Node and Cloudflare Workers. |
| `vite-hub/cms` | The `cms` preset that stores document collections on a contributed Workspace. |
| `vite-hub/cms/access` | The CMS roles for the Better Auth `admin` plugin, `admin(cmsAccess)`, and the policies from those roles: `cmsCan()`, `cmsContentAuthorize`, `cmsCommentsAuthorize`, and `cmsConsoleAuthorize`. |
| `vite-hub/cms/vite` | `hubCms()`, the Vite plugin that adds the `cms` preset's Workspace, its tables, and a Database when the app has none. `vitehub()` registers it. |
| `vite-hub/docs/nuxt` | The Nuxt module of a [docs site](https://vitehub.dev/docs/docs-site): pages from a Markdown folder, the docs shell and theme, search, and agent resources. Re-exports `@vite-hub/docs/nuxt`. |
| `vite-hub/docs` | Docs site frontmatter schema, manifest types, and navigation helpers. Re-exports `@vite-hub/docs`. |
| `vite-hub/docs/assistant` | `docsAssistant`, the Agent preset that answers reader questions from the docs, and `docsRateLimit()`. Re-exports `@vite-hub/docs/assistant`. |
| `vite-hub/docs/server` | `createDocsManifest()`, the Markdown parser, and `toRawMarkdown()`, for tools and tests that read a content folder without Nuxt. Re-exports `@vite-hub/docs/server`. |
| `vite-hub/auth` and `vite-hub/auth/server` | Auth Definitions and server runtime helpers. |
| `vite-hub/auth/abilities` | [`defineAbilities()`, `guest()`, and `deny()`](https://vitehub.dev/docs/auth/abilities) for permission rules shared by server and app. |
| `vite-hub/auth/mcp` | OAuth sign-in, discovery, request checks, and unused-client cleanup for an app's MCP server. Needs `@better-auth/oauth-provider`. |
| `vite-hub/auth/forward` | [`forwardAuth()`](https://vitehub.dev/docs/auth/configure#sign-in-through-a-trusted-proxy) signs people in from a trusted reverse proxy's identity header. |
| `vite-hub/auth/database` | `authDatabase()` connects Better Auth to an app Database and adds its tables to generated migrations. |
| `vite-hub/auth/schema` | `authSqliteSchema` and `authPostgresSchema`, the Better Auth tables for SQLite and Postgres. |
| `vite-hub/auth/presets` | Auth presets, such as `stateless()` for sessions without a database. |
| `vite-hub/auth/agent` | Better Auth session mapping into Agent Invokers. |
| `vite-hub/auth/vue` | Better Auth Vue client, normalized session composables, `useAbility()`, and the `AuthPermission` component. |
| `vite-hub/blob` | Blob Runtime Helpers, Blob Store access, `ensureBlob()`, `detectContentType()`, and the `image()` and `file()` Blob reference schemas. |
| `vite-hub/blob/client` | Framework-neutral browser upload helpers: `uploadFiles()`, `createMultipartUploader()`, and `detectContentType()`. |
| `vite-hub/blob/media` | Browser-safe media helpers: `responsiveImage()`, `imageVariantUrl()`, `parseImageVariant()`, and `probeImage()`. |
| `vite-hub/blob/nuxt-image` | The `@nuxt/image` provider for served Blob media. `vite-hub/nuxt` registers it as `vitehub`. |
| `vite-hub/blob/vue` | Vue upload composables: `useUpload()` and `useMultipartUpload()`. |
| `vite-hub/browser` | Browser Definitions, invocation-scoped Playwright sessions, named Browser runs, and Browser Run actions (`runBrowserAction()`, `runBrowserContent()`). |
| `vite-hub/web-container` | Boot and mount a [WebContainer](https://vitehub.dev/docs/web-container) in the browser, run app commands, read preview readiness and status, and export snapshots. Re-exports `@vite-hub/web-container`. |
| `vite-hub/web-container/env` | `isWebContainer()`: detect code that runs inside a WebContainer. Re-exports `@vite-hub/web-container/env`. |
| `vite-hub/web-container/snapshot` | Install `node_modules` at build time and pack it as a snapshot. Node only. Re-exports `@vite-hub/web-container/snapshot`. |
| `vite-hub/web-container/connect` | Static connection-provider metadata and credential-to-process environment mapping with [`defineConnect()` and `connectEnv()`](https://vitehub.dev/docs/web-container/configure#describe-connectable-accounts). Re-exports `@vite-hub/web-container/connect`. |
| `vite-hub/browser/controllers/cdp` and `vite-hub/browser/controllers/playwright` | Advanced raw CDP and Playwright Browser Session controllers. |
| `vite-hub/browser/providers/cloudflare` and `vite-hub/browser/providers/local` | Advanced explicit provider selection for low-level Browser Clients. |
| `vite-hub/bundle` | Read the [bundle report](https://vitehub.dev/docs/bundle) of the last build: `readBundleReport()` and `explainBundleTarget()`. Re-exports `@vite-hub/bundle`. |
| `vite-hub/cache` | Nitro's `defineCachedFunction()` and `defineCachedHandler()` with `tags`, `defineCachedFunction()` with `staleIfError`, and `invalidateTag()`. See [Cache server results](https://vitehub.dev/docs/guides/cache-server-results). `invalidateTag()` is auto-imported in Nuxt when `cache` and `experimental.nitroAutoImports` are on. |
| `vite-hub/channels` | `defineChannel()`, `defineChannelTrigger()`, `ignored()`, `retryLater()`, `rejected()`, `useChannel()`, and `sendChannelTrigger()`. Needs no `@vite-hub/agent`. |
| `vite-hub/channels/server` | `useChannel()` for named sends and `sendChannelTrigger()` for outgoing triggers. |
| `vite-hub/channels/adapters` | Every Channel adapter: `webhook()`, `stripe()`, `slack()`, `teams()`, `discord()`, `telegram()`, `github()`, `gitlab()`, `forgejo()`, `gmail()`, `webChat()`, and `channelAdapter()`. Needs `@vite-hub/agent`, which serves their webhook route. |
| `vite-hub/comments` | `defineComments()` for `server/comments.ts`, as the `comments` export or the default export. One definition runs the overlay, Comments API, presence, MCP, and [comment operations](https://vitehub.dev/docs/comments/operations/get-started). |
| `vite-hub/comments/anchor`, `vite-hub/comments/database`, and `vite-hub/comments/runtime` | Browser pin anchors, the Comments tables, and the API handler and Nitro plugin that generated output imports. |
| `vite-hub/comments/client`, `vite-hub/comments/rpc`, `vite-hub/comments/server`, and `vite-hub/comments/database/postgres` | The operations browser client and anchors, RPC transport, server runtime, and Postgres tables. |
| `vite-hub/comments/testing` | `createMemoryTransport()`: comments in memory, for tests and examples. |
| `vite-hub/page/pill.js` | The page pill of ViteHub's page tools as a classic browser script that declares `ViteHubPagePill`, for a page script of your own to paste in as text, for example with a Vite `?raw` import. It has no module exports. |
| `vite-hub/connections`, `vite-hub/connections/google`, and `vite-hub/connections/server` | Connection Definitions and `createConnectionsHandler()` (the management and OAuth routes that `connections.management` mounts), the Google preset with typed Gmail Operations, and runtime access. |
| `vite-hub/connections/chatgpt` | The `chatgpt()` Connection provider for signing in with a ChatGPT plan. |
| `vite-hub/connections/operations` | The `connections.list`, `connections.connect`, and `connections.revoke` operations of the Console and MCP. Re-exports `@vite-hub/connections/operations`. |
| `vite-hub/sandbox` | Sandbox Definitions and built-in runtime selection for trusted-host, Crabbox, Cloudflare Sandbox, and Vercel Sandbox execution. |
| `vite-hub/sandbox/ssh` | `sshLaunch` for provider Driver launch callbacks and `serveSsh` for a trusted SSH runner. |
| `vite-hub/database` | Database Definitions and generated `useDatabase()` access. |
| `vite-hub/env` | Env Declaration helpers, presets, `defineEnvProvider()`, purpose-bound `seal()` and `unseal()`, `parseSchema()`, `SecretEnv`, and generated Env access (`useServerEnv()`, `usePublicEnv()`, `loadServerEnv()`, `deriveSecret()`). |
| `vite-hub/env/server` | Resolve, load, describe, or inspect an explicit Server Env registry. |
| `vite-hub/env/bridge` | Runtime credential replacement, scoped grants, durable activity, the authentication adapter `createEnvAuthenticator()`, and the management handler `createEnvBridgeHandler()`. |
| `vite-hub/env/database` | Encrypted Env Bridge storage on ViteHub SQLite/Drizzle databases. A separate entry because it loads the optional `drizzle-orm` peer. |
| `vite-hub/email` and `vite-hub/email/markdown` | Email clients, configured runtime delivery, and Dynamic Markdown HTML with a composed Markdown text fallback. |
| `vite-hub/email/vue` | `<EmailSubject>`, which sets the subject of a Vue Email template. |
| `vite-hub/email/test` | `createTestEmail()`: in-memory message capture for tests. |
| `vite-hub/env/seal` | AES-GCM `sealWithKey`, `unsealWithKey`, `importSealKey`, and `sealKeyId` in the Env Bridge database store format. To seal an app value with `VITEHUB_SECRET`, use `seal` and `unseal` from `vite-hub/env`. |
| `vite-hub/env/vite` | `envSchema()`, which reads Env Declarations from a committed `.env.example`, for `vite.config.ts` and `nuxt.config.ts`. Re-exports `@vite-hub/env/vite`. |
| `vite-hub/forge` | [Forge](https://vitehub.dev/docs/forge): `useForge()` for GitHub App installation tokens and GitHub, GitLab, and Forgejo clients. Needs `@vite-hub/forge`. |
| `vite-hub/kv` | KV Runtime Helper. |
| `vite-hub/markdown-template` | Portable Markdown rendering from template strings. See [Markdown templates](https://vitehub.dev/docs/markdown-template). |
| `vite-hub/markdown-template/file` | Filesystem Markdown rendering from explicit file paths or `file:` URLs. |
| `vite-hub/mcp` | `defineMcpTool()`, `defineMcpPrompt()`, and `defineMcpResource()` for the tools, prompts, and resources of the app's MCP server in `server/mcp/tools/`, `server/mcp/prompts/`, and `server/mcp/resources/`, and `defineMcpHooks()` for `server/mcp.ts`. Requires `@vite-hub/mcp`. See [MCP server](https://vitehub.dev/docs/mcp). |
| `vite-hub/mcp/eval` | `runMcpEval()` to score a model's tool use against a remote MCP server. Requires `@vite-hub/mcp`, `@ai-sdk/mcp`, and `ai`. See [MCP tool-use evals](https://vitehub.dev/docs/mcp/evals). |
| `vite-hub/operations` | `defineOperation()` and its types. See [Operations](https://vitehub.dev/docs/console/operations). |
| `vite-hub/queue` | Queue Definitions and dispatch helpers. |
| `vite-hub/rate-limit` | Rate Limit handles declared in your source, and direct Rate Limiters. |
| `vite-hub/rate-limit/drivers/memory` | `memoryRateLimitDriver()`: fixed windows in one process, for local runs and tests. |
| `vite-hub/rate-limit/drivers/kv` | `kvRateLimitDriver()`: counts in a KV store with an atomic `increment`, shared by every process that uses the store. |
| `vite-hub/rate-limit/drivers/cloudflare` | `cloudflareRateLimitDriver()`: direct access to a Cloudflare Rate Limiting binding. |
| `vite-hub/realtime`, `vite-hub/realtime/server`, and `vite-hub/realtime/vue` | Realtime Definitions, manual server integration, and Vue collaborative editing, saved through [Realtime document adapters](https://vitehub.dev/docs/realtime/server-api#custom-document-adapters). |
| `vite-hub/realtime/bus` | Node room fanout through Postgres or Redis, bus selection, and shutdown hooks for manual server integration. |
| `vite-hub/realtime/client` | `connectRealtimeRoom()`: presence in one room without an editor or Vue. |
| `vite-hub/realtime/agent` | `agentRealtime`, the Realtime handle that ViteHub passes to the Agent [`page()`](https://vitehub.dev/docs/agents/capabilities/page) Capability. Apps do not import it. |
| `vite-hub/runtime` | `getHostBinding()` for raw host bindings, `detectHost()` for host-specific config, Runtime Host Context, `getRuntimeContext()` and `getStandardContext()` for a Fetchable `Request`, policy, approval, trace, and capability APIs. See [Runtime](https://vitehub.dev/docs/runtime). |
| `vite-hub/runtime/durability` | `getDurabilityReport()` and the `Durability` type: where each primitive of a Node server keeps its state. See [Durability and instances](https://vitehub.dev/docs/frameworks-hosts/node-self-hosted#durability-and-instances). |
| `vite-hub/sandbox/task` | Sandbox Task Definitions and `runSandboxTask()`. |
| `vite-hub/schedule` | Static Schedule Definitions and `runSchedule()`. |
| `vite-hub/schedule/os` | `installOsSchedule()`, `osScheduleStatus()`, and `uninstallOsSchedule()`: run a Schedule from a systemd, launchd, or Task Scheduler timer. See [OS timers](https://vitehub.dev/docs/schedule/os-timers). |
| `vite-hub/schedule/runtime` | Schedule Run stores and custom runtime wiring. |
| `vite-hub/schedule/runtime/process` | Process Runtime that runs Static Schedules in a long-lived Node process. |
| `vite-hub/schedule/runtime/kv` | ViteHub KV storage adapter for Schedule Runs. |
| `vite-hub/shell` | Shell runtime and command analysis APIs. |
| `vite-hub/shell/providers/just-bash` | Just Bash Shell driver. |
| `vite-hub/shell/workspace` | Workspace-backed Shell execution helpers. |
| `vite-hub/test` | `setupViteHubTest()` for app tests: local backends for KV, Blob, Database, Queue, Email, Rate Limit, and Auth, Server Env values, signed-in users, and Channel deliveries. See [Testing](https://vitehub.dev/docs/development/testing). |
| `vite-hub/test/register` | `node --import vite-hub/test/register --test` runs app tests with Node's test runner. See [Testing](https://vitehub.dev/docs/development/testing). |
| `vite-hub/source` | Runtime-neutral Source Definitions, custom loaders, registry APIs, Collections (`defineCollection`, `array`), and the built-in loaders `file()`, `files()`, `glob()`, `markdown()`, and `github()`. `files()` is the Source that `glob()` becomes in a server build. |
| `vite-hub/source/drizzle` | `table()`, a Collection over a Drizzle table. Needs `drizzle-orm`. |
| `vite-hub/source/client` and `vite-hub/source/server` | Vue Collection pagination and the H3 Collection route adapter. |
| `vite-hub/source/mcp` | MCP Resources implementation. Needs `@modelcontextprotocol/sdk`. |
| `vite-hub/source/vite` | Source discovery, generated artifacts, and Nitro route integration for custom Vite plugin composition. |
| `vite-hub/sync` | `defineSync()` for `server/sync/<name>.ts`: a table that the browser keeps a local copy of, `syncRoute()`, and the wire types. Re-exports `@vite-hub/sync`. |
| `vite-hub/sync/client` | `createSync()`: the local copy of a Sync table, with writes queued in IndexedDB. Re-exports `@vite-hub/sync/client`. |
| `vite-hub/sync/database` | The `vitehub_sync_changes`, `vitehub_sync_columns`, `vitehub_sync_mutations`, and `vitehub_sync_state` tables as `syncSchema` and `syncTables`. Re-exports `@vite-hub/sync/database`. |
| `vite-hub/sync/operations` | The `sync.list` and `sync.changes` operations of `vitehub sync` and MCP. Re-exports `@vite-hub/sync/operations`. |
| `vite-hub/sync/runtime` | `createSyncHandler()`, which the generated Sync route calls, and `installedSync()`. Apps do not import it. Re-exports `@vite-hub/sync/runtime`. |
| `vite-hub/sync/vue` | `useSync()`: the reactive rows and writes of a Sync table. Re-exports `@vite-hub/sync/vue`; auto-imported in Nuxt. |
| `vite-hub/ui`, `vite-hub/ui/headless`, and `vite-hub/ui/styles.css` | Every AI interface component, headless message scrolling, and default styles. |
| `vite-hub/ui/markdown-editor` | `MarkdownEditor` with uploads to Blob. Kept out of the root import, so it loads Tiptap only where you use it. |
| `vite-hub/ui/workspace` | The workspace parts, `Workspace`, and the `webContainer()` and `render()` runners, outside the root so a chat page never loads CodeMirror or xterm. |
| `vite-hub/ui/motion` | The motion layer without Vue: `installMotion()` for a page or a shadow root, the spring engine, reduced motion, and `defineMotionEffect()`. |
| `vite-hub/ui/motion/core` | The same motion layer, where `installMotion(root, { effects })` runs only the effects that you list, such as `pressEffect`, so a small script bundles only those. |
| `vite-hub/ui/playground` | Share links and zips for a playground, with no UI. They run in Node too. |
| `vite-hub/ui/theme` and `vite-hub/ui/theme.css` | `vitehubTheme`, the Nuxt UI app config, and the design tokens and focus ring. |
| `vite-hub/ui/vite` | Register the canonical UI package for Vue with Vite. In Nuxt, `vite-hub/nuxt` adds the UI runtime. |
| `vite-hub/tsconfig` | TypeScript config that includes ViteHub's generated declaration entry without taking ownership of application source includes. |
| `vite-hub/webhooks` | `defineWebhook()` for `server/webhooks/<name>.ts` and `sendWebhook()`: send events to a URL outside the app, signed, retried, and debounced. Needs `queue` and `database`. Re-exports `@vite-hub/webhooks`. |
| `vite-hub/webhooks/database` | The `vitehub_webhook_deliveries` table and `createDrizzleWebhookStore()`. Re-exports `@vite-hub/webhooks/database`. |
| `vite-hub/webhooks/operations` | The `webhooks.*` operations of the Console, `vitehub webhooks`, and MCP: list, deliveries, pending, get, test, flush, cancel, and redeliver. Re-exports `@vite-hub/webhooks/operations`. |
| `vite-hub/webhooks/runtime` | List, flush, cancel, and redeliver webhook deliveries from server code. Re-exports `@vite-hub/webhooks/runtime`. |
| `vite-hub/workflow` | Workflow Definitions and run helpers. |
| `vite-hub/workflow/openworkflow` | `startOpenWorkflowWorker()` and `createOpenWorkflowWorker()` for a separate OpenWorkflow worker process. Node servers start a worker automatically. |
| `vite-hub/workspace` and `vite-hub/workspace/runtime` | Workspace Definitions, Sources, history contracts, runtime facades, and registry APIs. |
| `vite-hub/workspace/files` | `useWorkspaceFiles()` for file and history access without constructing Agent tools. |
| `vite-hub/workspace/checkout` | `vitehub pull` and `vitehub push` as functions, and `localCheckoutStatus()`, which `vitehub status` shows. Node only. |
| `vite-hub/workspace/lineage` | `derivedFrom` helpers: `lineageDigest()`, `readDerivedFrom()`, and `staleDerivedFiles()`. |
| `vite-hub/workspace/cloudflare` | Cloudflare Workspace runtime setup. |
| `vite-hub/workspace/blob-database` | Content-addressed Workspace history Store and Database schema. Requires `drizzle-orm`. |
| `vite-hub/workspace/blob-database/postgres` | Postgres Database schema of the Workspace history Store. Requires `drizzle-orm`. |
| `vite-hub/workspace/loader` and `vite-hub/workspace/server` | Workspace loader and manual server extension APIs. |

ViteHub adapters use `vite-hub/*` imports. You install their optional third-party providers and SDKs yourself. Provider Output, build plugins, and provider modules not listed here stay in their own packages.

## Owner-package imports

Each `vite-hub/<path>` above re-exports the owner path `@vite-hub/<path>`. Apps import the `vite-hub` path, and Doctor rule [`VHUB0036`](https://vitehub.dev/docs/reference/doctor-rules#vhub0036) reports an owner path in an app. You can install each owner package on its own, for libraries and integrations that do not use `vite-hub`. The overview of [UI](https://vitehub.dev/docs/ui/ai-components#use-without-vitehub), [Docs site](https://vitehub.dev/docs/docs-site#use-without-vitehub), [Comments](https://vitehub.dev/docs/comments#use-without-vitehub), and [WebContainer](https://vitehub.dev/docs/web-container#use-without-vitehub) shows that setup.

These paths have no `vite-hub` path:

| Import path | Owner | Use |
| --- | --- | --- |
| `@vite-hub/agent/observability/host` | Agent Package | `installObservability()` for hosts without `vitehub()`. |
| `@vite-hub/agent/observability/posthog` | Agent Package | Optional PostHog exporter. |
| `@vite-hub/agent/test` | Agent Package | Agent test runner helpers for local and CI Agent Invocation checks. |
| `@vite-hub/agent/test/emulate-models` | Agent Package | `emulateModels()`, which starts the AI emulator for one test so model Driver Agents run with no AI key. |
| `@vite-hub/docs/navigation` | Docs Package | The manifest types and navigation helpers. |
| `@vite-hub/docs/primitive-rail` | Docs Package | `PrimitiveRail`, the navigation rail for Server Primitives. |
| `@vite-hub/cli` | CLI Package | The `vitehub` command and its programmatic CLI entry. Use the `vite-hub` distribution for application integration. |
| `#vitehub/emails/<name>` | Email Package | Generated async renderer for a discovered `server/emails/**/*.md` or `server/emails/**/*.vue` template. It returns `{ subject?, html, text }`. |
| `#vitehub/env/public` | Env Package | Generated Public Env access for browser code. Server code imports `usePublicEnv()` from `vite-hub/env`. |
| `@vite-hub/ui/comment-marks.css` | UI Package | The comment pins and highlights as plain CSS, for a page that reads the file as text with `?raw`. |
| `@vite-hub/web-container/vue` | WebContainer Package | `useWebContainer()`, the Vue composable for the WebContainer lifecycle, files, commands, and preview. |
| `#vitehub/schedule/registry` | Schedule Package | Generated static schedule registry for host bridges. |

## Integration imports

| Import path | Use |
| --- | --- |
| `vite-hub` | The app import for `vitehub()`. |
| `vite-hub/nuxt` | The Nuxt module. It passes the Vite plugin config to Nitro. |
| `vite-hub/doctor` | ViteHub [Doctor rules](https://vitehub.dev/docs/reference/doctor-rules) for Vite Doctor. `vitehub()` and `vite-hub/nuxt` register it. |
| `@vite-hub/auth/vite` | The Auth Vite plugin. |
| `@vite-hub/blob/vite` | The Blob Vite plugin. |
| `@vite-hub/browser/vite` | Cloudflare Browser Run Provider Output. |
| `@vite-hub/channels/vite` | Channel discovery and generated runtime bindings. |
| `@vite-hub/comments/vite` | Discovers `server/comments.ts`, then registers the live-site API or Comment operations, its Database tables, and the Console section. |
| `@vite-hub/connections/vite` | Connection discovery and the generated runtime module. |
| `@vite-hub/content/vite` | The `vitehub content` commands, Content operations, and the Content inspector. |
| `@vite-hub/database/vite` | The Database Vite plugin. |
| `@vite-hub/email/vite` | Sets up one built-in Email provider and its runtime binding. |
| `@vite-hub/env/vite` | The Env Vite plugin and the `env()` declaration helper. |
| `@vite-hub/kv/vite` | The KV Vite plugin. |
| `@vite-hub/queue/vite` | The Queue Vite plugin. |
| `@vite-hub/rate-limit/vite` | Rate Limit source collection and Provider Output. |
| `@vite-hub/realtime/vite` | Realtime discovery and generated runtime wiring. |
| `@vite-hub/sandbox/task/vite` | The Sandbox Task Vite plugin. |
| `@vite-hub/schedule/vite` | The Schedule Vite plugin. |
| `@vite-hub/webhooks/vite` | Discovers `server/webhooks/`, contributes the `vitehub-webhooks` Queue and the deliveries table, and writes the webhook name types. |
| `@vite-hub/workflow/vite` | The Workflow Vite plugin. |
| `@vite-hub/workspace/vite` | The Workspace Vite plugin. |

## Generated and internal paths

| Path family | Status | Guidance |
| --- | --- | --- |
| `.vitehub/**` | Generated | Inspect in dev. Do not import these files. |
| `.vercel/output/**` | Generated Provider Output | Deploy or inspect as Vercel Build Output. |
| `.netlify/v1/**` | Generated Provider Output | Deploy or inspect as Netlify function output. |
| `dist/**/wrangler.json` | Generated Provider Output | Deploy or inspect as Cloudflare output. |
| Vite virtual module ids with `\0` prefixes | Internal | Never import directly. |
| `@vite-hub/internal/*` | Internal | Package implementation only. |

There is no `@vite-hub/agent/netlify` import. Netlify Agent output is generated Provider Output in `.netlify/v1`, plus the `.vitehub/agent/netlify-function.mjs` wrapper. With Nuxt, the wrapper is at `<buildDir>/vitehub/agent/netlify-function.mjs` (usually `.nuxt/vitehub/agent/netlify-function.mjs`).

`vite-hub` adds `vite-hub/source/vite` for custom Source setups. It adds no other public `vite-hub/*/vite` paths or provider-specific app aliases. Use `vitehub()` to set up the framework, and the package paths above for advanced control.

## Related

- [Generated files](https://vitehub.dev/docs/development/generated-files)
- [File conventions](https://vitehub.dev/docs/reference/file-conventions)
- [Package reference](https://vitehub.dev/docs/reference)
- [Runtime and host support](https://vitehub.dev/docs/frameworks-hosts/support-matrix)

<!-- vitehub-docs:section-links -->
## In this section

- Setup
  - [Package reference](https://vitehub.dev/raw/docs/reference.md)
  - [Import paths](https://vitehub.dev/raw/docs/reference/import-paths.md) (this page)
  - [File conventions](https://vitehub.dev/raw/docs/reference/file-conventions.md)
  - [Config options](https://vitehub.dev/raw/docs/reference/config-options.md)
- [Runtime and output](https://vitehub.dev/raw/docs/reference/provider-output.md)

Next: [File conventions](https://vitehub.dev/raw/docs/reference/file-conventions.md)

All pages: [llms.txt](https://vitehub.dev/llms.txt)
