How feedutia/portabilize.ai-real works
Portabilize.ai is a CRM for consignado-credit portability. Its documented operator workflow covers authentication, client and contract data, financial simulation/analysis, and operational tracking; a Python motor separately extracts structured data from uploaded documents. The graph preserves the documented capabilities, but sampled frontend files do not show their API calls, and the excerpts do not establish how the Node routes communicate with the Python motor. Those links are therefore omitted rather than inferred.
Main entry points: auth.ts Auth router · pipeline.py Extraction pipeline · dataRoutes.ts Data and simulation API · server.ts HTTP server
Components 34
Operator interface
- Client forms
frontend/js/modules/app-forms.js - Admin tools
frontend/js/modules/app-admin.js - Client tracking
frontend/js/modules/app-tracking.js - Motor UI
frontend/js/modules/app-motor.js - Finance calculations
frontend/js/finance.js - Nuclea support
frontend/js/nuclea.js
CRM backend
- HTTP server
backend/server.ts - Data and simulation API
backend/dataRoutes.ts - Attachment API
backend/attachmentRoutes.ts - Motor API routes
backend/motorRoutes.ts - Financial validator
backend/financialEngine.ts - Request validation
backend/schema.ts - Audit log
backend/audit.ts
Identity and security
- Auth router
backend/auth.ts - Login and TOTP
backend/auth-routes-login.ts - User administration
backend/auth-routes-admin.ts - Auth state and limits
backend/auth-state.ts - User cache
backend/auth-cache.ts - Login lockout
backend/auth-lockout.ts - Auth middleware
backend/auth-middleware.ts - Secret encryption
backend/crypto-helpers.ts
Persistence
- Database selector
backend/database.ts - Local JSON store
backend/database-local.ts - Cosmos store
backend/database-cosmos.ts
Document extraction motor
- Motor entry point
motor/main.py - CRM adapter
motor/engine/adaptador_crm.py - Extraction pipeline
motor/engine/pipeline.py - Document ingestion
motor/engine/camada1_ingestao/leitor_pdf.py - OCR
motor/engine/camada1_ingestao/ocr.py - Text structuring
motor/engine/camada1_ingestao/estruturador.py - Document classification
motor/engine/camada2_classificacao/classificador.py - Template extraction
motor/engine/camada3_extracao/extrator_template.py - LLM extraction fallback
motor/engine/camada3_extracao/extrator_llm.py
Other components
- Operator
Connections 36
- Operator → Client forms: enters client workflow
- Operator → Admin tools: uses administration
- Operator → Client tracking: tracks clients
- Operator → Motor UI: uses document motor
- Finance calculations → Financial validator: server rechecks calculations
backend/financialEngine.ts - HTTP server → Auth router: mounts routes
backend/server.ts - HTTP server → Data and simulation API: mounts routes
backend/server.ts - HTTP server → Attachment API: mounts routes
backend/server.ts - HTTP server → Motor API routes: mounts routes
backend/server.ts - Data and simulation API → Database selector: reads and writes
backend/dataRoutes.ts - Data and simulation API → Financial validator: runs simulation
backend/dataRoutes.ts - Data and simulation API → Request validation: validates requests
backend/dataRoutes.ts - Data and simulation API → Audit log: records events
backend/dataRoutes.ts - Attachment API → Auth router: uses authentication
backend/attachmentRoutes.ts - Motor API routes → Auth router: uses authentication
backend/motorRoutes.ts - Auth router → Login and TOTP: mounts router
backend/auth.ts - Auth router → User administration: mounts router
backend/auth.ts - Auth router → Auth state and limits: uses shared state
backend/auth.ts - Auth router → User cache: initializes cache
backend/auth.ts - Auth router → Auth middleware: exports guards
backend/auth.ts - Login and TOTP → Auth state and limits: uses user state
backend/auth-routes-login.ts - Login and TOTP → Login lockout: updates failure limits
backend/auth-routes-login.ts - Login and TOTP → Audit log: records login events
backend/auth-routes-login.ts - User administration → User cache: refreshes user cache
backend/auth-routes-admin.ts - User administration → Audit log: records admin events
backend/auth-routes-admin.ts - Auth state and limits → Secret encryption: decrypts cached secrets
backend/auth-state.ts - Database selector → Cosmos store: selects when configured
backend/database.ts - Database selector → Local JSON store: selects by default
backend/database.ts - Motor entry point → Extraction pipeline: invokes pipeline
motor/main.py - Motor entry point → CRM adapter: uses adapter
motor/main.py - Extraction pipeline → Document ingestion: reads documents
motor/engine/pipeline.py - Extraction pipeline → OCR: runs OCR
motor/engine/pipeline.py - Extraction pipeline → Text structuring: structures text
motor/engine/pipeline.py - Extraction pipeline → Document classification: classifies document
motor/engine/pipeline.py - Extraction pipeline → Template extraction: tries templates
motor/engine/pipeline.py - Extraction pipeline → LLM extraction fallback: falls back to LLM
motor/engine/pipeline.py