How jahfeelautomation/openlevel works
OpenLevel is a multi-tenant, AI-oriented CRM with a web SPA, an Expo mobile client, and a Hono API. The operator workflow is to sign in, work within a location, and manage CRM records and business operations through the clients and API. The backend also supports public-facing pages, integrations, and agent/workflow automation. Several domain branches are documented or routed in the sampled files, but their internal calls were not sampled; those links are therefore omitted. Source evidence for mobile covers pipeline and review screens, not every mobile capability.
Main entry points: index.ts API server · routes CRM and domain routes · api.ts Typed API client · base-repo.ts Location-scoped repository
Components 24
Operator clients
- Web application
src/App.tsx - CRM and business screens
src/features - Typed API client
src/lib/api.ts - Mobile application
openconnector/app - Mobile API context
openconnector/app/ctx.tsx - Pipeline settings
src/features/settings/PipelinesSettingsPage.tsx
API and access
- API server
server/index.ts - Authentication
server/middleware/auth.ts
CRM and operations
- CRM and domain routes
server/routes - Pipeline routes
server/routes/pipelines.ts - Pipeline repository
server/repos/pipelines-repo.ts - Domain repositories
server/repos - Public pages
server/routes/public-funnels.ts - External integrations
server/routes/webhooks-chatwoot.ts
AI and automation
- Agent reply worker
server/jobs/agent-reply.ts - Agent engine
server/lib/agent-engine.ts - Anthropic client
server/lib/anthropic.ts - Workflow dispatcher
server/jobs/workflow-dispatcher.ts - Workflow runner
server/jobs/workflow-runner.ts
Persistence
- Database interface
server/db/database.ts - Postgres database
server/db/database.ts - Location-scoped repository
server/repos/base-repo.ts - Contact timeline
server/repos/timeline-repo.ts
Other components
- Operator
Connections 27
- Operator → Web application: uses
src/App.tsx - Web application → CRM and business screens: routes to
src/App.tsx - CRM and business screens → Typed API client: requests data
src/features/tasks/TasksPage.tsx - Operator → Mobile application: uses
README.md - Mobile application → Mobile API context: uses context
openconnector/app/(tabs)/pipelines.tsx - Mobile API context → Typed API client: uses API
openconnector/app/ctx.tsx - Typed API client → API server: calls API
src/lib/api.ts - API server → Authentication: applies
server/index.ts - API server → CRM and domain routes: mounts routes
server/index.ts - CRM and business screens → Pipeline settings: includes settings
src/App.tsx - Pipeline settings → Typed API client: requests data
src/features/settings/PipelinesSettingsPage.tsx - CRM and domain routes → Pipeline routes: includes
- Pipeline routes → Pipeline repository: calls
server/routes/pipelines.ts - Pipeline repository → Location-scoped repository: extends
server/repos/pipelines-repo.ts - CRM and domain routes → Public pages: mounts public pages
- CRM and domain routes → External integrations: mounts webhook
- External integrations → Domain repositories: updates records
server/routes/webhooks-chatwoot.ts - API server → Agent reply worker: enqueues replies
server/index.ts - Agent reply worker → Agent engine: generates reply
server/jobs/agent-reply.ts - Agent engine → Anthropic client: runs model
server/lib/agent-engine.ts - Agent engine → Contact timeline: reads history
server/lib/agent-engine.ts - Agent reply worker → Workflow dispatcher: dispatches events
server/jobs/agent-reply.ts - Workflow dispatcher → Workflow runner: starts runs
server/jobs/workflow-dispatcher.ts - Pipeline repository → Location-scoped repository: queries through
server/repos/pipelines-repo.ts - Location-scoped repository → Database interface: queries
server/repos/base-repo.ts - Database interface → Postgres database: implemented by
server/db/database.ts - Contact timeline → Location-scoped repository: extends
server/repos/timeline-repo.ts