@venturekit/core
Installation
Section titled “Installation”npm install @venturekit/core@devWhat It Provides
Section titled “What It Provides”@venturekit/core is the foundation of VentureKit. Every other package depends on it.
All configuration and infrastructure types:
BaseConfig— project identity (name, region)SecurityConfig— OAuth scopes, app clients, MFA, password policyEnvConfigInput/EnvConfig— environment sizing (Lambda, API, VPC, observability, WebSocket)ResolvedConfig— fully merged configuration with no undefined valuesVentureIntent— infrastructure intent declarationsIntentOutputs— references to provisioned resources
Presets
Section titled “Presets”Production-ready defaults for environment sizing:
import { getPreset, PRESET_FREE, PRESET_NANO, PRESET_MICRO, PRESET_MEDIUM, PRESET_LARGE } from '@venturekit/core';
const preset = getPreset('free');| Preset | Lambda | Timeout | API Rate | VPC | Cost |
|---|---|---|---|---|---|
free | 128 MB | 10s | 10/s | No | $0/month |
nano | 128 MB | 10s | 10/s | No | ~$5-15/month |
micro | 256 MB | 10s | 50/s | Yes | ~$30-80/month |
medium | 512 MB | 15s | 100/s | Yes | ~$100-300/month |
large | 1024 MB | 30s | 500/s | Yes | ~$500+/month |
Config Resolution
Section titled “Config Resolution”import { resolveConfig, resolveEnvConfig } from '@venturekit/core';
// Resolve full config (base + security + env)const config = resolveConfig(base, security, 'prod', prodInput);
// Resolve just the environment configconst envConfig = resolveEnvConfig('prod', prodInput);Validation
Section titled “Validation”import { validateBaseConfig, validateSecurityConfig, validateEnvConfigInput, assertValid } from '@venturekit/core';
const result = validateBaseConfig(base);assertValid(result); // Throws ValidationError if invalidData Safety
Section titled “Data Safety”import { DATA_SAFETY_CONFIG, DEFAULT_DATA_SAFETY } from '@venturekit/core';| Level | Removal Policy | Deletion Protection |
|---|---|---|
relaxed | Destroy | No |
standard | Retain | Yes |
strict | Retain | Yes |
Related
Section titled “Related”- Configuration — how the layered config system works
- Presets — detailed preset documentation
- Infrastructure Intents — declaring resources
- API Reference — full type documentation