How giovani-junior-dev/prumo-br works
Prummo is a Brazilian small-business finance and accounting system. Its main workflow is staff managing sales and purchases, then recording their financial effects in bank accounts and the ledger, with reports and exports for review. The map also includes authentication, shared data services, audit/webhook infrastructure, projects, inventory, and fixed assets to reflect documented product capabilities. Several connections come from the sampled document service and API; other major feature areas are documented in the README but their implementation wiring was not sampled.
Main entry points: documentos.ts Sales documents · auditoria.ts Audit trail · route.ts Public API · db.ts Application database
Components 19
Access and interface
- Finance workspace
src/app/(app)/layout.tsx - Credential login
src/auth.ts - Roles and access
src/lib/permissoes.ts - Public API
src/app/api/v1/[recurso]/route.ts
Sales and purchasing
- Sales documents
src/lib/servicos/documentos.ts - Purchases
src/lib/servicos/compras.ts - Contacts
src/lib/servicos/contatos.ts - Products and stock
src/lib/servicos/estoque.ts
Accounting operations
- Bank accounts
src/lib/servicos/banco.ts - Ledger and entries
src/lib/servicos/razao.ts - Fixed assets
src/lib/servicos/ativos.ts
Reporting and projects
- Reports and exports
src/lib/servicos/relatorios.ts - Projects and time
src/lib/servicos/projetos.ts
Shared foundation
- Application database
src/lib/db.ts - Audit trail
src/lib/auditoria.ts - Signed webhooks
src/lib/webhooks.ts - Date utilities
src/lib/contabil/datas.ts - PDF and CSV output
src/lib/exportar.ts
Other components
- Company staff
Connections 21
- Company staff → Finance workspace: uses
README.md - Company staff → Credential login: signs in
src/auth.ts - Credential login → Roles and access: provides session
src/lib/permissoes.ts - Public API → Roles and access: checks access
src/app/api/v1/[recurso]/route.ts - Public API → Sales documents: saves invoices
src/app/api/v1/[recurso]/route.ts - Public API → Audit trail: records changes
src/app/api/v1/[recurso]/route.ts - Sales documents → Audit trail: records changes
src/lib/servicos/documentos.ts - Sales documents → Products and stock: records stock movement
src/lib/servicos/documentos.ts - Sales documents → Ledger and entries: posts entries
src/lib/servicos/documentos.ts - Sales documents → Application database: reads and writes
src/lib/servicos/documentos.ts - Audit trail → Application database: writes audit log
src/lib/auditoria.ts - Audit trail → Signed webhooks: dispatches events
src/lib/auditoria.ts - Application database → PDF and CSV output: stores business data
- Reports and exports → PDF and CSV output: formats reports
src/lib/exportar.ts - Sales documents → Date utilities: uses dates
src/lib/servicos/documentos.ts - Company staff → Purchases: manages purchasing
README.md - Company staff → Bank accounts: reconciles accounts
README.md - Company staff → Fixed assets: manages assets
README.md - Company staff → Projects and time: tracks work
README.md - Company staff → Reports and exports: reviews results
README.md - Company staff → Contacts: manages contacts
README.md