How harshbhanushali26/finos works
FinOS is a personal-finance web application with two independent interaction paths: a visual dashboard and a conversational agent. Dashboard actions reach API capabilities directly; chat routes through session state and pattern matching before falling back to the LLM and its tools. Both paths operate on shared finance data. The README documents analytics, budgets, insights, forecasting, health scoring, and export. Some of those implementations were not sampled, so their internal links are omitted; documented product relationships are cited to the README.
Main entry points: main.py FastAPI application · models.py Finance data models · services.py Transaction services · orchestrator.py Message orchestrator
Components 27
User experience
- Web dashboard
frontend/app.js
API capabilities
- FastAPI application
api/main.py - Authentication
api/routes/auth.py - Transactions
api/routes/transactions.py - Categories
api/routes/categories.py - Payment methods
api/routes/payment_methods.py - Analytics
api/routes/analytics.py - Budget tracking
api/routes/budget.py - Financial insights
api/routes/insights.py - Transaction export
api/routes/export.py - Chat endpoint
api/routes/chat.py
Conversational agent
- Agent session state
agent/session.py - Message orchestrator
agent/orchestrator.py - Pattern matching
agent/pattern_matcher.py - LLM and classifier
agent/llm.py - Tool registry
tools/registry.py - Transaction tools
tools/tool_transactions.py - Analytics tools
tools/tool_analytics.py - Budget tools
tools/tool_budget.py
Finance and persistence
- Transaction services
core/services.py - Aggregate queries
core/shared_analytics.py - Budget operations
core/shared_budget.py - Transaction queries
core/shared_txns.py - Finance data models
core/models.py - SQLite database
core/database.py - Auth and sessions
core/auth.py
Other components
- Finance user
Connections 46
- Finance user → Web dashboard: uses dashboard
README.md - Web dashboard → FastAPI application: submits actions
README.md - FastAPI application → Authentication: registers routes
api/main.py - FastAPI application → Transactions: registers routes
api/main.py - FastAPI application → Categories: registers routes
api/main.py - FastAPI application → Payment methods: registers routes
api/main.py - FastAPI application → Analytics: registers routes
api/main.py - FastAPI application → Budget tracking: registers routes
api/main.py - FastAPI application → Financial insights: registers routes
api/main.py - FastAPI application → Transaction export: registers routes
api/main.py - FastAPI application → Chat endpoint: registers routes
api/main.py - Finance user → Chat endpoint: sends messages
README.md - Chat endpoint → Message orchestrator: routes messages
api/routes/chat.py - Message orchestrator → Agent session state: checks state
agent/orchestrator.py - Message orchestrator → Pattern matching: tries patterns
agent/orchestrator.py - Message orchestrator → LLM and classifier: falls back
agent/orchestrator.py - LLM and classifier → Tool registry: loads tools
agent/llm.py - Tool registry → Transaction tools: registers tools
tools/registry.py - Tool registry → Analytics tools: registers tools
tools/registry.py - Tool registry → Budget tools: registers tools
tools/registry.py - Message orchestrator → Transaction services: executes confirmations
agent/orchestrator.py - Transactions → Transaction services: handles transactions
README.md - Transaction tools → Transaction services: uses services
tools/tool_transactions.py - Pattern matching → Transaction services: queries transactions
agent/pattern_matcher.py - Transaction services → Transaction queries: uses query helpers
core/services.py - Analytics → Aggregate queries: queries aggregates
api/routes/analytics.py - Analytics tools → Aggregate queries: queries aggregates
tools/tool_analytics.py - Budget tracking → Budget operations: uses budget logic
api/routes/budget.py - Budget tools → Budget operations: uses budget logic
tools/tool_budget.py - Budget tools → Aggregate queries: queries aggregates
tools/tool_budget.py - Financial insights → Agent session state: serves insights
- Financial insights → Aggregate queries: derives insights
- Transactions → SQLite database: writes transactions
README.md - Transaction services → SQLite database: persists changes
- SQLite database → Finance data models: creates tables
core/database.py - Authentication → Auth and sessions: creates credentials
api/routes/auth.py - Auth and sessions → Finance data models: stores sessions
core/auth.py - Analytics → Finance data models: reads finance data
api/routes/analytics.py - Budget tracking → Finance data models: reads budget data
api/routes/budget.py - Categories → Finance data models: manages categories
api/routes/categories.py - Payment methods → Finance data models: manages methods
api/routes/payment_methods.py - Transaction export → Finance data models: exports transactions
api/routes/export.py - Finance user → Analytics: views analytics
README.md - Finance user → Budget tracking: sets limits
README.md - Finance user → Financial insights: views insights
README.md - Finance user → Transaction export: downloads data
README.md