LADDER API Architecture

Hexagonal backend with Hono, Drizzle ORM, Better Auth via Gateway

LADDER API Architecture Hexagonal backend with Hono, Drizzle ORM, Better Auth via Gateway ladder-web · Astro frontend · Architecture component ladder-web Astro frontend ladder-gateway · Auth proxy · Architecture component ladder-gateway Auth proxy ladder-api · Hono + hexagonal · Architecture component ladder-api Hono + hexagonal PostgreSQL · Drizzle ORM · Architecture component · PostgreSQL PostgreSQL Drizzle ORM Cloudflare R2 · Image storage · Architecture component · Cloudflare Cloudflare R2 Image storage Resend · Email delivery · Architecture component Resend Email delivery Turnstile · Captcha · Architecture component · Cloudflare Turnstile Captcha GlitchTip · Error tracking · Architecture component GlitchTip Error tracking HTTPS Auth headers SQL Upload Email Verify Errors Legend Frontend Backend Database Cloud Security External

Hexagonal Architecture

  • • Domain layer (entities + ports) in src/domain/
  • • Application layer (use cases) in src/application/
  • • Infrastructure adapters in src/infrastructure/

Active Domains

  • • Core: lead, form-submission, analytics, newsletter
  • • Sites: sites, product, client, documents
  • • Billing: invoice, payout, plan-usage

Gateway Auth

  • • Auth centralized in ladder-gateway
  • • X-User-Id / X-User-Role headers
  • • X-Gateway-Secret validation