How di-sukharev/vibe works
This is a web-product template with a public Astro site, a signed-in React application, and a backend API backed by PostgreSQL. The principal workflow is a user interacting with the webapp, which routes requests to backend authentication and account services; the backend also provides admin and avatar-upload capabilities. Backend storage drivers, email delivery, and outbox processing form supporting layers. The graph reflects README statements and sampled source; unsampled subsystem links are omitted where their callers were not shown.
Main entry points: app.ts HTTP application · auth-service.ts Authentication · auth-repository.ts Auth repository · port.ts Private storage
Components 20
Web clients
- Public site
website/src/components/landing/HeroSceneCanvas.tsx - App routes
webapp/src/routes.tsx - App pages
webapp/src/pages.tsx
Backend API
- HTTP application
backend/src/app.ts - Auth routes
backend/src/modules/auth/transport/routes.ts - User routes
backend/src/modules/users/transport/routes.ts - Upload routes
backend/src/modules/uploads/transport/routes.ts
Product services
- Authentication
backend/src/modules/auth/application/auth-service.ts - Auth repository
backend/src/modules/auth/infrastructure/auth-repository.ts - User management
backend/src/modules/users/application/users-service.ts - Avatar handling
backend/src/modules/uploads/application/avatars-service.ts
Backend infrastructure
- PostgreSQL
backend/src/db.ts - Private storage
backend/src/storage/port.ts - Filesystem driver
backend/src/storage/filesystem-storage.ts - S3 driver
backend/src/storage/s3-storage.ts - Email delivery
backend/src/email/index.ts - Outbox handlers
backend/src/outbox/handlers.ts
Shared API
- API contracts
packages/contracts/src/auth.ts
Other components
- Visitor
- API client
Connections 19
- Visitor → Public site: views pages
README.md - Visitor → App routes: uses app
README.md - App routes → App pages: loads pages
webapp/src/routes.tsx - App pages → HTTP application: requests API
README.md - API client → HTTP application: calls API
README.md - HTTP application → Auth routes: mounts routes
backend/src/app.ts - HTTP application → User routes: mounts routes
backend/src/app.ts - HTTP application → Upload routes: mounts routes
backend/src/app.ts - Auth routes → Authentication: calls service
backend/src/modules/auth/transport/routes.ts - Authentication → Auth repository: uses repository
backend/src/modules/auth/index.ts - Auth repository → PostgreSQL: queries database
backend/src/modules/auth/infrastructure/auth-repository.ts - User routes → User management: calls service
backend/src/modules/users/transport/routes.ts - Upload routes → Avatar handling: calls service
backend/src/modules/uploads/transport/routes.ts - HTTP application → Private storage: configures storage
backend/src/app.ts - Private storage → Filesystem driver: uses driver
backend/src/storage/filesystem-storage.ts - Private storage → S3 driver: uses driver
backend/src/storage/s3-storage.ts - Authentication → Email delivery: sends email
- Auth repository → Outbox handlers: enqueues tasks
backend/src/modules/auth/infrastructure/auth-repository.ts - Authentication → API contracts: uses schemas
backend/src/modules/auth/application/auth-service.ts