How projectmeru/sumeru works
Sumeru is a modular ERP/CRM kernel: users enter through a browser workspace, choose an app or action, work with records and views, and receive results through the Go server backed by PostgreSQL. Its major capabilities include model/ORM services, installable modules, imports and reports, scheduled work, and the SWC client shell. The client startup and selected interactions are evidenced by excerpts and the source index; several backend links are documented only at the product level, so unsampled internals are not connected speculatively.
Main entry points: main.ts Browser workspace · crud_search.go ORM and security · env.ts Client services · dispatch.go Web and RPC API
Components 19
SWC client
- Browser workspace
core/swc/src/main.ts - Bootstrap data
core/swc/src/types/bootstrap.ts - Client runtime
core/swc/src/runtime/app.ts - Client services
core/swc/src/runtime/env.ts - Workspace views
core/swc/src/views - Record client model
core/swc/src/model/record.ts - Developer tools
core/swc/src/devtools/debug.ts
Server kernel
- Go server
core/server/run.go - Web and RPC API
core/server/api/dispatch.go - ORM and security
core/orm/crud_search.go - PostgreSQL
ERP capabilities
- Installable modules
core/module - Platform apps
addons/platform - Import and reports
core/report
Background services
- Scheduled jobs
core/scheduler/scheduler.go - Mail worker
core/mail/worker.go - Job queue
core/queue/inproc.go
Other components
- ERP user
- External services
Connections 16
- ERP user → Browser workspace: uses
- Browser workspace → Bootstrap data: reads
core/swc/src/main.ts - Browser workspace → Client runtime: starts
core/swc/src/main.ts - Browser workspace → Client services: configures
core/swc/src/main.ts - Client runtime → Workspace views: renders
- Client services → Record client model: provides
core/swc/src/runtime/env.ts - Client services → Web and RPC API: calls JSON-RPC
- Browser workspace → Developer tools: initializes
core/swc/src/main.ts - Go server → Web and RPC API: serves
- Web and RPC API → ORM and security: dispatches
- ORM and security → PostgreSQL: reads and writes
- Installable modules → ORM and security: registers models
- Platform apps → Installable modules: extends
- Import and reports → ORM and security: imports and exports
- Scheduled jobs → Job queue: dispatches jobs
- Mail worker → External services: sends mail