Overview
Welcome to the Krewire Documentation.
Krewire is an open-source, end-to-end digital SDLC ecosystem delivered as Modular Libraries: independent, single-purpose Go packages you compose behind one CLI (kiw) and one unified configuration (krewire.yaml) to build, test, and deploy eight distinct workloads:
- Fullstack Web Monoliths (
app) - Terminal Interfaces & TUIs (
cli) - High-Speed Static Sites (
site) - Structured Documentation Books (
book) - Background Workers & Job Queues (
worker) - Distributed Microservices (
service) - Cloud Infrastructure as Code (
infra) - API Gateways (
gateway)
What is in this Chapter?
This Overview chapter introduces you to the core philosophy, technical architecture, and developer workflow of Krewire:
Why Krewire? โ
Understand how Krewire solves modern toolchain fragmentation, replaces multi-language stacks, and enables progressive system growth without rewrites.
Philosophy โ
Explore the core philosophy, the Three Pillars (Secure, Sustainable, Scalable), and the seven engineering tenets driving Krewire.
Deep dive into the 8 official workload kinds (app, cli, site, book, worker, service, gateway, infra).
Learn the SemVer zero-breakage promise, migration steps for krewire.yaml decoupling, and how to update CLI & packages dependencies.
Three Pillars
Everything Krewire ships is held to three pillars โ secure, sustainable, and scalable โ the filter a capability must pass before it lands:
| Pillar | In one line |
|---|---|
| Secure | Security is the default: a stdlib-first dependency graph, OWASP/CWE-aligned controls, and secrets referenced โ never stored. |
| Sustainable | Near-zero cost, engineered: single static binaries, opt-in batteries, and no license fees โ ever. |
| Scalable | Growth without rewrite: the progressive pipeline from static site to services and infra, from a $5 VPS to hyperscale. |
Core Tenets
Krewire is engineered around four guiding tenets:
- Go as the Architectural Foundation: Standard Go (
net/http,html/template,embed,context,slog,flag) powers every layer. Single-binary deployments with embedded static assets ensure near-instant startups, negligible RAM usage, and zero runtime dependencies. - Modular at Every Scope (SRP & SoC): Engineered using strict Single Responsibility and High Cohesion principles. Start with a simple modular monolith and cleanly extract services or background workers as your traffic scales โ without restructuring your business logic.
- Zero JavaScript Fatigue: Generate lightning-fast static sites, documentation portals, and fullstack applications with
.kiwcomponent files without requiring Node.js,npm, webpack, or fragilenode_modulesdependency trees. - Unified Developer Experience: Manage your entire software lifecycle โ creation, local development, asset compilation, testing, and deployment โ through one single CLI binary (
kiw) and a single devtool configuration file (krewire.yaml).
Documentation Roadmap
Explore the comprehensive manual for the Krewire ecosystem:
| Chapter | Title | Focus |
|---|---|---|
| 1. | Overview | Ecosystem architecture, core tenets, three pillars, and workloads overview. |
| 2. | Getting Started | The beginner track: quickstart, fullstack app tutorial, installation, configuration, and .kiw DSL. |
| 3. | Workloads in Depth | Detailed architecture and guides for all 8 workloads (app, cli, site, book, worker, service, gateway, infra). |
| 4. | Core & Foundation Libraries | Fundamental domain model, kernel lifecycle supervisor, config, validation, resilience, and testing. |
| 5. | Web & UI Framework | Radix HTTP router, application container, WebAssembly runtime, and TUI toolkit. |
| 6. | Krewire UI & Design System | The design system and all 66 .kiw components, with live previews of the core atoms. |
| 7. | Data, Storage & Services | Multi-driver ORM, object storage, virtual filesystem, caching, transactional mail, and Indonesian payments. |
| 8. | Security & Ecosystem Platforms | Security controls, auth primitives, enterprise identity platform, hybrid PaaS, and autonomous AI agents. |
| 9. | CLI Reference | Complete kiw command catalog, krewire.yaml schema specification, and task automation. |
| 10. | Guides & Best Practices | Architectural design invariants, open core licensing rules, and production deployment playbooks. |
| 11. | Architecture Deep-Dive | Platform engineering: layered pyramid, ecosystem DAG, scope levels, and data flow. |
Next Steps
To begin building with Krewire, explore the subchapters in order:
- Proceed to 1.1 Why Krewire? โ
- Jump to 2. Getting Started โ
- Or dive into 3. Workloads in Depth โ