How g1anc/area works
AREA is an IFTTT/Zapier-style automation product: users authenticate, connect service accounts, define an action and reaction, then manage and run automations. The mobile app shows the action/reaction authoring stages; the repository also contains a web client, server APIs, service integrations, and a worker. The README documents the overall product and supported services, but many web and server implementations were not sampled, so their internal call relationships are not asserted.
Main entry points: App.tsx Mobile navigation · app Web application · page.tsx Account settings · auth Authentication API
Components 20
User clients
- Mobile navigation
mobile/App.tsx - Mobile sign-in
mobile/src/connection/page.tsx - Action-reaction authoring
mobile/src/services/CreateServices.tsx - Mobile menu
mobile/src/components/Menu.tsx - Account settings
mobile/src/settings/page.tsx - Token storage
mobile/src/LocalStorage.tsx - Web application
web/app - Automation dashboard
web/app/(pages)/dashboard
Server and identity
- Authentication API
web/app/api/auth - OAuth API
web/app/api/oauth/route.ts - Service API
web/app/api/services - User API
web/app/api/users - Session repository
shared/database/SessionRepository.ts - OAuth providers
shared/Oauth
Automation runtime
- Action and reaction catalog
shared/services - Webhook endpoint
web/app/api/webhook/[service]/[action]/[id]/route.ts - Worker
worker/index.ts
Service integrations
- Service adapters
shared/services
Other components
- User
- Connected services
Connections 19
- User → Mobile navigation: uses
- User → Web application: uses
- Mobile navigation → Mobile sign-in: routes to
mobile/App.tsx - Mobile navigation → Mobile menu: routes to
mobile/App.tsx - Mobile navigation → Account settings: routes to
mobile/App.tsx - Mobile menu → Action-reaction authoring: opens
mobile/src/components/Menu.tsx - Action-reaction authoring → Action and reaction catalog: selects actions
- Mobile sign-in → Token storage: stores API URL
mobile/src/connection/page.tsx - Account settings → Token storage: clears token
mobile/src/settings/page.tsx - Web application → Automation dashboard: provides
- Web application → Authentication API: accesses server features
- Web application → Service API: accesses server features
- Mobile navigation → Authentication API: accesses server features
- Account settings → OAuth API: manages connections
mobile/src/settings/page.tsx - Authentication API → Session repository: creates sessions
- OAuth API → OAuth providers: uses providers
- Webhook endpoint → Action and reaction catalog: dispatches automation
- Worker → Action and reaction catalog: runs automation
- Service adapters → Connected services: integrates with