kraft add CLI
A shadcn/ui-style CLI that copies components directly into your project — giving you full ownership, zero dependencies, and freedom to customize everything.
The idea
Instead of go get-ing a package and being locked to its API, kraft add copies the raw component source into your codebase. The component becomes yours — edit it, extend it, delete it. No version pinning, no upstream breakage, no black-box dependencies.
How it'll work
# Add a single component
kraft add button
# Add multiple at once
kraft add modal toast dropdown
# Add everything
kraft add --allComponents land in pkg/ui/<component>/ inside your project, ready to use and modify.
go get vs kraft add
Both approaches are valid — pick what fits your team.
go get (import)
- ✓ Zero setup, works instantly
- ✓ Upstream bug fixes for free
- ✗ Locked to the library's API
- ✗ Harder to customise deeply
kraft add (copy)
- ✓ Full ownership of the code
- ✓ Customise anything, freely
- ✓ No upstream breaking changes
- ✓ Delete what you don't use
Inspired by shadcn/ui
shadcn/ui proved that "not a component library, but a collection of components you own" is a better model for most teams. kraft-ui brings the same philosophy to the Go + Templ world.
In the meantime, you can copy components manually from the docs or use the Go module.