Import
TypeScript
import { createDependencySnapshotStoreHandle, createEscapeBuffer, createFileSystem, createFSAdapter, createInMemoryHostRuntime, createKVStore,} from "veryfront/platform";Examples
Inspect the current runtime
TypeScript
import { getOsType, getRuntimeVersion } from "veryfront/platform"; console.log(`${getOsType()} ${getRuntimeVersion()}`);Pin project dependencies
TypeScript
import { VeryfrontApiClient } from "veryfront/platform"; const client = new VeryfrontApiClient({ apiBaseUrl: "https://api.veryfront.com", apiToken: "<API_KEY>", projectSlug: "<PROJECT_SLUG>",}); const { pins, persisted, skipped } = await client.dependencies.resolve({ specifiers: ["react@^19", "zod"], branch: "main",});console.log(pins, persisted, skipped); await client.initialize();const history = await client.dependencies.getHistory({ branch: "main" });console.log(history.entries.length);Read the files an environment serves
TypeScript
import { VeryfrontApiClient } from "veryfront/platform"; const client = new VeryfrontApiClient({ apiBaseUrl: "https://api.veryfront.com", apiToken: "<API_KEY>", projectSlug: "<PROJECT_SLUG>",}); const files = await client.listAllEnvironmentFiles("production");console.log(files.map((file) => file.path)); const page = await client.getEnvironmentFile("production", "app/page.tsx");console.log(page.release_version); const lookup = await client.lookupProjectByDomain("www.example.com");console.log(lookup?.project_slug, lookup?.environment?.name);Exports
Functions
Classes
Types
Constants
Deep imports
These import paths group focused functionality under this module. Each is a separate barrel; import only what you need.
veryfront/platform/env
Public environment facade for the veryfront/platform/env subpath. Exposes only project-scoped readers. Privileged or mutating accessors (getHostEnv, env, setEnv, deleteEnv) stay internal so a tenant project cannot read or alter the host process environment through a supported package export.
TypeScript
import { getEnv, getEnvBoolean, getEnvNumber } from "veryfront/platform/env";Functions
Types
veryfront/platform/path
Compat - Path
TypeScript
import { basename, dirname, extname } from "veryfront/platform/path";