stacks-env

Official

Typed env proxy for secure, effortless config.

Authorstacksjs
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This solution provides a typed environment proxy for Stacks apps, enabling auto-coerced environment variables, seamless .env loading, and secure encryption of sensitive values.

Core Features & Use Cases

  • Typed environment proxy with auto-coercion for booleans and numbers.
  • Automatic .env loading and runtime detection of Bun/Node.
  • AES-256-GCM encryption/decryption of env values and secure key handling.
  • CI provider detection and runtime/platform detection to adapt config per environment.
  • CLI commands to get/set/encrypt/decrypt env vars and manage keys.
  • Type definitions that cover a comprehensive env surface for Stacks apps.

Quick Start

Install the Stacks env package and initialize the proxy to load your .env file and access typed environment variables.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: stacks-env
Download link: https://github.com/stacksjs/stacks/archive/main.zip#stacks-env

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.