ViteHub is still experimental. Expect bugs and breaking changes.

Import paths

Distinguish stable ViteHub imports from generated files, provider modules, and internal package paths.

Stable ViteHub Import Paths are ViteHub-owned app-facing import specifiers. They may resolve to Runtime Registries, generated files, virtual modules, or owner-package runtime code, but application code must not depend on that implementation detail.

Canonical application imports

Applications that install vite-hub use the root only for framework composition and explicit feature subpaths for application APIs.

Import pathUse
vite-hubRegister the framework Vite Integration with vitehub().
vite-hub/agentAgent Definition, invocation, trigger, and Agent Actor APIs.
vite-hub/agent/capabilitiesOfficial Capability factories.
vite-hub/agent/channelsOfficial Channel Kind helpers.
vite-hub/agent/evalAgent Eval authoring helpers; install Evalite and the test runner explicitly.
vite-hub/agent/cloudflareCloudflare Agent state configuration helpers.
vite-hub/agent/vueVue Agent client handle and AI SDK chat composable.
vite-hub/agent/server and vite-hub/agent/state/sqliteManual server integration and libSQL-compatible durable Agent state.
vite-hub/agent/invocations/sqliteLibSQL-compatible durable Agent Invocation Journal.
vite-hub/consoleRoute metadata for the local read-only invocation console.
vite-hub/console/serverLocal console invocation journal for server integrations.
vite-hub/auth and vite-hub/auth/serverAuth Definitions and server runtime helpers.
vite-hub/auth/agentBetter Auth session mapping into Agent Invokers.
vite-hub/auth/vueBetter Auth Vue client and normalized session composables.
vite-hub/blobBlob Runtime Helpers and Blob Store access.
vite-hub/blob/content-typeDetect common image and PDF signatures from leading bytes before upload.
vite-hub/browserBrowser Definitions, invocation-scoped Playwright sessions, and named Browser runs.
vite-hub/browser/actionsViteHub Browser actions backed by Cloudflare Browser Run.
vite-hub/browser/controllers/cdp and vite-hub/browser/controllers/playwrightAdvanced raw CDP and Playwright Browser Session controllers.
vite-hub/browser/providers/cloudflare and vite-hub/browser/providers/localAdvanced explicit provider selection for low-level Browser Clients.
vite-hub/channels and vite-hub/channels/serverChannel Definitions and discovered named delivery.
vite-hub/boxBox Definitions and built-in runtime selection for trusted-host, Crabbox, ASCII, Cloudflare Sandbox, Cloudflare Computer, and Vercel Sandbox execution.
vite-hub/database and vite-hub/database/drizzleDatabase Definitions and generated useDatabase() access.
vite-hub/envEnv Declaration helpers and authoring types.
vite-hub/email, vite-hub/email/server, and vite-hub/email/markdownEmail clients, configured runtime delivery, and Dynamic Markdown HTML with a composed Markdown text fallback.
vite-hub/env/presets and vite-hub/env/schemaReusable Env presets and schema helpers.
vite-hub/env/secret and vite-hub/env/serverSecret declarations and server-only Env access.
vite-hub/historyDurable Workspace history checkpoint contract and types.
vite-hub/kvKV Runtime Helper.
vite-hub/markdown-templateDeterministic Markdown rendering from explicit template strings.
vite-hub/queueQueue Definitions and dispatch helpers.
vite-hub/rate-limitSource-local managed Rate Limit handles and direct Rate Limiters.
vite-hub/realtime, vite-hub/realtime/server, and vite-hub/realtime/vueRealtime Definitions, manual server integration, and Vue collaborative editing with canonical Realtime checkpoints.
vite-hub/runtimeRuntime Host Context, policy, approval, trace, and capability APIs.
vite-hub/runtime/nodeNode process, host, and Linux cgroup resource observations.
vite-hub/sandboxSandbox Definitions and Sandbox Run helpers.
vite-hub/schedule and vite-hub/schedule/runtimeStatic and runtime Schedule APIs.
vite-hub/schedule/runtime/driver and vite-hub/schedule/runtime/processHost wake registration and process-backed runtime Schedule controls.
vite-hub/shellShell runtime and command analysis APIs.
vite-hub/shell/providers/cloudflare and vite-hub/shell/providers/just-bashCloudflare and Just Bash Shell providers.
vite-hub/shell/workspaceWorkspace-backed Shell execution helpers.
vite-hub/sourceRuntime-neutral Source Definitions, custom loaders, and registry APIs.
vite-hub/source/client and vite-hub/source/serverVue Collection pagination and the H3 Collection route adapter.
vite-hub/source/content and vite-hub/source/content/clientComark Content definition, Source adaptation, generated runtime handler, and typed client.
vite-hub/source/file, vite-hub/source/glob, and vite-hub/source/markdownLocal file implementations, loaded only when selected.
vite-hub/source/githubGitHub Source implementation, loaded only when selected.
vite-hub/source/mcpMCP Resources implementation with its private SDK closure.
vite-hub/ui, vite-hub/ui/headless, and vite-hub/ui/styles.cssAI interface components, headless message scrolling, and default styles.
vite-hub/ui/nuxt and vite-hub/ui/viteRegister the canonical UI package for Nuxt or Vue with Vite.
vite-hub/tsconfigTypeScript config that includes ViteHub's generated declaration entry without taking ownership of application source includes.
vite-hub/workflowWorkflow Definitions and run helpers.
vite-hub/workspace and vite-hub/workspace/runtimeWorkspace Definitions, Sources, runtime facades, and registry APIs.
vite-hub/workspace/cloudflareCloudflare Workspace runtime setup.
vite-hub/workspace/collections and vite-hub/workspace/collections/clientBounded Workspace Collection queries and optional Vue client composables.
vite-hub/workspace/loader, vite-hub/workspace/publish, and vite-hub/workspace/serverWorkspace loader, publisher, and manual server extension APIs.

