PrimeBrickPrimeBrick
  • Docs
  • Contact
  • MIT License
  • Documentation
  • MCP Server
  • API Catalog
  • Services
  • Libraries
PrimeBrickPrimeBrick

© 2026 PrimeBrick. MIT License. v3.8.0

github
Backend
Frontend
Microservices
    Microservices OverviewArchitectureConventions
    Services
powered by Zudoku
Microservices

Microservices Overview

The primebrick-us-v3 repository contains the distributed microservices that make up the Primebrick v3 backend. Each microservice is a self-contained sub-folder with its own src/, package.json, Dockerfile, db-meta/, and terraform/ configuration.

Tech stack

  • Runtime: Bun (dev with --hot reload, prod with bun dist/index.js)
  • Language: TypeScript (strict mode)
  • HTTP: Node.js HTTP server via @primebrick/sdk's createHttpServer
  • Messaging: NATS (via @primebrick/sdk's NatsClient)
  • Database: PostgreSQL (via @primebrick/dal-pg)
  • Package manager: pnpm
  • Templates: Handlebars (where applicable)

Service catalog

ServiceCodePortDescription
EmailSenderEMAILSENDER3003Email provider configuration, template rendering, and email dispatch via Brevo

New microservices are added as new top-level sub-folders. Each must contain a package.json with a name starting with primebrick- and a src/index.ts entry point.

Architecture at a glance

The Backend (BE) acts as the API gateway. The Frontend (FE) never calls microservices directly — all HTTP traffic goes through the BE's /ws/:serviceCode/* proxy. Inter-service async communication uses NATS subjects.

Next steps

  • Architecture — NATS bus, BE proxy, SDK lifecycle
  • Conventions — API path conventions, data model rules
  • EmailSender — Email sending microservice
Last modified on July 26, 2026
API ReferenceArchitecture
On this page
  • Tech stack
  • Service catalog
  • Architecture at a glance
  • Next steps