How divdotdev/sumbit_safe_main works
SubmitSafe is a loan-readiness and application-preparation product with a React client and Express API. Users explore and compare loan products and schemes, prepare and analyze documents, review readiness, grant consent, and create or track applications; they can also request agent assistance. Admin and partner workflows support catalog and lead operations. The README documents mock and live provider modes and an application-aware Copilot. Several backend implementations were not sampled, so the graph shows documented capabilities and explicit route/provider wiring without asserting uncertain service-level calls.
Main entry points: index.js API routes · main.jsx SubmitSafe client · api.js API client · store.js Application store
Components 23
User experience
- SubmitSafe client
client/src/main.jsx - Loan discovery
client/src/pages/Loans.jsx - Document workspace
client/src/pages/Documents.jsx - Application journey
client/src/pages/Applications.jsx - Schemes and agents
client/src/pages/Schemes.jsx - Operations portal
client/src/pages/Operations.jsx - Copilot interface
client/src/components/Copilot.jsx - API client
client/src/services/api.js
API and workflows
- HTTP application
server/app.js - API routes
server/routes/index.js - Authentication
server/controllers/auth.js - Catalog workflows
server/controllers/catalog.js - Document workflows
server/controllers/documents.js - Consent and applications
server/controllers/workflows.js - Copilot API
server/controllers/copilot.js - Admin and partner API
server/routes/operations.js
Domain capabilities
- Readiness and matching
server/services - Document analysis
server/services/documentAnalysis.js - Sarthi assistance
server/services/sarthi.js
State and integrations
- Application store
server/services/store.js - Provider selection
server/providers/index.js
Other components
- Borrower
- External providers
Connections 34
- Borrower → SubmitSafe client: uses
- SubmitSafe client → Loan discovery: routes to
- SubmitSafe client → Document workspace: routes to
- SubmitSafe client → Application journey: routes to
- SubmitSafe client → Schemes and agents: routes to
- SubmitSafe client → Operations portal: routes to
- SubmitSafe client → Copilot interface: hosts
- Loan discovery → API client: requests
- Document workspace → API client: requests
- Application journey → API client: requests
- Schemes and agents → API client: requests
- Operations portal → API client: requests
- Copilot interface → API client: requests
- API client → HTTP application: calls API
- HTTP application → API routes: mounts
- API routes → Authentication: dispatches
- API routes → Catalog workflows: dispatches
- API routes → Document workflows: dispatches
- API routes → Consent and applications: dispatches
- API routes → Copilot API: dispatches
- API routes → Admin and partner API: mounts
- API routes → Application store: provides
- Catalog workflows → Readiness and matching: matches products
- Document workflows → Document analysis: analyzes documents
- Consent and applications → Application store: persists records
- Document workflows → Application store: reads and writes
- Authentication → Application store: reads and writes
- Catalog workflows → Application store: reads catalog
- Admin and partner API → Application store: manages records
- Copilot API → Sarthi assistance: grounds assistance
- Copilot API → Provider selection: uses AI
- Document workflows → Provider selection: uses verification
- Consent and applications → Provider selection: uses lender
- Provider selection → External providers: selects live integrations