How jana19-dev/pennywise works
High-Level Architecture Components
A. Frontend Layer
• SvelteKit Application
• Authentication Views (login/logout)
• Protected Routes (accounts, transactions, reports)
• UI Components
• GraphQL Client
B. API Layer
• GraphQL Server
• Authentication/Authorization Middleware
• Resolvers for different entities
C. Database Layer
• Prisma ORM
• Database (implied from prisma.schema)
Key Relationships to Highlight
• Frontend components and GraphQL client
• GraphQL client and GraphQL server
• GraphQL server and Prisma ORM
• Authentication flow between layers
Detailed Component Breakdown
• Components/
• Application Components (accounts, transactions, etc.)
• UI Components (buttons, forms, dialogs)
• Select Inputs
• GraphQL/
• Client Queries/Mutations
• Server Resolvers
• Type Definitions
• Entities
• Accounts
• AccountTypes
• Categories
• Payees
• Transactions
Data Flow Representation
• User interactions → Frontend Components
• Frontend → GraphQL Client
• GraphQL Client → GraphQL Server
• GraphQL Server → Database
• Response flow back to user
Technical Stack Callouts
Technologies:
• SvelteKit
• GraphQL
• Prisma
• TailwindCSS
• Firebase (for authentication)