Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## [1.5.0] - 2026-09-03

### Added
- **Go addon parity with Node/Python** — Go now supports the same optional addon set: `--websocket` (gorilla/websocket + JWT), `--oauth` (golang.org/x/oauth2, Google + GitHub, auto-mounted at `/api/v1/oauth`), `--api-docs` (Swagger UI at `/docs` + OpenAPI JSON, auto-mounted), `--email` (stdlib `net/smtp`, no extra dependency), `--s3` (aws-sdk-go-v2, upload/presign/delete/exists, R2/MinIO via `S3_ENDPOINT`), `--queue` (asynq + Redis, including a `cmd/worker` binary), `--observability` (OpenTelemetry OTLP/HTTP tracing + Prometheus `/metrics`, plus the same `observability/` Docker Compose + Grafana dashboard stack as Node/Python), and `--sentry` (paired with `--observability`)
- **Composable Go addon wiring** — `internal/router/router.go`, `internal/config/config.go`, `go.mod`, `.env.example`, and `cmd/server/main.go` now carry `// @addon-*` splice markers so multiple Go addons (plus `jwt`) can be combined without one overwriting another's changes — the same class of bug fixed for Node in 1.4.0, addressed here before it could ship. `api-docs` and `oauth` auto-wire into `router.go` (matching what Node auto-wires into `app.ts`); the rest ship as standalone packages with next-steps instructions, mirroring Node/Python's existing split
- Patched `router.go` is passed through `gofmt` when available (best-effort; silently skipped if the `go` toolchain isn't installed) so the marker-spliced imports/routes read cleanly

### Fixed
- **Go: Sentry no longer forces a dependency on plain `--observability` projects** — `internal/sentryinit` hard-imports `github.com/getsentry/sentry-go`, so it now ships as its own conditional addon (only alongside `--sentry`) instead of being bundled unconditionally into `--observability`; previously `go mod tidy` would add the Sentry dependency to `go.mod` even when `--sentry` was never passed, which would break `-mod=readonly` CI builds

## [1.4.0] - 2026-07-03

### Added
Expand Down
20 changes: 14 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@ Answer a few prompts. Your project is ready in under a second.
- Optional Docker + docker-compose setup
- Optional testing setup with example test files
- Optional GitHub Actions CI workflow
- Optional WebSocket support with Socket.io + JWT auth
- Optional OAuth2 (Google + GitHub) via `@fastify/oauth2`
- Optional API documentation via Scalar + Swagger UI
- Optional Email support via SMTP (nodemailer) — send welcome, password reset, and custom emails
- Optional S3 storage (AWS S3 / R2 / MinIO) — upload, presigned URLs, delete, exists
- Optional WebSocket support (Socket.io + JWT for Node/Python, gorilla/websocket + JWT for Go)
- Optional OAuth2 (Google + GitHub) — `@fastify/oauth2` (Node), native (Python), `golang.org/x/oauth2` (Go)
- Optional API documentation — Scalar + Swagger UI (Node/Python), Swagger UI (Go)
- Optional Email support via SMTP — nodemailer (Node), smtplib (Python), stdlib `net/smtp` (Go)
- Optional S3 storage (AWS S3 / R2 / MinIO) — upload, presigned URLs, delete, exists (all three languages)
- Optional background queue — BullMQ (Node), arq (Python), asynq + Redis (Go)
- Optional Claude Code setup — `CLAUDE.md` + pre-configured skills for Claude Code agent
- Optional Cursor setup — `.cursor/skills/` with pre-configured skills for Cursor agent
- Optional observability stack — OpenTelemetry traces + Prometheus `/metrics` + Grafana dashboard + OTel Collector (both Node.js and Python)
Expand All @@ -48,7 +49,7 @@ Answer a few prompts. Your project is ready in under a second.
|----------|-------|
| Node.js | TypeScript · Fastify · Prisma · MariaDB/MySQL · Redis · JWT · Zod · Pino · Swagger |
| Python | FastAPI · SQLAlchemy 2.0 · Alembic · PostgreSQL · Redis · Pydantic v2 · APScheduler |
| Go | chi v5 · GORM v2 · PostgreSQL · golang-migrate · godotenv · slog · air |
| Go | chi v5 · GORM v2 · PostgreSQL · golang-migrate · godotenv · slog · air — same addon set as Node/Python (websocket, oauth, api-docs, email, s3, queue, observability) plus a Go-only `--jwt` |

---

Expand Down Expand Up @@ -100,6 +101,13 @@ archgen add observability # OTel + Prometheus + Grafana
archgen add observability --sentry # with Sentry error tracking
archgen add pre-commit # pre-commit hooks (Python only: ruff + black + mypy)
archgen add jwt # JWT auth addon (Go only)
archgen add websocket # WebSocket support (Go: gorilla/websocket + JWT)
archgen add oauth # OAuth2 routes (Go: golang.org/x/oauth2, Google + GitHub)
archgen add api-docs # Swagger UI at /docs + OpenAPI JSON at /openapi.json (Go)
archgen add email # SMTP email via stdlib net/smtp (Go)
archgen add s3 # S3 / R2 / MinIO storage via aws-sdk-go-v2 (Go)
archgen add queue # Background queue via asynq + Redis, plus a cmd/worker binary (Go)
archgen add observability # OTel + Prometheus for Go; add --sentry for error tracking
archgen add ci --dry-run # preview changes without writing
```

Expand Down
7 changes: 7 additions & 0 deletions cli/prompts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,13 @@ export async function promptMissingOptions(
if (lang === "go") {
return [
{ title: "JWT authentication", value: "jwt", selected: false },
{ title: "WebSocket", value: "websocket", selected: false },
{ title: "OAuth2 (Google + GitHub)", value: "oauth", selected: false },
{ title: "API Docs (Swagger UI)", value: "apiDocs", selected: false },
{ title: "Email (SMTP)", value: "email", selected: false },
{ title: "Storage (S3 / R2 / MinIO)", value: "s3", selected: false },
{ title: "Queue (asynq + Redis)", value: "queue", selected: false },
{ title: "Observability (OTel + Prometheus)", value: "observability", selected: false },
];
}
const nodeOnly = lang === "node";
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kidkender/archgen",
"version": "1.4.0",
"version": "1.5.0",
"description": "Generate production-ready Node.js, Python, and Go project structures in seconds",
"main": "dist/index.js",
"module": "dist/index.mjs",
Expand Down
14 changes: 13 additions & 1 deletion plugins/go/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,17 @@ import { PluginConfig } from "../../types";
export const goConfig: PluginConfig = {
name: "Go",
description: "Go · chi · GORM · PostgreSQL · golang-migrate · slog",
addons: ["docker", "testing", "ci", "jwt"],
addons: [
"docker",
"testing",
"ci",
"jwt",
"websocket",
"oauth",
"api-docs",
"email",
"s3",
"queue",
"observability",
],
};
Loading
Loading