Architecture
Shoehorn is built as a set of focused Go microservices communicating over gRPC, fronted by a REST API gateway and a Svelte single-page application.
System overview
Section titled “System overview”Service descriptions
Section titled “Service descriptions”| Service | Port (HTTP/gRPC) | Purpose |
|---|---|---|
| API | 8080 / - | REST API gateway. Routes requests to microservices via gRPC. Handles authentication, authorization, tenant context, and search (via Meilisearch). |
| Worker | 8085 / 9085 | Background job processor and event streaming manager. Handles async tasks like manifest processing, scorecard evaluation, and data enrichment, and publishes/consumes domain events via Redpanda. |
| Crawler | 8086 / 9086 | Repository discovery and GitHub integration. Fetches manifests, READMEs, and repository metadata. |
| Forge | 8087 / 9087 | Workflow engine and scaffolding. Manages molds (templates), workflow execution, and approval flows. |
Data flow
Section titled “Data flow”Authentication flow
Section titled “Authentication flow”Kubernetes data flow
Section titled “Kubernetes data flow”Entity discovery flow
Section titled “Entity discovery flow”Infrastructure components
Section titled “Infrastructure components”PostgreSQL 18
Section titled “PostgreSQL 18”Primary data store. Tenant data is isolated at the database level, not just in application code.
- pgaudit: SQL audit logging enabled in production
Meilisearch
Section titled “Meilisearch”Full-text search engine providing sub-50ms fuzzy search.
- Indexes: entities, teams, documentation
- Supports typo-tolerance, faceted filtering, and ranking rules
Valkey
Section titled “Valkey”Redis-compatible in-memory cache.
- Entity and repository data caching
- Session data (when not using JWT)
- Rate limiting counters
Redpanda
Section titled “Redpanda”Kafka-compatible event streaming platform.
- Domain events (entity created, updated, deleted)
- Webhook delivery
- Async job queuing
Cerbos
Section titled “Cerbos”Policy-as-code authorization engine.
- RBAC policies defined in YAML
- Evaluates permissions per request
- Supports resource-level and action-level policies