Skip to content
Projects

About

GopherForge(曾用名 go-admin-kit):企业级 Go 微服务后台脚手架 · Gin + React 19 + Ant Design 6 · Traefik 网关 + 7 基础服务 · RBAC / 监控 / 代码生成器 开箱即用

Web & App Development

How these counts are measured

Measured star growth

in 24h
Collecting history
in 7 days
Collecting history
in 15 days
Collecting history
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.en.md

Original

GopherForge — Enterprise Go Microservices & Operations Platform

Open-Source Enterprise Go Microservices & Operations Platform
16 API Services + Standalone Migrator · React 19 + Ant Design 6 · Traefik Gateway Governance · Pluggable Business Domains

Latest Release CI Go 1.27.4 React 19 MIT License

Live Demo  ·  Documentation  ·  Quick Start  ·  Changelog  ·  中文文档


GopherForge Console Overview Automatically adapts to your GitHub light/dark theme · Live Demo runs on front-end mock data (any credentials work)


Why GopherForge

Most Go admin scaffolds stop at monoliths and Vue templates. GopherForge (formerly go-admin-kit) is built as a unified microservices monorepo from day one — pairing a production-grade platform core with independently trimmable business domains:

Pillar What you get
Real Microservices & Zero-Downtime Rollouts Traefik ForwardAuth centralized verification, 16 domain-split API services + standalone migrator, NATS JetStream and gRPC contracts; ships with both single-host Compose and Swarm start-first HA configs.
Modern React Across Desktop & Mobile React 19 + TypeScript + Vite 8 + Ant Design 6 with dark/light dual themes, zh/en i18n, and a PWA / Capacitor mobile operations shell.
Production Core Out of the Box RBAC with data scopes, multi-tenant packages, OAuth2/OIDC provider, BPM workflow + form builder, Traefik gateway policy governance & alert replay, ACME edge TLS lifecycle, and a visual code generator.
Layered & Trimmable Business Domains Clean separation between the platform base and business domains (AI, IM support, FreeSWITCH call center, CRM, social/OA, tickets, SEO/GEO visibility) — see comparison.

Quick Start

Requires Docker Desktop / Docker Engine 24+. One command brings up the shared network, stateful data stack, and application stack (data and app stacks are isolated so rebuilding services never touches database volumes):

git clone --branch v0.9.0 https://github.com/SuperiorChuo/gopherforge.git
cd gopherforge/microservices && cp .env.example .env
cd .. && make compose-up
Pull official multi-arch images from GHCR (linux/amd64 · linux/arm64)
cd microservices
export IMAGE_PREFIX=ghcr.io/superiorchuo/gopherforge/go-admin-kit
export IMAGE_TAG=v0.9.0
docker compose pull && docker compose up -d --no-build
Without make: equivalent three Docker Compose commands
cd microservices
docker network inspect go-admin-kit-net >/dev/null 2>&1 || \
  docker network create --subnet 172.28.0.0/16 go-admin-kit-net
docker compose -p go-admin-kit-infra -f docker-compose.infra.yml up -d
docker compose --profile compose-fallback up -d --build
Entrypoint Default URL Notes
Unified Gateway (recommended) http://localhost:8000 Local dev credentials: admin / admin123
Frontend Direct http://localhost:3000 Static bundle (route via gateway in production)
Readiness Probe http://localhost:8000/api/v1/health/ready Service & dependency readiness check

Production hardening (HTTPS, secret rotation, backups, rollback rehearsal) → Deployment Guide.


Architecture

flowchart LR
    Client["Web / Mobile / Widget"] --> GW["Traefik Gateway :8000"]

    subgraph Core["Core Platform"]
        AUTH["auth · JWT / OIDC"]
        IDT["identity · RBAC / Tenant"]
        SYS["system · Config / Codegen / TLS"]
        AUD["audit · Outbox / Logs"]
        FILE["file · MinIO / Local"]
        MON["monitor · Gateway / Alerts"]
        MIG["migrator · Goose Runner"]
        BPM["bpm · Workflow Engine"]
        NTF["notify · Inbox / Channels"]
        AI["ai · Models / KB / Agent"]
        PAY["pay · Mock Channel"]
    end

    subgraph Domains["Pluggable Business Domains (Experimental)"]
        IM["im · Support"]
        CC["cc · Call Center"]
        CRM["crm · Sales"]
        MP["mp · Social / OA"]
        TKT["ticket · SLA"]
        VIS["visibility · SEO / GEO"]
    end

    GW -. "ForwardAuth" .-> AUTH
    GW --> Core
    GW --> Domains

    subgraph Infra["Shared Data & Media"]
        PG[("PostgreSQL 18 + pgvector")]
        RD[("Redis 8")]
        NATS["NATS JetStream"]
        S3["MinIO S3"]
        FS["freeswitch-cc · Independent Compose"]
    end

    Core --- PG & RD
    AUTH -- "Events" --> NATS --> AUD
    FILE --- S3
    CC <--> FS
  • Gateway-enforced identity: Traefik verifies JWT/sessions centrally via ForwardAuth; downstream services share shared/pkg/bootstrap and shared/pkg/middleware and trust only gateway-injected X-Auth-* headers.
  • Standalone migration runner: monitor/migrations/ holds the goose SQL source of truth while migrator executes versioned upgrades and rehearsals independently (forward-only for public upgrades).
  • Decoupled media plane: freeswitch-cc/ runs FreeSWITCH + Go control-api in its own Compose stack, controlled over HTTP with HMAC CDR webhooks.

