Start with an example
Explore our collection of examples to get familiar with ArkEnv.
Use the ArkEnv CLI to bootstrap an example with your favorite tooling.
npx @arkenv/cli@latest init --example <example-name>pnx @arkenv/cli@latest init --example <example-name>yarn dlx @arkenv/cli@latest init --example <example-name>bunx @arkenv/cli@latest init --example <example-name>Examples
| Name | Description |
|---|---|
| basic | Minimal example of using ArkEnv in a Node.js app for learning the fundamentals. |
| with-nextjs | Minimal example of using ArkEnv in a Next.js app (Simple layout). |
| with-nextjs-strict | Minimal example of using ArkEnv in a Next.js app (Strict split 3-file layout). |
| with-nuxt | Minimal example of using ArkEnv in a Nuxt app. |
| with-vite-react | Minimal example of using ArkEnv in a Vite + React app. |
| with-bun | Minimal example of using ArkEnv in a Bun app. |
| with-bun-react | Minimal example of using ArkEnv in a Bun + React full-stack app. |
| with-solid-start | Minimal example of using ArkEnv in a SolidStart app. |
| with-zod | Example of using ArkEnv with Zod for validation (without ArkType). |
| with-standard-schema | Example of mixing ArkType with Standard Schema validators like Zod. |
These examples are written in TypeScript, the recommended way to work with ArkEnv. That said, ArkEnv works with plain JavaScript. See the basic-js example for details and tradeoffs.