How thugney/vert works
Eriteach is a multi-tenant appointment and customer-service platform, with web and API booking alongside voice and SMS channels. The main workflow is a customer request entering through a channel, being scoped to a tenant, verified and checked against booking rules, then reserved through a booking engine. Businesses also configure and activate their service through onboarding and the portal; background workers handle push notifications and events. The README is empty, so capability coverage is based on the source tree and SOURCE INDEX; several subsystem links remain omitted where excerpts do not show the caller.
Main entry points: booking-service.ts Booking service · app.ts HTTP API · worker.ts Push worker · webhook.ts Voice tool webhook
Components 30
Application entry
- Server runtime
src/server.ts - HTTP API
src/api/app.ts - API routes
src/api/api-routes.ts
Booking and tenants
- Tenant scope
src/db-scope.ts - Tenant configuration
src/tenants.ts - Booking service
src/core/booking-service.ts - Booking engine
src/adapters/engine.ts - Availability rules
src/core/closures.ts - Booking policy
src/policy.ts - Country profiles
src/countries.ts - Verification service
src/verification/service.ts - Phone codes
src/verification/phone-code.ts
Customer channels
- Voice tool webhook
src/voice/webhook.ts - SMS worker
src/channels/sms-worker.ts - SMS inbound
src/sms-inbound.ts
Business operations
- Registration
src/registration.ts - Onboarding routes
src/api/onboarding-routes.ts - Work management
src/work.ts - Alerts
src/alerts/service.ts - Event delivery
src/events/service.ts - Push worker
src/push/worker.ts - Push delivery
src/push/web-push.ts
Web experience
- Tenant web app
web/app/[tenant]/page.tsx - Web API client
web/lib/api.ts - OIDC authentication
web/lib/oidc.ts
Other components
- Customer
- Business user
- PostgreSQL
- Voice platform
- SMS provider
Connections 30
- Server runtime → HTTP API: builds
src/server.ts - Server runtime → Booking engine: creates
src/server.ts - Server runtime → Push worker: runs rounds
src/server.ts - HTTP API → Booking service: routes bookings
src/api/app.ts - HTTP API → SMS inbound: registers inbound
src/api/app.ts - HTTP API → Tenant scope: scopes requests
src/api/app.ts - API routes → Booking service: serves API
- Booking service → Booking engine: reserves slots
src/core/booking-service.ts - Booking service → Country profiles: checks country rules
src/core/booking-service.ts - Booking service → Verification service: assesses verification
src/core/booking-service.ts - Booking service → Phone codes: uses code service
src/core/booking-service.ts - Tenant configuration → Booking policy: validates policy
src/tenants.ts - Voice tool webhook → Tenant scope: sets scope
src/voice/webhook.ts - Voice tool webhook → Tenant configuration: resolves called number
src/voice/webhook.ts - Voice tool webhook → Booking service: handles booking tools
src/voice/webhook.ts - Voice platform → Voice tool webhook: calls tools
src/voice/webhook.ts - SMS worker → Tenant scope: scopes work
src/channels/sms-worker.ts - SMS worker → Tenant configuration: uses tenant channel
src/channels/sms-worker.ts - SMS provider → SMS inbound: delivers messages
- Onboarding routes → Registration: creates assisted tenants
src/api/onboarding-routes.ts - Push worker → Tenant scope: scopes delivery
src/push/worker.ts - Push worker → Tenant configuration: loads tenant
src/push/worker.ts - Push worker → Push delivery: sends notifications
src/push/worker.ts - Push delivery → PostgreSQL: delivers subscriptions
- Booking service → PostgreSQL: persists bookings
- Business user → Tenant web app: manages service
- Customer → Tenant web app: requests booking
- Tenant web app → Web API client: calls API
- Web API client → HTTP API: sends requests
- Tenant web app → OIDC authentication: authenticates