viby

Shipped capabilities

This inventory describes the current @viby/sdk source on main. “Shipped” means an implemented, typed contract with automated coverage. It does not mean Viby hosts the resource or owns its credentials.

Foundation and ownership

CapabilitySurfaceOwnership
Framework-neutral project targetone framework string; typed built-ins, custom values, and automatic immutable framework skillshost selects; package skills cover common frameworks and host skills extend or define custom targets
Runtime-neutral core@viby/sdk/core with Web-standard contracts and helpers; Node and provider adapters use explicit subpathsportable consumers do not load filesystem, process, crypto, migrations, Docker, or database clients
Model selectionany AI SDK LanguageModelhost configures and owns provider credentials
Generation enginepublic provider-neutral engine plus conformance suitehost may replace the AI SDK shortcut with any agent, model runtime, or orchestrator
Categorized skillsskills.sh slugs, skillRead(...) directories, inline snapshots, and provider-neutral resolvershost selects; Viby resolves and snapshots exact content
Categorized storagestorage.database, storage.artifacts, storage.connections, and storage.secrets; DATABASE_URL remains the PostgreSQL shortcuthost selects each provider-neutral implementation independently
Project environmentschat-scoped development, preview, production, and custom variables; public values plus redacted secret metadataPostgreSQL is the default metadata store; secret bytes stay in storage.secrets and resolve only for runtime operations
Structured databaseprovider-neutral database factory or raw PersistenceAdapter plus conformance suitehost may provide another durable implementation and owns its credentials and migrations
Binary artifact storageprovider-neutral ArtifactStore, conformance suite, filesystem reference adapter, and S3-compatible adapter for AWS S3, R2, MinIO, and compatible storeshost selects storage and owns its credentials; the database keeps metadata and opaque references
Tenant isolationviby.forUser({ tenantId, userId })host authenticates; every Viby query enforces both IDs
Viby API keynoneno managed Viby control plane is required

Conversations, generation, and source

CapabilityShipped surface
Chatscreate, import, list, nested metadata filters, get, update, soft delete, restore, and retention-aware purge
Messagescursor pagination, lookup by ID, plain content, assistant finish reasons, and ordered typed parts
Durable generationsynchronous convenience methods plus addressable async Generation handles
Live updatespersisted event cursors, resumable async iterators, standard SSE, and Web Response helpers
Recoverycancel, retry, resume, immutable attempts, failures, and usage
Steeringdurable queued/applied user instructions, idempotency, attachments, safe-boundary agent consumption, resumable events, Web API, and MCP tool
Durable workersPostgres work claims, leases, heartbeats, fencing, and host-controlled concurrency
Blocking worktyped plan, question, and permission tasks with durable resolution
Agent tracestarted, delta, completed, and failed events on the normal generation cursor
Tool recordstyped arguments/results, redaction, ownership, status, and external-effect idempotency
Durable tool-source registrytenant/user-scoped provider-neutral registrations, public configuration, adapter materialization, enable/disable/archive lifecycle, explicit per-chat selection, durable authorization connections, immutable generation-time registration snapshots, and an MCP registration adapter
Tool-source connectionsadapter-owned OAuth/authorization, hashed single-use state, callback substitution protection, refresh/revoke, durable connection metadata, isolated secret-store credentials, and a reusable provider-neutral adapter conformance suite
Source importvalidated UTF-8 file lists, ZIP archives, and provider-neutral source adapters
Source policyimmutable locked files enforced across import, direct edits, model changes, and workspace tools
Source historyimmutable parent-linked versions, ordered changes, fork, restore, and message lookup
Agent workspaceread, search, stage edits, inspect changes, and atomically commit an immutable child version
Artifactsframework-native source ZIP bytes and standard download Response

Sandboxes and previews

The core contract branches on declared capabilities, never provider names.

CapabilityShipped surface
Common adapterfiles, commands, output streaming, port URLs, background processes, reconnect, and snapshots
Discoverynormalized SandboxCapabilities plus supports(...) checks
Lifecyclematerialize an immutable version, idempotent cleanup, durable leases, and reconnect by lease ID
Command safetyprovider-neutral allow/deny/approval-required policy with bounded command metadata
Agent executioncapability-gated sandbox tools with step, time, token, command, and output budgets
Durable version previewsimmutable-version materialization, preview-only file overlays, coalesced concurrent starts, live provider-neutral phases and stdout/stderr, tracked server startup, HTTP readiness, persisted URL/status/failure/expiry, reconnect, stop, and expired-session cleanup
Conformancereusable adapter test suite with caller-supplied harmless commands
Included adaptersE2B, Vercel Sandbox, local Docker, Daytona, Modal, and Cloudflare Sandbox

Preview URLs exist only when the configured adapter exposes port URLs and background processes. version.preview() starts the configured framework server and persists its lifecycle, but Viby does not promise a globally hosted preview URL. The reference application demonstrates the complete host composition.

Browser inspection

CapabilityShipped surface
Common adapterprovider-neutral browser open/session contract with no driver-specific types
Navigationsame-origin-by-default URL resolution with portable load states and timeouts
Visual evidencePNG/JPEG screenshot bytes with validated dimensions and defensive copies
Inspectionbounded DOM HTML/text snapshots and normalized console errors
Qualityprovider-neutral accessibility issue/report vocabulary and readiness checks
Conformancereusable lifecycle suite against a caller-owned reachable page
Included adapterPlaywright Chromium/Firefox/WebKit with axe-core accessibility scans and sandbox preview composition
Visual workflowsmulti-page capture, durable artifact references, configurable rule/model/agent gates, and immutable design-evaluation evidence

Integration, delivery, and observability

