How myrisol0813-gif/elementera-coast-source works
Elementera Coast is a personal, multi-window AI conversation workspace: chat is the interaction surface, while backend services manage longer-lived context, memory, tools, and visitor input. The principal flow runs from a user message through a frontend chat surface to backend chat handling, where context and tool work may inform a streamed model response. Users can then inspect or manage related memory, daily records, and model activity. The README documents these major capabilities; sampled source confirms frontend composition, selected API clients, and Android repository behavior, but not every backend dispatch or persistence connection.
Main entry points: chat-router.js Chat routes · app.js PWA workspace · api-router.js API router · context-assemble-clean.js Context assembly
Components 24
User windows
- PWA workspace
apps/web/elementera-mcp/deploy-pages/public/app.js - Android app
apps/android/app/src/main/kotlin/com/elementeracoast/app/MainActivity.kt - Visitor mailbox
apps/web/elementera-mcp/deploy-pages/public/mailbox.js
Conversation flow
- Chat surface
apps/web/elementera-mcp/deploy-pages/public/features/chat.js - Chat repository
apps/android/app/src/main/kotlin/com/elementeracoast/app/feature/chat/ChatRepository.kt - Chat routes
apps/web/functions/chat-router.js - Conversation storage
apps/web/functions/chat-store.js
Context and memory
- Context assembly
apps/web/functions/context-assemble-clean.js - Memory surfaces
apps/web/elementera-mcp/deploy-pages/public/features/memory.js - Memory API client
apps/web/elementera-mcp/deploy-pages/public/features/memory/memory-client.js - Memory routes
apps/web/functions/memory-router.js - Memory storage
apps/web/functions/memory-store.js - Cross-window state
apps/web/functions/cross-window-service.js
Workspace features
- Daily surfaces
apps/web/elementera-mcp/deploy-pages/public/features/daily.js - Daily API
apps/web/functions/daily-api.js - Daily storage
apps/web/functions/daily-store.js - Model workspace
apps/web/elementera-mcp/deploy-pages/public/features/models.js - Tool records
apps/web/functions/tool-run-log.js
Backend services
- Mailbox service
apps/web/functions/mailbox-service.js - Mailbox storage
apps/web/functions/mailbox-repository.js - API router
apps/web/functions/api-router.js
Other components
- Workspace user
- Model provider
- External tools
Connections 29
- Workspace user → PWA workspace: uses
- Workspace user → Android app: uses
- Workspace user → Visitor mailbox: sends input
- PWA workspace → Chat surface: creates
- PWA workspace → Memory surfaces: creates
- PWA workspace → Daily surfaces: creates
- PWA workspace → Model workspace: creates
- Chat surface → Chat routes: requests chat
- Android app → Chat repository: hosts
- Chat repository → Chat routes: streams chat
- Chat routes → Context assembly: assembles context
- Chat routes → Model provider: requests response
- Chat routes → Conversation storage: stores turns
- Chat routes → Tool records: records activity
- Chat routes → External tools: dispatches tools
- Memory surfaces → Memory API client: invokes
- Memory API client → Memory routes: requests memory
- Memory routes → Memory storage: reads and writes
- Context assembly → Memory storage: looks up context
- Context assembly → Cross-window state: uses shared state
- Daily surfaces → Daily API: requests records
- Daily API → Daily storage: reads and writes
- Visitor mailbox → Mailbox service: submits messages
- Mailbox service → Mailbox storage: stores mailbox data
- PWA workspace → API router: calls backend
- API router → Chat routes: dispatches
- API router → Memory routes: dispatches
- API router → Daily API: dispatches
- API router → Mailbox service: dispatches