How mpteixeirarj-glit/vigia works
Vigia is a personal-finance app: users manage budgets and financial records in the web app, with an optional WhatsApp bot for recording income and expenses. The tree and excerpts show the bot’s message-to-Firestore workflow and the app’s offline shell; the main app implementation in index.html and several documented capabilities were not sampled, so those subsystems are represented at that file boundary. Relationships are limited to excerpted calls or README/source-index evidence.
Main entry points: index.html Finance interface · index.js Bot event handler · parser.js Message parser · firestore.js Account lookup
Components 19
Finance app
- Finance interface
index.html - Transactions and budgets
index.html - Recurring finances
index.html - Cards and installments
cartoes - Savings and investments
index.html - Agenda and alerts
index.html - User profiles
index.html - Financial history
index.html
WhatsApp bot
- Bot event handler
bot/index.js - Message parser
bot/parser.js - Text safeguards
bot/sanitizer.js - Account lookup
bot/firestore.js - Transaction writer
bot/firestore.js
Persistence and offline
- Firestore
- Offline app cache
sw.js
Other components
- User
- WhatsApp user
- WhatsApp service
- Browser cache
Connections 20
- User → Finance interface: uses
- Finance interface → Transactions and budgets: manages
- Finance interface → Recurring finances: manages
- Finance interface → Cards and installments: manages
- Finance interface → Savings and investments: manages
- Finance interface → Agenda and alerts: shows
- Finance interface → User profiles: supports
- Finance interface → Financial history: shows
- WhatsApp user → WhatsApp service: messages
- WhatsApp service → Bot event handler: delivers events
bot/index.js - Bot event handler → Text safeguards: checks length
bot/index.js - Bot event handler → Account lookup: resolves account
bot/index.js - Bot event handler → Message parser: parses message
bot/index.js - Message parser → Text safeguards: sanitizes text
bot/parser.js - Account lookup → Firestore: reads links
bot/firestore.js - Transaction writer → Firestore: updates records
bot/firestore.js - Bot event handler → Transaction writer: saves transaction
bot/index.js - Bot event handler → WhatsApp service: replies
bot/index.js - Finance interface → Offline app cache: registers worker
- Offline app cache → Browser cache: caches assets
sw.js