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.
34 modules: logging, config, Postgres, Redis, NATS, JWT, OTel, Prometheus — mix them for your project.
OpenAI, Anthropic, Groq, Gemini, DeepSeek, Azure — plus 6 local: Ollama, LM Studio, vLLM. Local runs without an API key.
pcr ai agent fixes build errors on its own: build → errors → fix → verify. A ReAct loop with 7 tools.
pcr mcp: 15 tools for AI clients. Claude, Cursor and others drive spec, plan, generation and deploy.
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. Your CLI connects to the team server: --server + API token.
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.
API gateway: reverse proxy, rate limiting, auth.
Base for pcr plugins: your own templates and modules, shareable via the registry.
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 — a web interface: project dashboard, spec editor with validation, plan in Markdown, diff preview for generation, live deploy logs and AI chat. With Postgres — auth, teams and roles.
Dashboard, spec editor with validation, plan in Markdown, diff preview, live logs, AI chat, dark mode — 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.
pcr --server <url> — team projects straight from your terminal, via an API token.
pcr serve runs on your infrastructure: projects and data stay inside your perimeter.
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.
Go 1.25, 25 test packages, integration tests against real Postgres (testcontainers). Generation is deterministic — the diff is always predictable.
No: 6 local providers — Ollama, LM Studio, LocalAI, vLLM, GPT4All, llama.cpp — are auto-detected. Keys are only needed for cloud providers.
Yes: pcr mcp runs an MCP server with 15 tools — Claude, Cursor and other clients drive spec, plan, generation and deploy.
pcr lock <path> excludes a file from regeneration; pcr unlock returns it to the pipeline.
Go: 8 templates, 34 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.