Files
dd0c/products
Max Mayfield e0b84f5481
All checks were successful
CI — P2 Drift (Go + Node) / agent (push) Successful in 15s
CI — P2 Drift (Go + Node) / saas (push) Successful in 29s
Fix drift SET LOCAL: use string interpolation with UUID validation (SET doesn't support params)
2026-03-02 03:59:26 +00:00
..

dd0c — DevOps Developer Tools

Six products. One platform. Built for teams that ship.

Products

Product Port Description Stack
route 3001 LLM Cost Router & Dashboard Rust (proxy + API), React
drift 3002 IaC Drift Detection Go (agent), TypeScript/Fastify
alert 3003 Alert Intelligence TypeScript/Fastify
portal 3004 Lightweight Service Catalog TypeScript/Fastify, Meilisearch
cost 3005 AWS Cost Anomaly Detection TypeScript/Fastify
run 3006 Runbook Automation Rust (agent), TypeScript/Fastify

Quick Start

# 1. Start shared infra (Postgres, Redis, Meilisearch)
docker compose -f products/docker-compose.yml up -d postgres redis meilisearch

# 2. Create databases and run migrations
./products/init-db.sh

# 3. Start all services
docker compose -f products/docker-compose.yml up -d

Architecture

┌─────────────┐  ┌─────────────┐  ┌─────────────┐
│  Cloudflare  │  │   Fly.io    │  │   Fly.io    │
│    Pages     │  │   (proxy)   │  │   (APIs)    │
│  React UIs   │  │  P1 route   │  │  P3-P6 SaaS │
└──────┬───────┘  └──────┬──────┘  └──────┬──────┘
       │                 │                │
       └────────────┬────┘────────────────┘
                    │
              ┌─────┴─────┐
              │   Neon PG  │  ← RLS per tenant
              │  + Upstash │  ← Redis cache
              └────────────┘

Auth

All products share the same auth pattern:

  • JWT (Bearer token) for browser/API access
  • API Key (dd0c_ prefix + 32 hex) for agents/CLI
  • HMAC for webhook endpoints (per-provider secrets)
  • RBAC: owner > admin > member > viewer

Shared Patterns

  • RLS tenant isolation: withTenant() wrapper on every DB call
  • Zod config validation: Environment variables validated at startup
  • Fastify: All Node services use Fastify with cors + helmet
  • Pino: Structured JSON logging everywhere
  • Gitea Actions CI: Test + typecheck + lint on every push

Local Development

Each product can run standalone:

cd products/03-alert-intelligence
npm install
npm run dev  # tsx watch mode

Or run the full stack via Docker Compose (see Quick Start).

Deployment

V1 Target: Fly.io (~$5/mo total)

  • Each product has a fly.toml with scale-to-zero
  • Shared Neon Postgres (free tier) + Upstash Redis (free tier)
  • Cloudflare Pages for React dashboards
  • Caddy for self-hosted TLS (optional)

Scale Target: AWS (ECS Fargate + RDS + ElastiCache)

  • Same Docker images, only env vars change
  • Migration path documented in each product's INFRASTRUCTURE.md

CI/CD

All products use Gitea Actions with self-hosted runners:

  • .gitea/workflows/ci.yml — test, typecheck, lint
  • .gitea/workflows/deploy.yml — build + push to Fly.io (where applicable)

License

Proprietary. © dd0c 2026.

2026-03-01T06:42:42Z