How alexerrant/pentive works
Main System Components
a. Core Applications:
• Main App (app/)
• Hub (hub/)
• API Services (api-ugc/, cwa/)
• Peer Sync Service (peer/)
b. Shared Libraries:
• shared/
• shared-dom/
• shared-edge/
c. Plugin System:
• example-plugins/
• Plugin Manager Infrastructure
Architecture Representation
Frontend Layer:
• Hub interface (hub/) separately
• Plugin integration points
• Service worker architecture
Middle Layer:
• TRPC client/server communication
• Peer-to-peer syncing mechanism
• Plugin manager system
• Database replication system
Backend Layer:
• API services (api-ugc, cwa)
• Database infrastructure
• Authentication system
Key Relationships to Highlight
• Plugin system integration with the main application
• Data flow between the local database and remote sync
• Service worker's role in offline functionality
Specific Implementation Details
• Blue rectangles for core applications
• Green hexagons for shared libraries
• Yellow diamonds for plugin system components
• Purple circles for database components
Technical Stack Elements
• SQLite/CRSQLite for local storage
• TRPC for API communication
• Service Workers for offline functionality
• Vite for build system
• Cloudflare Workers for edge computing