@webpresso/runtime
v1.1.0
Published
Environment-neutral Webpresso runtime primitives with explicit platform and framework adapter subpaths.
Readme
@webpresso/runtime
Webpresso runtime umbrella — single package with subpath exports for all foundation packages.
Install
vp add @webpresso/runtimeSubpath Exports
| Subpath | Description | Deps |
| ---------------------------------- | --------------------------------------------------------- | ----------------- |
| @webpresso/runtime/process | Process execution, system commands, repo root | execa, ts-pattern |
| @webpresso/runtime/cli | CLI utilities, prompts, docker, git | ts-pattern, zod |
| @webpresso/runtime/env | Environment variable resolution | ts-pattern |
| @webpresso/runtime/utils | String, array, object, currency, date, duration utilities | zod |
| @webpresso/runtime/id | Structured hierarchical ID generation | zod |
| @webpresso/runtime/observability | Logging, wide events, performance tracking | — |
Usage
import { run, findRepoRoot, CommandType } from '@webpresso/runtime/process'
import { log, table } from '@webpresso/runtime/cli/logger'
import { resolveEnv } from '@webpresso/runtime/env'
import { generateId, generateSlug } from '@webpresso/runtime/utils'
import { Identifier } from '@webpresso/runtime/id'
import { createLogger } from '@webpresso/runtime/observability'Edge / Workers compatibility
The runtime/process and runtime/cli subpaths include edge-condition stubs (workerd, edge-light, browser) that throw at runtime. Type-only imports work in edge contexts.
Migrating from standalone packages
@webpresso/process-utils → @webpresso/runtime/process
@webpresso/cli-utils → @webpresso/runtime/cli
@webpresso/env-runtime → @webpresso/runtime/env
Requirements
- Node.js >= 24
