@viloris/vela-api
v0.0.1
Published
Shared TypeScript contracts for Vela: layers, hit-testing, materials, capabilities
Readme
@viloris/vela-api
Shared TypeScript contracts for Vela: geometry, layers, hit-testing, materials, capabilities, bridge/RPC types, and pure helpers.
This package is types + pure functions only — no host or Shell implementation.
Install
bun add @viloris/vela-api
# or: npm install @viloris/vela-apiDeveloper Preview: APIs may change without a major bump until 1.0.
Usage
import type { VelaPreloadBridge } from "@viloris/vela-api";
import { resolveHit, regionFromRect } from "@viloris/vela-api";App UI code should only talk to the host through window.vela (preload bridge). See the Vela monorepo for Shell hosts, plugins, and dogfood apps.
