Orders API
REST for orders: Postgres, JWT, CRUD. Spec from a description, deployed to Kubernetes via Helm.
pcr is a full-lifecycle tool for Go projects: spec, deterministic architecture plan, code from templates and modules, build, CI/CD and deploy — all in one CLI. AI helps where it counts. Everything else is deterministic and under your control.
pcr new: a TUI wizard, spec from a description via AI — or a ready example from examples/
pcr plan: deterministic architecture — Plan = f(Spec, Template, Modules). Inspectable, diffable.
pcr generate: code from templates and modules; AI fills in business logic. --dry and --diff before writing.
pcr deploy: compose, registry, SSH/VPS, Kubernetes, Terraform. Plus pcr build and pcr ci.
Same spec → same plan → same code. No randomness in generation.
28 modules: logging, config, Postgres, Redis, NATS, JWT, OTel, Prometheus — mix them for your project.
Spec from a description, business logic from an LLM. The skeleton comes from deterministic templates, not model mood.
pcr lock protects your code from regeneration. --dry and --diff show what will change.
docker-compose, registry, SSH/VPS (systemd), Kubernetes (Helm), Terraform (AWS ECS Fargate).
Web UI, RBAC, audit log, webhooks — pcr serve with Postgres.
REST API: chi, echo, gin — CRUD, validation, docs.
gRPC with buf + protovalidate, interceptors, reflection.
Cobra: subcommands, flags, auto-completion.
Go package with API, examples and tests — ready to publish.
Multi-module workspace: go.work, shared dependencies.
Background service: queue, retries, cron.
REST for orders: Postgres, JWT, CRUD. Spec from a description, deployed to Kubernetes via Helm.
Background worker: NATS queue, retries, Prometheus metrics, OTel traces.
Cobra: versioning, checksums, release publishing. From pcr new to binary and Docker image.
Plan = f(Spec, Template, Modules) — a pure function. Every generation is reproducible: same inputs, same code. Anything you don’t want touched — you lock.
pcr serve — an HTTP server with a web interface: project dashboard, spec editor, plan viewer, generation and deploy. With Postgres — auth, teams and roles.
Dashboard, spec editor, plan viewer, generation and deploy — in the browser.
admin / member / viewer roles, enforced in middleware.
Every create, update, generate and deploy is recorded.
Slack and Discord notifications, API tokens for your CI.
No. pcr handles the skeleton, configuration, CI/CD and deploy. You write the business logic — the AI drafts it for you to review.
From templates and modules — deterministically. AI fills in business logic. The same spec always produces the same result.
pcr lock <path> excludes a file from regeneration; pcr unlock returns it to the pipeline.
Go: 6 templates, 28 modules, 5 deploy targets. Other stacks are on the roadmap.
brew install aElenvarenko/tap/pcr — or Scoop, go install, Docker. Ready spec.yaml files live in examples/.
Open source, MIT. The team Web UI with RBAC is self-hosted on your infrastructure.
One command — and your Go project is in the pipeline: from spec to production.
brew install aElenvarenko/tap/pcr Ready spec.yaml files in examples/. See the README for details.