How kaioh17/bill-buddy works
Bill Buddy is a subscription-tracking finance app: users sign up or log in, then reach an authenticated dashboard; the API also supports account and Plaid routes. The frontend sends requests to the FastAPI backend, which uses SQLAlchemy models and a configured database. The tree and README establish the product scope, while sampled routes and module references support only some internal links. Subscription tracking, transaction import, and several Plaid capabilities are represented where the tree or documentation supports them; unsampled service behavior is not assumed.
Main entry points: main.py FastAPI application · App.tsx Web routes · Login.tsx Login and signup · auth.py Auth routes
Components 30
Web application
- Web routes
frontend/src/App.tsx - Finance dashboard
frontend/src/pages/Dashboard.tsx - Login and signup
frontend/src/pages/Login.tsx - Shared layout UI
frontend/src/components/SplitLayout.tsx - UI components
frontend/src/components/ui.tsx - API client
frontend/src/lib/api.ts - Auth state
frontend/src/lib/useAuth.ts
API surface
- FastAPI application
backend/app/main.py - Auth routes
backend/app/routers/auth.py - Bank and Plaid routes
backend/app/routers/plaid.py - Account routes
backend/app/routers/accounts.py - Health routes
backend/app/routers/health.py - API schemas
backend/app/schema/general.py - Error handling
backend/app/core/exception.py - Request logging
backend/app/core/logging.py
Identity and sessions
- Signup and login
backend/app/services/auth.py - Bearer authentication
backend/app/auth/oauth2.py - Session renewal
backend/app/auth/session.py - JWT tokens
backend/app/auth/tokens.py
Banking and finance
- Plaid client
backend/app/core/plaid.py - Plaid services
backend/app/services/plaid.py - Account services
backend/app/services/accounts.py - Transaction importer
backend/app/services/importer.py
Persistence
- Subscription records
backend/app/models/subscriptions.py - Transaction records
backend/app/models/transactions.py - Linked accounts
backend/app/models/linked_accounts.py - User records
backend/app/models/users.py - SQL database
backend/db/database.py
Other components
- User
- Plaid
Connections 37
- User → Web routes: uses
frontend/src/App.tsx - Web routes → Finance dashboard: routes to
frontend/src/App.tsx - Web routes → Login and signup: routes to
frontend/src/App.tsx - Web routes → Shared layout UI: renders
frontend/src/App.tsx - Login and signup → API client: submits requests
frontend/src/pages/Login.tsx - Finance dashboard → API client: fetches data
frontend/src/pages/Dashboard.tsx - Login and signup → Shared layout UI: uses
frontend/src/pages/Login.tsx - Finance dashboard → UI components: renders
frontend/src/pages/Dashboard.tsx - Login and signup → UI components: renders
frontend/src/pages/Login.tsx - API client → Auth state: publishes session
frontend/src/lib/useAuth.ts - API client → FastAPI application: sends HTTP requests
frontend/src/lib/api.ts - FastAPI application → Auth routes: registers
backend/app/main.py - FastAPI application → Bank and Plaid routes: registers
backend/app/main.py - FastAPI application → Account routes: registers
backend/app/main.py - FastAPI application → Health routes: registers
backend/app/main.py - Auth routes → Signup and login: delegates to
backend/app/routers/auth.py - Auth routes → API schemas: uses schemas
backend/app/routers/auth.py - Account routes → Account services: delegates to
backend/app/routers/accounts.py - Account routes → Plaid client: calls
backend/app/routers/accounts.py - Bank and Plaid routes → Plaid services: delegates to
backend/app/routers/plaid.py - Bank and Plaid routes → Plaid client: calls
backend/app/routers/plaid.py - Auth routes → Bearer authentication: protects routes
- Bank and Plaid routes → Bearer authentication: protects routes
backend/app/routers/plaid.py - Bearer authentication → JWT tokens: decodes token
backend/app/auth/oauth2.py - Bearer authentication → Session renewal: renews session
backend/app/auth/oauth2.py - Signup and login → JWT tokens: creates token
backend/app/services/auth.py - Signup and login → User records: reads and writes
backend/app/services/auth.py - FastAPI application → Error handling: registers handlers
backend/app/main.py - Error handling → API schemas: formats errors
backend/app/core/exception.py - FastAPI application → Request logging: logs requests
backend/app/main.py - Plaid client → Plaid: calls API
backend/app/core/plaid.py - Transaction importer → Plaid client: uses
backend/app/services/importer.py - Transaction importer → Linked accounts: reads and writes
backend/app/services/importer.py - Transaction importer → Transaction records: writes
backend/app/services/importer.py - Subscription records → SQL database: uses database base
backend/app/models/subscriptions.py - Transaction records → SQL database: uses database base
backend/app/models/transactions.py - Linked accounts → SQL database: uses database base
backend/app/models/linked_accounts.py