CapabilityShipped surface
Inbound toolsprovider-neutral sources, per-chat selection, read/write/external effects, stable idempotency, durable permission tasks, and redacted call records
MCP clientStreamable HTTP and custom-transport adapter with per-chat connection isolation; static headers or adapter-resolved credentials remain inside the transport factory
MCP serverregisterVibyMcpTools exposes scoped chats, generations, events, steering, task resolution, versions, iteration, and downloads through the official MCP server SDK
Outbound eventssigned CloudEvents-style envelopes with stable IDs and constant-time verification
Durable deliverydatabase claims, retry backoff, lease fencing, inspection, dead letters, and explicit redrive
HTTP streamingLast-Event-ID parsing, standard SSE frames, request abort propagation, and Web Response headers
Web API hostauthenticated Web Request/Response routing for chats, messages, generation controls and steering, SSE/event pages, tasks, versions, iteration, ZIP downloads, tool-source registration/selection/connections, public provider callbacks, and host-owned previews
Telemetryprovider-neutral hooks plus an OpenTelemetry-compatible tracer/meter adapter
Cost attributionhost-defined currency/credit calculator, immutable attempt cost, cumulative generation cost, and usage parts
Generation configurationdurable per-request model aliases, host instructions, categorized skill overlays, and JSON metadata
Multimodal inputimmutable attachment bytes in an external artifact store, lightweight PostgreSQL metadata, scoped retrieval, and standard AI SDK file parts
Generated artifactsdurable images, audio, video, documents, and binary outputs with ownership, checksums, artifact-store references, and resumable creation events
Binary project entriesimmutable artifact-backed source paths with scoped external bytes across import, edits, history, sandbox materialization, and ZIP downloads
Design evaluationimmutable version-bound rubric results, criterion scores, validated source/attachment/visual-artifact evidence, metadata, and cursor pagination
Integration contractscategorized integrations.repository and integrations.deployment configuration with provider-neutral authorization, repository, branch, commit, pull-request, project, and deployment adapter types
Provider connectionstenant/user-scoped PostgreSQL metadata, hashed single-use authorization state, callback substitution protection, refresh, reconnect, local revocation, and provider selection discovery
Integration secretsstandalone secret-store contract plus an AES-256-GCM PostgreSQL default keyed by VIBY_SECRET_KEY; credentials never enter normal SDK records
Repository workflowsconnected provider handles for owners, repositories, branches, source import, complete immutable snapshot pushes, optimistic conflicts, pull requests, and optional merges
Repository historydurable chat-to-repository links plus version-bound pending, pushed, conflict, and failed records with commits, pull requests, errors, timestamps, and idempotent replay
Repository conformancereusable disposable-repository suite covering discovery, source round-trips, pushes, stale-head conflicts, and pull requests
Included repository adaptersGitHub App installation/user verification, short-lived token refresh and revocation, and exact Git Data pushes; Bitbucket Cloud OAuth, rotating refresh tokens, workspace discovery, binary-safe source commits, branches, and pull requests
Deployment workflowsconnected provider handles for projects, immutable-version deployment, stable retry idempotency, status lookup, URLs, and optional cancellation
Deployment historydurable chat-to-project links, version-bound deployment records, restart-safe idempotency, provider IDs and URLs, failures, and ordered status transitions
Deployment preparationadapter-declared source/prebuilt input; capability-gated sandbox install/build, immutable external build artifact, artifact reuse on retries, and unchanged raw-source downloads
Environment injectionexplicit sandbox environment selection plus automatic deployment/build selection; values never enter prompts, events, telemetry, histories, or command records
Deployment conformancereusable disposable-project suite covering creation, idempotent deployment, lookup, and cancellation
Included deployment adaptersVercel external-integration authorization with source deployment and cancellation; Cloudflare OAuth with multi-account Pages discovery, Wrangler-compatible prebuilt asset uploads, durable retry recovery, status, and URLs

Product authentication, provider-app registration, public callback routes, event scheduling, and transport infrastructure remain host-owned. Viby stores tenant-scoped repository, deployment, and tool-source connections plus delivery state, but does not run a hidden queue or scheduler.

Verification and examples

GateCoverage
Unit suitedurable generation, source, agents, policy, adapters, MCP, SSE, telemetry, cost, delivery, and errors
PostgreSQL integrationreal migrations plus the complete persisted generation/iteration/download lifecycle
Schema upgrade fixtureupgrades a disposable historical 00010004 database through the current schema and preserves data
Migration immutabilitypublished migration SHA-256 checksums; changes require a new migration
API compatibilityfrozen compile fixture and additive runtime export manifests for package entry points
Sandbox integrationshared conformance suite plus a real local Docker integration job
Reference E2Estandard API host request-level chat → SSE → preview → iterate → ZIP download through real Viby objects and deterministic adapters
Generated-project quality matrixFarm, TanStack Start, and a custom framework ID across generation, runtime checks, preview HTTP, iteration, evaluation, and ZIP parity
Live provider verificationexplicit, environment-gated GitHub, Bitbucket, Vercel, and Cloudflare tests with disposable resources and failure-safe cleanup
Package smoke testpacked artifact install, public import, CLI, and exported subpaths
Runtime compatibilityNode 20/22/24, Bun package import, portable dependency-graph guard, and Web Request/Response/streams/crypto behavior

Deliberately outside the current release

  • managed preview hosting;
  • managed authentication, billing, Postgres, workers, queues, secrets, or a Viby API key.

The categorized contracts, durable connection lifecycle, repository orchestration, and deployment orchestration are shipped without pretending that a specific deployment vendor is present. Provider features enter through explicit adapters without weakening the framework-, runtime-, model-, or vendor-neutral boundary.