How progwise/timebook works
Main Components
a. Applications Layer:
• Web Application (Next.js)
• Stream Deck Plugin
• E2E Testing Suite (Playwright)
b. Package Layer:
• Backend Package (GraphQL + Prisma)
• UI Package (Reusable Components)
• Validations Package (Zod Schemas)
• Infrastructure Package (Pulumi)
c. External Services:
• PostgreSQL Database
• PayPal Integration
• Authentication System (NextAuth.js)
Component Relationships
Web Application
• Frontend (Next.js)
• Pages
• Components
• API Routes
• Backend (GraphQL)
• Schema
• Resolvers
• Prisma Client
• Database Layer
Specific Implementation Details
a. Frontend Architecture:
• Next.js pages structure (/pages directory)
• UI components from the shared UI package
• Demonstrate form validation flow using the validations package
b. Backend Architecture:
• GraphQL API endpoint (/api/graphql)
• Prisma database layer
• Authentication middleware
• PayPal integration services
Data Flow Representation
• Client requests → Next.js pages → GraphQL API
• GraphQL resolvers → Prisma → Database
• Authentication flow through NextAuth.js
• Payment processing through PayPal
Infrastructure Layer
A section showing:
• Docker containers
• Pulumi infrastructure configuration
• Development vs Production environments
Key Elements to Highlight
• GraphQL API as the central communication hub
• Shared package dependencies
• Database schema and migrations
• Authentication and authorization flow
• Stream Deck plugin integration
Infrastructure Layer (Docker, Pulumi)
Remember to maintain a balance between detail and clarity, focusing on the architectural decisions that matter most for understanding the system's structure and behavior.
• How different parts of the system interact
• Where to find specific functionality
• How data flows through the system
• How to extend or modify the system
• Where to add new features
• How to troubleshoot issues