BunshipBunship

Architecture

Runtime topology, route boundaries, and integration boundaries.

Positioning

Bunship is deployed as a single site: one web deployment serves marketing, app workspace, admin console, and docs.

Stack Overview

DomainStackPurpose
Web runtimeNext.js 16 + App RouterUnified route hosting and rendering
Business APIElysiaDomain logic and external service orchestration
AuthBetter Auth / ClerkIdentity, sessions, OAuth, and account lifecycle
DataPostgreSQL + DrizzlePersistent business state and typed access
Queue/cacheRedisAsync jobs, queue control, and rate limiting
BillingStripeSubscription billing and payment lifecycle
StorageS3-compatible storageAsset upload and delivery
AIMulti-provider integrationModel execution and generation workflow

Runtime Topology

Rendering diagram...

Request Flows

Business requests

  1. Browser loads page or triggers API action.
  2. Web layer forwards business calls to API layer.
  3. API layer applies domain rules and calls dependencies.
  4. Response updates user/admin UI.

Docs search requests

  1. Browser sends docs search query.
  2. Docs search service resolves indexed content.
  3. Result set is returned to docs UI with highlighted matches.

Boundary Rules

  • Marketing routes focus on growth and conversion.
  • App routes focus on end-user workflows.
  • Admin routes focus on operations and governance.
  • Docs routes focus on onboarding, integration guidance, and operations playbooks.

Docs uses an isolated layout/theme so docs styling does not affect marketing/app/admin interfaces.