Architecture Overview
StackSolo transforms declarative JSON configs into real GCP infrastructure.
Config (JSON) → Code Generator → CDKTF/Terraform → GCP Resources- You write
stacksolo.config.json - StackSolo generates TypeScript CDKTF code
- CDKTF synthesizes to Terraform JSON
- Terraform deploys to GCP
Key Components
Section titled “Key Components”CLI (@stacksolo/cli)
Section titled “CLI (@stacksolo/cli)”The command-line interface that orchestrates everything:
init- Project setup and config generationscaffold- Generate source code templatesdev- Local Kubernetes developmentdeploy- Production deployment
Blueprint (@stacksolo/blueprint)
Section titled “Blueprint (@stacksolo/blueprint)”Config schema and validation:
- JSON Schema definitions
- Type generation
- Reference resolution (
@function/name.url)
Core (@stacksolo/core)
Section titled “Core (@stacksolo/core)”Plugin system:
- Provider registration
- Resource type definitions
- Code generation interfaces
Runtime (@stacksolo/runtime)
Section titled “Runtime (@stacksolo/runtime)”Environment abstraction for deployed code:
- Unified access to env vars
- Local vs production detection
- Kernel connection helpers
Plugins
Section titled “Plugins”Plugins provide resource types and code generation:
| Plugin | Purpose |
|---|---|
gcp-cdktf | Core GCP resources via Terraform CDK |
kernel | Shared services (NATS-based) |
gcp-kernel | Shared services (GCP-native) |
Generated Artifacts
Section titled “Generated Artifacts”.stacksolo/├── stacksolo.config.json # Your config├── cdktf/ # Generated infrastructure code│ ├── main.ts│ └── cdktf.out/ # Terraform JSON└── k8s/ # Local dev manifestsLocal Development
Section titled “Local Development”stacksolo dev creates a local Kubernetes environment:
- Uses OrbStack/Docker Desktop
- Runs Firebase & Pub/Sub emulators
- Port-forwards all services
- Hot reloads on file changes