How done-think/ketris works
Ketris is a multi-tenant real-estate SaaS. Its user-facing workflows span account access, property and CRM work, contracts, scheduling, verification, finance, and public marketplace profiles; platform administration and maintenance are additional product areas. The documented backend is a Next.js BFF backed by PostgreSQL through Prisma. The graph preserves the major product branches visible in the tree, but most server-domain internals were not sampled, so their connections are intentionally limited. CRM control-flow edges and face-analysis integration are supported by excerpts.
Main entry points: SalesPipelineBoard.tsx Pipeline board · [locale] Web application · api Next.js BFF · s3-maintenance-attachment-storage.ts Attachment storage
Components 27
User experience
- Web application
apps/web/src/app/[locale] - Account access
apps/web/src/modules/auth
Real estate operations
- CRM pipeline
apps/web/src/modules/crm - Property management
apps/web/src/app/[locale]/(dashboard)/dashboard/properties - Agenda scheduling
apps/web/src/modules/agenda - Contracts
apps/web/src/app/api/contracts - Public marketplace
apps/web/src/app/[locale]/(public) - Pipeline board
apps/web/src/modules/crm/components/SalesPipelineBoard.tsx - Opportunity creation
apps/web/src/modules/crm/components/opportunity-detail/CreateOpportunityDialog.tsx - Opportunity actions
apps/web/src/modules/crm/hooks/use-opportunities.ts - Kanban view
apps/web/src/modules/crm/components/SalesPipelineKanbanView.tsx - Proposal list
apps/web/src/modules/crm/components/CrmProposalsList.tsx - Pipeline controls
apps/web/src/modules/crm/components/sales-pipeline-board/SalesPipelineToolbar.tsx
Trust and services
- Face verification
apps/web/src/app/api/face_check - Face analysis engine
services/face_check_engine/http_service.py - Financial charges
apps/web/src/app/api/financial/charges - Maintenance tickets
apps/web/src/app/api/maintenance/tickets - Face engine client
apps/web/src/server/face_check/face-match/http-face-engine.ts
Platform operations
- Team management
apps/web/src/app/api/team - Tenant administration
apps/web/src/app/api/platform/tenants
Backend infrastructure
- Next.js BFF
apps/web/src/app/api - PostgreSQL via Prisma
apps/web/prisma - Attachment storage
apps/web/src/server/maintenance/infrastructure/s3-maintenance-attachment-storage.ts - Document storage
apps/web/src/server/contracts/infrastructure/s3-contract-document-storage.ts - Receipt storage
apps/web/src/server/financial/infrastructure/s3-charge-receipt-storage.ts - Amazon S3
Other components
- People and organizations
Connections 16
- People and organizations → Web application: uses
README.md - Web application → Next.js BFF: submits requests
README.md - Next.js BFF → PostgreSQL via Prisma: uses Prisma
README.md - Web application → Pipeline board: renders pipeline
- Pipeline board → Pipeline controls: renders controls
apps/web/src/modules/crm/components/SalesPipelineBoard.tsx - Pipeline board → Opportunity creation: renders dialog
apps/web/src/modules/crm/components/SalesPipelineBoard.tsx - Pipeline board → Opportunity actions: creates opportunity
apps/web/src/modules/crm/components/SalesPipelineBoard.tsx - Pipeline board → Kanban view: renders kanban
apps/web/src/modules/crm/components/SalesPipelineBoard.tsx - Pipeline board → Proposal list: renders list
apps/web/src/modules/crm/components/SalesPipelineBoard.tsx - Face engine client → Face analysis engine: posts analyses
apps/web/src/server/face_check/face-match/http-face-engine.ts - Maintenance tickets → Attachment storage: stores attachments
- Contracts → Document storage: stores documents
- Financial charges → Receipt storage: stores receipts
- Attachment storage → Amazon S3: reads and writes
apps/web/src/server/maintenance/infrastructure/s3-maintenance-attachment-storage.ts - Document storage → Amazon S3: reads and writes
apps/web/src/server/contracts/infrastructure/s3-contract-document-storage.ts - Receipt storage → Amazon S3: reads and writes
apps/web/src/server/financial/infrastructure/s3-charge-receipt-storage.ts