Capabilities & Boundaries

Core Platform

  • Auth & OAuth2/OIDC: invite-only registration, JWT rotation/revocation, captcha, TOTP 2FA, IP/account brute-force protection, full OAuth2 (PKCE / client_credentials) + OIDC (RS256 id_token, JWKS).
  • RBAC & Multi-tenancy: users, roles, permissions with diagnostics, departments, posts, menus, data scopes, shared-schema tenant_id isolation, tenant packages and per-tenant hot settings.
  • System, Edge TLS & Codegen: dictionaries, notices, DB hot config, SMS providers/templates, webhooks, ACME HTTP-01 edge TLS lifecycle with Traefik hot reload, visual CRUD/relation code generator, MinIO/local files and Excel I/O.
  • BPM Workflow: visual approval designer, no-code form builder with field-level permissions, parallel/sequential/conditional routing, delegation, timeout actions and terminal callbacks.
  • Gateway Governance & Observability: per-route IP allow/deny lists, rate limits, maintenance mode, alert replay and rollback; built-in alert engine, distributed job heartbeats, Prometheus / Grafana / Alertmanager / Loki / OTel integration.
  • AI & Notifications: AES-GCM encrypted multi-model management, pgvector KB, embedded agent worker, token usage & quotas; in-console inbox, email/SMS/webhook templates.

Pluggable Business Domains

Domain Scope Maturity
IM Support Embeddable widget, live agent desk, RAG bot pre-answers, customer 360, QA & sensitive-word filtering Experimental
Call Center (CC) WebPhone, IVR, queues/ring groups, recordings & ASR QA, outbound risk controls & billing (requires freeswitch-cc + CC_FS_API_BASE) Experimental
Sales CRM Lead distribution, automated customer pool recycling, drag-and-drop deal pipeline, contracts/payments wired into BPM Experimental
Social & WeChat OA Multi-account OA management, AI article generation, fans/menus, multi-channel publishing exports Experimental
Tickets State machine, assignment, comments, SLA tracking, one-click escalation from IM Experimental
SEO & AI Visibility Brand/competitor tracking, SERP monitoring, GEO LLM mention & recommendation analysis Experimental
Payments Order/refund state machine, idempotent creation, hosted cashier & webhook retry (mock channel only — WeChat/Alipay adapters are not implemented) Mock only

0.x project: Experimental APIs and schemas may still evolve. Rehearse upgrades on an isolated copy before upgrading production — see Upgrading.


Interface Preview

Login & 2FA

Login, Multi-tenant & 2FA

User Management

Users & Organization Directory

Role & Data Scope

Roles & Data Scope Control

PostgreSQL Monitoring

PostgreSQL & Resource Monitoring


Tech Stack

Layer Technologies
Backend & Data Go 1.27 · Gin 1.12 · GORM 1.31 / pgx · PostgreSQL 18 (pgvector) · Redis 8 · goose
Frontend & Mobile React 19 · TypeScript · Vite 8 · Ant Design 6 · Redux Toolkit · React Router 7 · i18next · Capacitor 8
Gateway & Messaging Traefik (ForwardAuth & dynamic policies) · NATS JetStream · gRPC / Protobuf · OpenAPI 3.1 · SIP.js
Observability & Storage Prometheus · Grafana · Alertmanager · Loki / Promtail · OpenTelemetry / Jaeger · MinIO S3
Delivery & CI Docker Compose · Docker Swarm (start-first) · GitHub Actions · Playwright E2E

Documentation, Security & Contributing

License

MIT

Explore related projects

Loading…