How ahmadshanti/sure works
Sure is a self-hostable personal-finance and wealth-management application, also reachable through browser, desktop/mobile clients, API clients, and LLM agents. The central workflow is a user connecting financial providers or importing records, then reviewing and managing accounts, transactions, budgets, investments, bills, and reports; AI chat adds grounded analysis and actions. The map groups these domain stages with authentication/API access and the interactive presentation layer. Edges are limited to README statements or shown calls/configuration; many route-to-controller and persistence links are omitted because source excerpts do not establish them.
Main entry points: controllers Web application · v1 REST API · main.ts Desktop client · ai_reviews_controller.rb Bill review prompt
Components 20
Access and clients
- Web application
app/controllers - REST API
app/controllers/api/v1 - Desktop client
desktop/src/main.ts - Authentication
app/controllers/api/v1/auth_controller.rb
Financial data
- Provider connections
app/controllers/provider_items_controller.rb - Financial imports
app/controllers/import/uploads_controller.rb - Accounts and balances
app/models/account/current_balance_manager.rb - Transactions
app/controllers/transactions_controller.rb - Investments
app/controllers/holdings_controller.rb - Attachments
config/initializers/active_storage_authorization.rb
Planning and insight
- Budgets and categories
app/controllers/budgets_controller.rb - Bills and recurring
app/controllers/bills_controller.rb - Goals
app/controllers/goals_controller.rb - Reports and insights
app/controllers/reports_controller.rb
AI assistance
- AI chat
app/models/ai/routes.rb - Bill review prompt
app/controllers/bills/ai_reviews_controller.rb
Interactive UI
- Design components
app/components/DS - Cash-flow visualization
app/javascript/controllers/preview_sankey_chart_controller.js - Offline service worker
app/views/pwa/service-worker.js
Other components
- People and clients
Connections 21
- People and clients → Web application: uses browser
- People and clients → Desktop client: uses desktop
- People and clients → REST API: uses API
- People and clients → AI chat: uses agents
- Desktop client → Web application: opens server
desktop/src/main.ts - REST API → Authentication: authenticates
- Web application → Provider connections: connects providers
- Web application → Financial imports: imports records
- Web application → Accounts and balances: manages accounts
- Web application → Transactions: manages activity
- Web application → Investments: tracks holdings
- Web application → Budgets and categories: plans spending
- Web application → Bills and recurring: reviews bills
- Web application → Goals: sets goals
- Web application → Reports and insights: views reports
- Web application → Attachments: serves attachments
config/initializers/active_storage_authorization.rb - Bill review prompt → AI chat: starts chat
app/controllers/bills/ai_reviews_controller.rb - Web application → Bill review prompt: requests review
- Cash-flow visualization → Transactions: navigates filters
app/javascript/controllers/preview_sankey_chart_controller.js - Web application → Design components: renders interface
- Web application → Offline service worker: provides offline support