ViteHub-owned adapters use canonical vite-hub/* imports. Their optional third-party providers and SDKs remain explicit dependencies. Provider Output, build integrations, tests, and unlisted provider-specific modules stay on their owner packages.

Direct owner-package imports

Every owner package remains independently installable. These paths are stable for libraries, focused integrations, and advanced composition.

Import pathOwnerUse
@vite-hub/agentAgent PackageAgent Definition helpers, invocation helpers, trigger helpers, and trusted caller types.
@vite-hub/agent/capabilitiesAgent PackageOfficial Capability factories such as access(), browser(), workspaceShell(), inputCommands(), and subagents().
@vite-hub/agent/channelsAgent PackageOfficial Channel Kind helpers such as github(), teams(), telegram(), webChat(), and defineChannel().
@vite-hub/agent/evalAgent PackageAgent Eval authoring helpers.
@vite-hub/agent/testAgent PackageAgent test runner helpers for local and CI Agent Invocation checks.
@vite-hub/agent/cloudflareAgent PackageCloudflare Agent state helpers.
@vite-hub/agent/vueAgent PackageVue Agent client handle and AI SDK chat composable.
@vite-hub/authAuth PackageAuth Definition helpers.
@vite-hub/auth/serverAuth PackageBetter Auth runtime creation, request handlers, and session access for manual host integration.
@vite-hub/blobBlob PackageBlob Runtime Helpers and Blob Store access.
@vite-hub/blob/content-typeBlob PackageDetect common image and PDF signatures from leading bytes before upload.
@vite-hub/browserBrowser PackageBrowser Definitions, invocation-scoped sessions, and low-level Browser Client lifecycle.
@vite-hub/browser/actionsBrowser PackageViteHub Browser actions backed by Cloudflare Browser Run.
@vite-hub/browser/controllers/cdp and @vite-hub/browser/controllers/playwrightBrowser PackageRaw CDP and Playwright Browser Session controllers.
@vite-hub/browser/providers/cloudflare and @vite-hub/browser/providers/localBrowser PackageCloudflare Browser Run and local Chromium providers.
@vite-hub/boxBox PackageBox Definitions, sessions, and built-in runtime selection.
@vite-hub/channelsChannels PackageChannel Definitions, explicit clients, portable types, and normalized delivery results.
@vite-hub/channels/serverChannels RuntimeServer-only discovered named delivery.
@vite-hub/emailEmail PackageExplicit clients, portable types, and normalized errors.
@vite-hub/email/serverEmail RuntimeServer-only configured email Runtime Helper.
@vite-hub/email/markdownEmail PackageDynamic Markdown composition into HTML and a composed Markdown text fallback.
@vite-hub/email/testEmail PackageIsolated in-memory message capture for tests.
#vitehub/emails/<name>Email PackageGenerated async renderer for a discovered server/emails/**/*.md template.
@vite-hub/database/drizzleDatabase PackageGenerated useDatabase() access to a Drizzle database and schema.
@vite-hub/envEnv PackageEnv Declaration helpers.
@vite-hub/historyHistory PackageDurable history checkpoint contract and types.
#vitehub/env/publicEnv PackageGenerated Public Env access.
#vitehub/env/serverEnv PackageGenerated Server Env access.
@vite-hub/kvKV PackageKV Runtime Helper.
@vite-hub/markdown-templateMarkdown Template PackageDeterministic Markdown rendering from explicit template strings.
@vite-hub/queueQueue PackageQueue Definition and enqueue Runtime Helper.
@vite-hub/rate-limitRate Limit PackageSource-local managed Rate Limit handles and direct Rate Limiters.
@vite-hub/rate-limit/drivers/memoryRate Limit PackageLocal, test, and single-process fixed-window enforcement.
@vite-hub/rate-limit/drivers/cloudflareRate Limit PackageDirect access to a Cloudflare Rate Limiting binding.
@vite-hub/realtimeRealtime PackageRealtime Definitions and portable collaboration types.
@vite-hub/realtime/server and @vite-hub/realtime/vueRealtime PackageManual server integration and Vue collaborative editing.
@vite-hub/ui and @vite-hub/ui/headlessUI PackageAI SDK-native Vue components and headless message scrolling.
@vite-hub/sandboxSandbox PackageSandbox Definition and Sandbox Run helpers.
@vite-hub/schedule/runtimeSchedule PackageRuntime schedule helpers.
@vite-hub/schedule/runtime/driverSchedule PackageHost integration boundary for reconciling stored Runtime Schedules with native wake registrations.
#vitehub/schedule/registrySchedule PackageGenerated static schedule registry for host bridges.
@vite-hub/workflowWorkflow PackageWorkflow Definition and run helpers.
@vite-hub/workflow/runtime/openworkflow-workerWorkflow PackageOpenWorkflow-specific worker lifecycle helpers; install openworkflow explicitly.
@vite-hub/workspaceWorkspace PackageWorkspace Definition, Source helpers, Workspace facade access, and authoring types.
@vite-hub/workspace/runtimeWorkspace PackageWorkspace runtime registry, useWorkspace(), and source resolution/request helpers for integrations.

