◈ Krewire v0.1.0
◈ Unified Go Framework · v0.1.0 · Open Source

One Go Framework.
Every Workload.

From single-binary web monoliths to interactive TUIs, high-speed static sites, book pipelines, background workers, microservices, cloud infra, and Go WebAssembly runtimes — build everything in Go with one CLI kiw and zero JS fatigue.

$ curl -fsSL https://krewire.com/scripts/install.sh | sh
$ kiw new my-app --site && cd my-app && kiw dev

Go 1.22+ · File-based routing · Scoped CSS · 100% Zero JS by default

pages/index.kiw
---
title: Hello Krewire
layout: Landing
workload: site
---
<h1>{{.Title}}</h1>
<p>One Go Framework. Every Workload.</p>

<style>
h1 { color: var(--primary); font-weight: 900; }
p  { font-size: 14px; color: var(--muted); }
</style>
Unified Go Toolchain
100% Go Standard Library 0 npm / 0 Bundlers 8 Workloads in 1 Binary < 1ms Cold Starts Single Config krewire.yaml
Unified Workload Engine

One Framework. Eight Workloads.

Stop assembling disparate frameworks for web, CLI, background queues, and infra. Krewire provides unified ergonomics, shared configuration, and zero context switching.

▲ Fullstack

app

Fullstack web monolith — compile your web interface, HTTP routing, and API handlers into a single static Go binary.

kiw run
›_ Terminal

cli

Command-line utilities and interactive TUIs powered by a Bubble Tea-inspired reactive terminal interface engine.

kiw build --cli
◧ SSG

site

High-performance static site generator with file-based routing, scoped .kiw components, and zero client-side JS.

kiw build --site
≡ Publishing

book

Turn markdown manuscripts into structured documentation books with automatic indexing via mdbind.

kiw build --book
⚙ Async

worker

Asynchronous job queues, scheduled cron tasks, retry policies, backoff timers, and dead-letter queues via framework/worker.

kiw run --worker
⬢ Microservice

service

Distributed microservice architecture with service discovery, API gateway routing, rate limiting, and OpenTelemetry tracing.

kiw run --service
☁ Cloud IaC

infra

Provider-agnostic infrastructure-as-code compiling directly to AWS, GCP, or Kubernetes specifications from Go declarations.

kiw infra apply
◈ WASM

runtime

Compile Go into WebAssembly with virtual DOM diffing, reactive interactive islands, and partial client hydration.

kiw build --wasm
Developer Workflow

From Zero to Production in 4 Steps

Install once, then scaffold, develop, and deploy — no toolchain fatigue, no breaking dependency trees.

1 Install

kiw install

One command installs the kiw CLI on Linux or macOS. No package manager needed.

curl -fsSL \
  https://krewire.com/scripts/install.sh \
  | sh
2 Scaffold

kiw new

Generate a production-ready project template for any workload in under one second.

kiw new my-site --site
cd my-site
3 Develop

kiw dev

Instant hot-reload local development server with file-based routing and scoped CSS updates.

kiw dev
# ⚡ Ready at http://localhost:3000
4 Deploy

kiw deploy

Compile into a single static binary or static asset bundle and ship to GitHub Pages or Docker.

kiw deploy --target gh-pages
# ✓ Deployed successfully!
Architecture & Philosophy

Go-First. Progressive. Zero Bloat.

Built for engineers who value compilation speed, predictable deployments, and maintainable software architecture.

◈

Pure Go Toolchain

No Node.js, no npm dependencies, and no bundler configuration. Your entire application compiles with standard Go tooling into clean, self-contained binaries.

◧

Scoped .kiw Components

Combines YAML frontmatter, standard Go HTML templates, and scoped <style> blocks. CSS classes never leak outside their component boundary.

⚡

Progressive Scaling

Start as a lightweight static site, grow into a fullstack web monolith, then seamlessly extract background workers and microservices — all within the same ecosystem.

🛡

Enterprise Resilience

Engineered with production defaults: structured JSON logging, distributed tracing, health checks, circuit breakers, and graceful shutdown out of the box.

Component DSL

Write Pages as Clean .kiw Components

The elegance of Svelte and Astro brought to Go. Frontmatter + HTML + scoped CSS in one intuitive file.

pages/index.kiw
---
title: "Welcome to Krewire"
layout: Landing
workload: site
---

<section class="welcome">
  <h1>{{ .Title }}</h1>
  <p>Compiled Go speed with zero runtime bloat.</p>
</section>

<style>
.welcome { padding: 40px 0; text-align: center; }
h1 { color: var(--primary); font-weight: 900; }
p  { font-size: 15px; color: var(--muted); }
</style>
Scoping

Why Scoped CSS in Go?

Every .kiw component receives automatic data-kiw-component scope hashing at build time. No CSS collisions, no naming gymnastics, zero runtime cost.

  • ✓ Scoped by Default: Styles remain strictly isolated to the component.
  • ✓ Global CSS via :root: Theme tokens cascade cleanly across layouts.
  • ✓ No Bundler Required: Built directly by the Go compiler without npm.
  • ✓ Light & Dark Mode: Native token switching via data-theme.
Ready to Build

Start Building with Krewire Today

Start with a lightweight static site, scale to a web monolith, then to distributed cloud services — one repository, one CLI, one configuration.

kiw new my-app && cd my-app && kiw serve