Installation

Add @vlandoss/env to a project, install the peer dependencies you need, and pick which runtime entrypoints to import.

Install the package

terminal
pnpm add @vlandoss/env

Pick a schema validator

@vlandoss/env is agnostic to the schema validator — the core relies on Standard Schema, so any Standard Schema–compatible validator works (Zod, Valibot, ArkType, …). Install the one you'll actually use; you don't need any of them if you're plugging in your own.

The docs and the opt-in primitives at @vlandoss/env/zod are written against Zod, so it's the most common pick:

terminal
pnpm add zod

Peer dependencies

Peers are optional — install only the ones whose entrypoints you import:

If you import…Install
@vlandoss/env/zodzod@^4
@vlandoss/env/vitevite@>=5
@vlandoss/env/reactreact@>=19, react-dom@>=19
@vlandoss/env/fs(none — Node-compat built-ins)

Available entrypoints

The package is split into a small set of entrypoints, each with its own page in the API reference — signatures, options, return types, and examples:

EntrypointReference
@vlandoss/envCore
@vlandoss/env/fsFilesystem
@vlandoss/env/viteVite
@vlandoss/env/reactReact
@vlandoss/env/zodZod primitives

Next

Go to Quickstart for a minimal Node example, or jump to Concepts for the mental model.

On this page