# rigodlt-maker/taos-finanzas architecture

> Architecture diagram of the GitHub repository rigodlt-maker/taos-finanzas, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-03). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/rigodlt-maker/taos-finanzas
- Repository: https://github.com/rigodlt-maker/taos-finanzas

## Overview

TAOS is a Spanish-language personal finance app: users record and review transactions, organize budgets and savings, manage accounts and debts, and receive payment reminders. The primary path is authenticated app use through finance pages and actions into a repository-backed data layer; separate paths handle bank-email ingestion, chat assistance, and scheduled notifications. The README documents major capabilities beyond the excerpts. Some links therefore cite README or SOURCE INDEX evidence; uncertain implementation wiring is omitted.

Main entry points: [`app/(app)/page.tsx`](https://github.com/rigodlt-maker/taos-finanzas/blob/main/app/(app)/page.tsx) (Overview), [`lib/sesion.ts`](https://github.com/rigodlt-maker/taos-finanzas/blob/main/lib/sesion.ts) (Session repository), [`app/api/asesor/route.ts`](https://github.com/rigodlt-maker/taos-finanzas/blob/main/app/api/asesor/route.ts) (Assistant endpoint), [`lib/acciones.ts`](https://github.com/rigodlt-maker/taos-finanzas/blob/main/lib/acciones.ts) (Finance actions)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Finance workspace"]
  node_home["Overview<br/>[page.tsx]"]
  node_transactions["Transactions<br/>[page.tsx]"]
  node_capture["Record movement<br/>[formulario.tsx]"]
  node_budget["Budget and goals<br/>[page.tsx]"]
  node_payments["Payments<br/>[page.tsx]"]
  node_credits["Credit accounts<br/>[page.tsx]"]
  node_loans["Loans<br/>[page.tsx]"]
  node_subscriptions["Subscriptions<br/>[page.tsx]"]
  node_emailpage["Bank email review<br/>[page.tsx]"]
  node_assistantui["Assistant chat<br/>[chat-asesor.tsx]"]
end

subgraph group_domain["Finance domain"]
  node_actions["Finance actions<br/>[acciones.ts]"]
  node_transferlogic["Transfers and balances<br/>[transferencias.ts]"]
  node_creditlogic["Credit calculations<br/>[creditos.ts]"]
  node_emailprocessing["Email processing<br/>[correos.ts]"]
  node_assistantlogic["Rule-based assistant<br/>[asesor.ts]"]
  node_push["Push notifications<br/>[push.ts]"]
end

subgraph group_data["Data and access"]
  node_session["Session repository<br/>[sesion.ts]"]
  node_repo["Repository contract<br/>[repo.ts]"]
  node_supabase[("Supabase repository<br/>[supabase.ts]")]
  node_memory[("Demo memory store<br/>[memoria.ts]")]
end

subgraph group_automation["Assistant and alerts"]
  node_assistantapi["Assistant endpoint<br/>[route.ts]"]
  node_paymentcron["Payment alert job<br/>[route.ts]"]
  node_weeklycron["Weekly report job<br/>[route.ts]"]
end

subgraph group_integrations["External integrations"]
  node_mail["Email delivery<br/>[correo.ts]"]
  node_bank(("Bank email source"))
end

node_user(("Account holder"))
node_reminderuser(("Notification recipient"))

node_user -->|"opens"| node_home
node_home -->|"reviews"| node_transactions
node_transactions -->|"records through"| node_capture
node_capture -->|"calls"| node_actions
node_home -->|"shows budget"| node_budget
node_home -->|"shows payments"| node_payments
node_home -->|"uses credit data"| node_credits
node_user -->|"manages loans"| node_loans
node_user -->|"manages"| node_subscriptions
node_user -->|"reviews"| node_emailpage
node_emailpage -->|"uses actions"| node_actions
node_payments -->|"uses actions"| node_actions
node_credits -->|"uses calculations"| node_creditlogic
node_actions -->|"gets repository"| node_session
node_session -->|"creates repository"| node_supabase
node_session -->|"uses demo store"| node_memory
node_supabase -->|"implements"| node_repo
node_assistantui -->|"submits question"| node_assistantapi
node_assistantapi -->|"gets repository"| node_session
node_assistantapi -->|"calls"| node_assistantlogic
node_assistantapi -->|"parses transfers"| node_transferlogic
node_bank -.->|"supplies messages"| node_emailprocessing
node_paymentcron -->|"gets owner repository"| node_session
node_paymentcron -->|"sends alerts"| node_push
node_paymentcron -->|"sends email"| node_mail
node_weeklycron -->|"sends report"| node_mail
node_weeklycron -->|"sends notification"| node_push
node_push -.->|"notifies"| node_reminderuser

click node_home "https://github.com/rigodlt-maker/taos-finanzas/blob/main/app/(app)/page.tsx"
click node_transactions "https://github.com/rigodlt-maker/taos-finanzas/blob/main/app/(app)/movimientos/page.tsx"
click node_capture "https://github.com/rigodlt-maker/taos-finanzas/blob/main/components/formulario.tsx"
click node_budget "https://github.com/rigodlt-maker/taos-finanzas/blob/main/app/(app)/presupuesto/page.tsx"
click node_payments "https://github.com/rigodlt-maker/taos-finanzas/blob/main/app/(app)/pagos/page.tsx"
click node_credits "https://github.com/rigodlt-maker/taos-finanzas/blob/main/app/(app)/creditos/page.tsx"
click node_loans "https://github.com/rigodlt-maker/taos-finanzas/blob/main/app/(app)/prestamos/page.tsx"
click node_subscriptions "https://github.com/rigodlt-maker/taos-finanzas/blob/main/app/(app)/suscripciones/page.tsx"
click node_emailpage "https://github.com/rigodlt-maker/taos-finanzas/blob/main/app/(app)/correos/page.tsx"
click node_actions "https://github.com/rigodlt-maker/taos-finanzas/blob/main/lib/acciones.ts"
click node_transferlogic "https://github.com/rigodlt-maker/taos-finanzas/blob/main/lib/transferencias.ts"
click node_creditlogic "https://github.com/rigodlt-maker/taos-finanzas/blob/main/lib/creditos.ts"
click node_emailprocessing "https://github.com/rigodlt-maker/taos-finanzas/blob/main/lib/correos.ts"
click node_assistantui "https://github.com/rigodlt-maker/taos-finanzas/blob/main/components/chat-asesor.tsx"
click node_assistantapi "https://github.com/rigodlt-maker/taos-finanzas/blob/main/app/api/asesor/route.ts"
click node_assistantlogic "https://github.com/rigodlt-maker/taos-finanzas/blob/main/lib/asesor.ts"
click node_session "https://github.com/rigodlt-maker/taos-finanzas/blob/main/lib/sesion.ts"
click node_repo "https://github.com/rigodlt-maker/taos-finanzas/blob/main/lib/datos/repo.ts"
click node_supabase "https://github.com/rigodlt-maker/taos-finanzas/blob/main/lib/datos/supabase.ts"
click node_memory "https://github.com/rigodlt-maker/taos-finanzas/blob/main/lib/datos/memoria.ts"
click node_paymentcron "https://github.com/rigodlt-maker/taos-finanzas/blob/main/app/api/cron/payment-alerts/route.ts"
click node_weeklycron "https://github.com/rigodlt-maker/taos-finanzas/blob/main/app/api/cron/weekly-report/route.ts"
click node_push "https://github.com/rigodlt-maker/taos-finanzas/blob/main/lib/push.ts"
click node_mail "https://github.com/rigodlt-maker/taos-finanzas/blob/main/lib/correo.ts"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_home,node_transactions,node_capture,node_budget,node_payments,node_credits,node_loans,node_subscriptions,node_emailpage,node_assistantui toneBlue
class node_actions,node_transferlogic,node_creditlogic,node_emailprocessing,node_assistantlogic,node_push toneAmber
class node_session,node_repo,node_supabase,node_memory toneMint
class node_assistantapi,node_paymentcron,node_weeklycron toneRose
class node_mail,node_bank,node_user,node_reminderuser toneIndigo
```

## Components

### Finance workspace

- [Overview](https://github.com/rigodlt-maker/taos-finanzas/blob/main/app/(app)/page.tsx): `app/(app)/page.tsx`
- [Transactions](https://github.com/rigodlt-maker/taos-finanzas/blob/main/app/(app)/movimientos/page.tsx): `app/(app)/movimientos/page.tsx`
- [Record movement](https://github.com/rigodlt-maker/taos-finanzas/blob/main/components/formulario.tsx): `components/formulario.tsx`
- [Budget and goals](https://github.com/rigodlt-maker/taos-finanzas/blob/main/app/(app)/presupuesto/page.tsx): `app/(app)/presupuesto/page.tsx`
- [Payments](https://github.com/rigodlt-maker/taos-finanzas/blob/main/app/(app)/pagos/page.tsx): `app/(app)/pagos/page.tsx`
- [Credit accounts](https://github.com/rigodlt-maker/taos-finanzas/blob/main/app/(app)/creditos/page.tsx): `app/(app)/creditos/page.tsx`
- [Loans](https://github.com/rigodlt-maker/taos-finanzas/blob/main/app/(app)/prestamos/page.tsx): `app/(app)/prestamos/page.tsx`
- [Subscriptions](https://github.com/rigodlt-maker/taos-finanzas/blob/main/app/(app)/suscripciones/page.tsx): `app/(app)/suscripciones/page.tsx`
- [Bank email review](https://github.com/rigodlt-maker/taos-finanzas/blob/main/app/(app)/correos/page.tsx): `app/(app)/correos/page.tsx`
- [Assistant chat](https://github.com/rigodlt-maker/taos-finanzas/blob/main/components/chat-asesor.tsx): `components/chat-asesor.tsx`

### Finance domain

- [Finance actions](https://github.com/rigodlt-maker/taos-finanzas/blob/main/lib/acciones.ts): `lib/acciones.ts`
- [Transfers and balances](https://github.com/rigodlt-maker/taos-finanzas/blob/main/lib/transferencias.ts): `lib/transferencias.ts`
- [Credit calculations](https://github.com/rigodlt-maker/taos-finanzas/blob/main/lib/creditos.ts): `lib/creditos.ts`
- [Email processing](https://github.com/rigodlt-maker/taos-finanzas/blob/main/lib/correos.ts): `lib/correos.ts`
- [Rule-based assistant](https://github.com/rigodlt-maker/taos-finanzas/blob/main/lib/asesor.ts): `lib/asesor.ts`
- [Push notifications](https://github.com/rigodlt-maker/taos-finanzas/blob/main/lib/push.ts): `lib/push.ts`

### Data and access

- [Session repository](https://github.com/rigodlt-maker/taos-finanzas/blob/main/lib/sesion.ts): `lib/sesion.ts`
- [Repository contract](https://github.com/rigodlt-maker/taos-finanzas/blob/main/lib/datos/repo.ts): `lib/datos/repo.ts`
- [Supabase repository](https://github.com/rigodlt-maker/taos-finanzas/blob/main/lib/datos/supabase.ts): `lib/datos/supabase.ts`
- [Demo memory store](https://github.com/rigodlt-maker/taos-finanzas/blob/main/lib/datos/memoria.ts): `lib/datos/memoria.ts`

### Assistant and alerts

- [Assistant endpoint](https://github.com/rigodlt-maker/taos-finanzas/blob/main/app/api/asesor/route.ts): `app/api/asesor/route.ts`
- [Payment alert job](https://github.com/rigodlt-maker/taos-finanzas/blob/main/app/api/cron/payment-alerts/route.ts): `app/api/cron/payment-alerts/route.ts`
- [Weekly report job](https://github.com/rigodlt-maker/taos-finanzas/blob/main/app/api/cron/weekly-report/route.ts): `app/api/cron/weekly-report/route.ts`

### External integrations

- [Email delivery](https://github.com/rigodlt-maker/taos-finanzas/blob/main/lib/correo.ts): `lib/correo.ts`
- **Bank email source**

### Other components

- **Account holder**
- **Notification recipient**

## Connections

- Account holder → Overview: opens (evidence: `README.md`)
- Overview → Transactions: reviews (evidence: `README.md`)
- Transactions → Record movement: records through (evidence: `components/formulario.tsx`)
- Record movement → Finance actions: calls (evidence: `components/formulario.tsx`)
- Overview → Budget and goals: shows budget (evidence: `app/(app)/page.tsx`)
- Overview → Payments: shows payments (evidence: `app/(app)/page.tsx`)
- Overview → Credit accounts: uses credit data (evidence: `app/(app)/page.tsx`)
- Account holder → Loans: manages loans (evidence: `README.md`)
- Account holder → Subscriptions: manages (evidence: `README.md`)
- Account holder → Bank email review: reviews (evidence: `app/(app)/correos/page.tsx`)
- Bank email review → Finance actions: uses actions (evidence: `app/(app)/correos/page.tsx`)
- Payments → Finance actions: uses actions (evidence: `app/(app)/pagos/page.tsx`)
- Credit accounts → Credit calculations: uses calculations (evidence: `app/(app)/creditos/page.tsx`)
- Finance actions → Session repository: gets repository (evidence: `lib/acciones.ts`)
- Session repository → Supabase repository: creates repository (evidence: `lib/sesion.ts`)
- Session repository → Demo memory store: uses demo store (evidence: `lib/sesion.ts`)
- Supabase repository → Repository contract: implements (evidence: `lib/datos/supabase.ts`)
- Assistant chat → Assistant endpoint: submits question (evidence: `components/chat-asesor.tsx`)
- Assistant endpoint → Session repository: gets repository (evidence: `app/api/asesor/route.ts`)
- Assistant endpoint → Rule-based assistant: calls (evidence: `app/api/asesor/route.ts`)
- Assistant endpoint → Transfers and balances: parses transfers (evidence: `app/api/asesor/route.ts`)
- Bank email source → Email processing: supplies messages (evidence: `README.md`)
- Payment alert job → Session repository: gets owner repository (evidence: `app/api/cron/payment-alerts/route.ts`)
- Payment alert job → Push notifications: sends alerts (evidence: `app/api/cron/payment-alerts/route.ts`)
- Payment alert job → Email delivery: sends email (evidence: `app/api/cron/payment-alerts/route.ts`)
- Weekly report job → Email delivery: sends report (evidence: `app/api/cron/weekly-report/route.ts`)
- Weekly report job → Push notifications: sends notification (evidence: `app/api/cron/weekly-report/route.ts`)
- Push notifications → Notification recipient: notifies (evidence: `README.md`)
