How tuturuleo/apphub works
AppHub provisions and manages projects assembled from provider-backed recipes: users connect accounts, choose a recipe, and AppHub creates and wires resources in the background; the UI then exposes project status, deployment controls, monitoring, and assistant/MCP operations. The graph preserves these product branches and the provider, persistence, and workflow layers. Some worker subsystems are represented at their exact enclosing directories because their source was not sampled; their internal links are omitted where evidence is unavailable.
Main entry points: App.tsx App shell · index.ts HTTP worker · service.ts Project operations · engine.ts Provisioning and status engine
Components 29
Web interface
- App shell
src/web/App.tsx - Client routing
src/web/router.ts - Projects
src/web/pages/ProjectsPage.tsx - New project
src/web/pages/NewProjectPage.tsx - Project details
src/web/pages/ProjectPage.tsx - Connections
src/web/pages/ConnectionsPage.tsx - Assistant chat
src/web/pages/ChatPage.tsx - Resources
src/web/pages/ResourcesPage.tsx - Limits
src/web/pages/LimitsPage.tsx - Security
src/web/pages/SecurityPage.tsx - Query hooks
src/web/queries.ts - Web API client
src/web/api.ts
Project management
- HTTP worker
src/worker/index.ts - Project operations
src/worker/service.ts - Provisioning workflow
src/worker/workflow.ts - Provisioning and status engine
src/worker/engine.ts - Recipe catalog
src/worker/recipes - Health monitoring
src/worker/monitor.ts - MCP operations
src/worker/mcp.ts - Assistant service
src/worker/chat.ts - Assistant tools
src/worker/tools.ts
Integrations
- Provider connections
src/worker/providers/index.ts - Provider clients
src/worker/providers - LLM access
src/worker/llm.ts
Worker platform
- D1 store
src/worker/db.ts - Passkey and tokens
src/worker/auth.ts - Secret encryption
src/worker/crypto.ts - Access proxy
src/worker/proxy.ts
Other components
- Owner
Connections 36
- Owner → App shell: uses
src/web/App.tsx - App shell → Client routing: reads route
src/web/App.tsx - App shell → Projects: renders
src/web/App.tsx - App shell → New project: renders
src/web/App.tsx - App shell → Project details: renders
src/web/App.tsx - App shell → Connections: renders
src/web/App.tsx - App shell → Assistant chat: renders
src/web/App.tsx - App shell → Resources: renders
src/web/App.tsx - App shell → Limits: renders
src/web/App.tsx - App shell → Security: renders
src/web/App.tsx - Query hooks → Web API client: calls
src/web/queries.ts - Web API client → HTTP worker: HTTP requests
- HTTP worker → Passkey and tokens: authenticates
src/worker/index.ts - HTTP worker → Project operations: routes operations
src/worker/index.ts - HTTP worker → MCP operations: routes MCP
README.md - HTTP worker → Health monitoring: runs checks
src/worker/index.ts - HTTP worker → Assistant service: routes chat
src/worker/index.ts - HTTP worker → Assistant tools: dispatches tools
- Project operations → D1 store: reads and writes
src/worker/service.ts - Project operations → Provisioning and status engine: delegates provider work
src/worker/service.ts - Project operations → Recipe catalog: selects recipe
src/worker/service.ts - Project operations → Provisioning workflow: starts provisioning
README.md - Provisioning workflow → Provisioning and status engine: provisions resources
- Provisioning and status engine → Provider clients: calls providers
src/worker/engine.ts - Provisioning and status engine → LLM access: checks models
src/worker/engine.ts - Provider connections → Provider clients: validates connections
src/worker/providers/index.ts - Provider clients → Secret encryption: uses crypto
src/worker/providers/github.ts - LLM access → Provider clients: uses HTTP relay
src/worker/llm.ts - Health monitoring → Provisioning and status engine: checks resource health
- Assistant service → LLM access: requests completions
- MCP operations → Project operations: exposes operations
README.md - Assistant tools → Project operations: invokes project actions
- Passkey and tokens → D1 store: stores credentials
- D1 store → Secret encryption: encrypts provider tokens
src/worker/db.ts - Owner → Provider connections: connects accounts
README.md - Access proxy → HTTP worker: forwards requests
README.md