Integration imports

Import pathUse
vite-hubCanonical application import for vitehub().
vite-hub/nuxtRegister the framework Nuxt module and carry Vite integration configuration into Nitro.
@vite-hub/agent/viteRegister the Agent Vite Integration.
@vite-hub/auth/viteRegister the Auth Vite Integration.
@vite-hub/blob/viteRegister the Blob Vite Integration.
@vite-hub/browser/viteRegister Cloudflare Browser Run Provider Output.
@vite-hub/channels/viteRegister Channel Definition discovery and generated runtime bindings.
@vite-hub/database/viteRegister the Database Vite Integration.
@vite-hub/email/viteConfigure one Unemail provider and generate its runtime binding.
@vite-hub/env/viteRegister the Env Vite Integration and env() declaration helper.
@vite-hub/ui/nuxt and @vite-hub/ui/viteRegister the UI package for Nuxt or Vue with Vite.
@vite-hub/kv/viteRegister the KV Vite Integration.
@vite-hub/markdown-template/viteRegister generated types and direct .template.md imports.
@vite-hub/queue/viteRegister the Queue Vite Integration.
@vite-hub/rate-limit/viteRegister Rate Limit source collection and provider output.
@vite-hub/realtime/viteRegister Realtime Definition discovery and generated runtime wiring.
@vite-hub/sandbox/viteRegister the Sandbox Vite Integration.
@vite-hub/schedule/viteRegister the Schedule Vite Integration.
@vite-hub/workflow/viteRegister the Workflow Vite Integration.
@vite-hub/workspace/viteRegister the Workspace Vite Integration.

Generated and internal paths

Path familyStatusGuidance
.vitehub/**GeneratedInspect during development; do not author imports against these files.
.vercel/output/**Generated Provider OutputDeploy or inspect as Vercel Build Output.
.netlify/v1/**Generated Provider OutputDeploy or inspect as Netlify function output.
dist/**/wrangler.jsonGenerated Provider OutputDeploy or inspect as Cloudflare output.
Vite virtual module ids with \0 prefixesInternalNever import directly.
vite-hub/_internal/*InternalGenerated ViteHub code only; application imports are unsupported.
@vite-hub/internal/*InternalPackage implementation only.

The Agent Package does not expose an @vite-hub/agent/netlify application import. Netlify Agent output is generated Provider Output under .netlify/v1 plus the .vitehub/agent/netlify-function.mjs source wrapper. With Nuxt, that source wrapper is generated under <buildDir>/vitehub/agent/netlify-function.mjs (normally .nuxt/vitehub/agent/netlify-function.mjs).

The framework distribution does not introduce public vite-hub/*/vite or provider-specific application aliases. Use root vitehub() for framework composition and the owner-package paths above for advanced integration control.