Monorepo for the chery-graph intelligence data fusion system — a Go backend stack with an Angular frontend.
Open
docs/architecture.drawioin VS Code with the draw.io extension or at app.diagrams.net.
chery-platform/
├── apps/
│ ├── chery-orchestrator/ # AI orchestrator (Go · :3001)
│ ├── chery-graph/ # Data fusion + search (Go · :8080)
│ └── chery-ui/ # Angular frontend (:4200)
├── api/openapi/ # OpenAPI specs
├── build/package/ # Dockerfiles (packaging)
├── configs/ # env files (.env.base[.host] + .env.lmstudio/.env.openrouter/.env.aiservices overlays)
├── deployments/ # orchestration (neo4j import/schema)
├── docs/ # Architecture diagrams
└── internal/ # Shared Go infrastructure (env, httputil)
| Service | Language | Port | Description |
|---|---|---|---|
| chery-orchestrator | Go | 3001 | AI orchestrator — chat sessions, LLM dispatch, tool execution |
| chery-graph | Go | 8080 | Data fusion — spatial telemetry ingestion, graph search |
| chery-ui | Angular | 4200 | Frontend — AI chat interface |
| Spec | Path |
|---|---|
| chery-orchestrator | api/openapi/chery-orchestrator.yaml |
| chery-graph telemetry | api/openapi/chery-graph-telemetry.yaml |
- Go 1.26+
- Node.js + pnpm
10.x - Docker + Docker Compose (for the full stack or infra-only deps)
- LM Studio with a local model loaded (used by chery-orchestrator as the LLM backend)
chery-orchestrator calls any OpenAI-compatible LLM server (/v1/chat/completions). Common options:
| Server | Default port |
|---|---|
| Ollama | 11434 |
| LM Studio | 1234 |
Start your server and load a model before running the stack.
Env is a base (location) + a provider overlay (LLM/backend), all checked in. Update the LLM fields to match your server and model:
configs/.env.base.host — host base, used when running services on the host (make run-*). Sets the local LLM_BASE_URL:
LLM_BASE_URL=http://127.0.0.1:<port> # e.g. 11434 for Ollama, 1234 for LM Studio
configs/.env.base — container base for Docker Compose (make docker-up). The orchestrator runs inside a container, so 127.0.0.1 resolves to the container itself — it uses host.docker.internal (Windows/Mac) or your host's LAN IP (Linux) instead:
LLM_BASE_URL=http://host.docker.internal:<port>
configs/.env.lmstudio — the default provider overlay (LM Studio + mock backend), layered on whichever base. Sets LLM_MODEL. Swap overlays with make docker-up-closed (.env.aiservices: GPT via ai-services + real backend) or LLM_OVERLAY=configs/.env.openrouter. See configs/README.md.
LLM_MODEL=<your-model-name>
Builds and runs every service (chery-graph, chery-orchestrator, Neo4j, Redis, MongoDB) in containers:
make vendor # once, while online — the images build from vendor/
make docker-upThe service images build with -mod=vendor so the whole stack can be built on a
closed network: vendor while online, carry the tree over, build there. See
Air-gapped builds.
| Service | URL |
|---|---|
| chery-orchestrator | http://localhost:3001 |
| chery-graph | http://localhost:8080 |
| Neo4j browser | http://localhost:7474 |
chery-ui is not containerized — run it on the host with
make ui-start(see below) and it will reach the dockerized chery-orchestrator atlocalhost:3001.
Stop the stack with make docker-down.
Run only Neo4j, Redis, and MongoDB in Docker, then run the Go services and UI directly on the host for fast iteration:
make run-infra # start Neo4j, Redis, MongoDB
make ui-install # first time only — install JS/TS deps
make run # run chery-graph + chery-orchestrator together
make ui-start # in another terminal — chery-ui dev server| Service | URL |
|---|---|
| chery-ui | http://localhost:4200 |
| chery-orchestrator | http://localhost:3001 |
| chery-graph | http://localhost:8080 |
| Neo4j browser | http://localhost:7474 |
Stop the infra-only stack with make run-infra-down.
make run-graph # chery-graph on :8080
make run-orchestrator # chery-orchestrator on :3001
make ui-start # chery-ui on :4200| Component | Default port | Role |
|---|---|---|
| Neo4j | 7474 (HTTP) · 7687 (Bolt) | Graph DB — Channel/H3Cell nodes, WAS_IN/LOOKS_AT edges plus their open CURRENT_* forms |
| Redis | 6379 | Spatial state store, debouncing TTLs |
| MongoDB | 27017 | Conversation history for chery-orchestrator |
| RabbitMQ | 5672 | High-frequency GeoJSON telemetry queue (optional, not part of docker-compose.yml) |
Services communicate by Docker service name inside Compose (e.g. neo4j, redis, mongodb), never by localhost.
make build # build all Go service binaries
make test # go test ./...
make test-integration # integration tests for both Go services
make lint # lint both Go services
make vet # go vet ./...
make ui-build # Angular production build
make ui-test # chery-ui testsEvery Go target runs in module mode (GOFLAGS=-mod=readonly), which is what CI
does. Set GOFLAGS yourself and it is respected as-is.
Building without network access needs a vendored dependency tree. vendor/ is
gitignored and never committed — vendor while online, carry the tree to the
closed network, build there.
make vendor # sync vendor/ to go.mod (needs network — run while online)
make build-vendor # build the Go binaries against the vendored tree
make docker-up # the service images build with -mod=vendor toomake vendor-update upgrades every Go dep, tidies, and re-vendors. make reset
re-vendors and wipes JS install state.
Everything else — every make and scripts/chery-* target — runs in module
mode and never reads vendor/, so a stale tree left over from an earlier
make vendor cannot break them. A bare go build ./... typed by hand still
auto-picks it up and can fail with inconsistent vendoring; re-sync it with
make vendor.
- One root
go.mod— all Go services share the modulegithub.com/Zetro-Crew/chery-platform. - Services are isolated by package layout — no cross-service Go imports. Cross-service traffic is HTTP only.
- Root
internal/is reserved for shared infrastructure (config, logger, observability, httpserver, authmiddleware, db, queue). Domain logic lives underapps/<service>/internal/. - JS package manager:
pnpm(workspace root:pnpm-workspace.yaml).
See AGENTS.md for the full agent and developer guide.