How eldinho2/paguei works
Paguei is a mobile-focused personal finance web app for recording and reviewing expenses and income. Users authenticate, view a monthly dashboard or open expense/income lists, and add or delete records; the dashboard presents summaries and spending trends. The frontend delegates record retrieval and mutations to query hooks and uses selected-month/year state. The README also documents installable PWA support. Some query, form, and PWA implementation details were not excerpted, so uncertain connections are omitted or marked unverified.
Main entry points: Main.tsx Dashboard composition · ExpensesListTable.tsx Bill list and actions · get-incomes-by-month.ts Income queries · get-expenses-by-month.ts Expense queries
Components 28
Finance experience
- Home dashboard
app/page.tsx - Dashboard composition
components/Main.tsx - Financial summary
components/MainResume.tsx - Category overview
components/OverviewCard.tsx - Monthly trends
components/ChartMonthResume.tsx - Recent expenses
components/LastExpenses.tsx - Recent income
components/LastIncomes.tsx - Expense page
app/(pages)/despesas/page.tsx - Income page
app/(pages)/receitas/page.tsx - Month navigation
components/CarouselComponent.tsx
Bill management
- Bill list and actions
components/BillListTable/ExpensesListTable.tsx - Bill entry form
components/form/AddBillForm.tsx - Create expense
utils/queries/create-expense.ts - Create income
utils/queries/create-income.ts - Expense queries
utils/queries/get-expenses-by-month.ts - Income queries
utils/queries/get-incomes-by-month.ts - Delete expense
utils/queries/delete-expense.ts - Delete income
utils/queries/delete-income.ts
Identity and access
- Login page
app/(pages)/login/page.tsx - Google sign-in control
components/AuthWithGoogle.tsx - Authentication config
lib/auth.ts - Auth API route
app/api/auth/[...nextauth]/route.ts - Backend auth API
Client state and PWA
- Selected month state
stores/selectedMonth-store.ts - Selected year state
stores/selectedYear-store.ts - PWA service worker
public/sw.js
Other components
- User
- Browser
Connections 37
- User → Home dashboard: opens
app/page.tsx - Home dashboard → Dashboard composition: renders
app/page.tsx - Dashboard composition → Financial summary: renders
components/Main.tsx - Dashboard composition → Category overview: renders
components/Main.tsx - Dashboard composition → Monthly trends: renders
components/Main.tsx - Dashboard composition → Recent expenses: renders
components/Main.tsx - Dashboard composition → Recent income: renders
components/Main.tsx - Dashboard composition → Expense queries: loads expenses
components/Main.tsx - Dashboard composition → Income queries: loads income
components/Main.tsx - Expense page → Month navigation: renders
app/(pages)/despesas/page.tsx - Income page → Month navigation: renders
app/(pages)/receitas/page.tsx - Expense page → Bill list and actions: renders
app/(pages)/despesas/page.tsx - Income page → Bill list and actions: renders
app/(pages)/receitas/page.tsx - Expense page → Expense queries: loads expenses
app/(pages)/despesas/page.tsx - Income page → Income queries: loads income
app/(pages)/receitas/page.tsx - Bill list and actions → Expense queries: loads expenses
components/BillListTable/ExpensesListTable.tsx - Bill list and actions → Income queries: loads income
components/BillListTable/ExpensesListTable.tsx - Bill list and actions → Delete expense: deletes expense
components/BillListTable/ExpensesListTable.tsx - Bill list and actions → Delete income: deletes income
components/BillListTable/ExpensesListTable.tsx - Expense page → Bill entry form: opens entry
- Income page → Bill entry form: opens entry
- Bill entry form → Create expense: creates expense
- Bill entry form → Create income: creates income
- User → Login page: signs in
app/(pages)/login/page.tsx - Login page → Google sign-in control: renders
app/(pages)/login/page.tsx - Google sign-in control → Authentication config: initiates sign-in
- Auth API route → Authentication config: uses handlers
app/api/auth/[...nextauth]/route.ts - Authentication config → Backend auth API: checks and authenticates
lib/auth.ts - Authentication config → Backend auth API: registers users
lib/auth.ts - Browser → PWA service worker: runs offline support
- Month navigation → Selected month state: updates selection
components/CarouselComponent.tsx - Monthly trends → Selected month state: reads selection
components/ChartMonthResume.tsx - Expense queries → Selected month state: reads selection
utils/queries/get-expenses-by-month.ts - Expense queries → Selected year state: reads selection
utils/queries/get-expenses-by-month.ts - Income queries → Selected month state: reads selection
utils/queries/get-incomes-by-month.ts - Income queries → Selected year state: reads selection
utils/queries/get-incomes-by-month.ts - Recent income → Income queries: loads income
components/LastIncomes.tsx