How rociiu/talorys works
Talorys is a private, single-owner AI assistant deployed in the owner’s Cloudflare account. The main workflow is browser chat through the Pages API proxy into the private agent, which uses Workers AI and stored conversation context to return streaming responses. The product also manages memories and optional semantic recall, tasks, notes, scheduled automations, authentication, and push notifications. The graph combines README-documented deployment and capabilities with sampled routing and service references; several internal domain links are dashed where implementation excerpts were unavailable.
Main entry points: talorys-agent.ts Durable Object agent · app.ts HTTP API router · App.tsx Browser app · api.ts API client
Components 19
Web experience
- Browser app
apps/web/src/App.tsx - API client
apps/web/src/lib/api.ts - Pages API proxy
apps/web/functions/api/[[path]].ts
Private agent runtime
- HTTP API router
apps/agent/src/api/app.ts - Authentication
apps/agent/src/auth/auth-service.ts - Chat routes
apps/agent/src/api/routes/chat.ts - Durable Object agent
apps/agent/src/agent/talorys-agent.ts
Assistant capabilities
- Memory lifecycle
apps/agent/src/memory/service.ts - Semantic recall
apps/agent/src/semantic/routes.ts - Tasks and notes
apps/agent/src/api/routes/data.ts - Automations
apps/agent/src/api/routes/automations.ts - Alarm scheduling
apps/agent/src/agent/scheduling.ts - Push notifications
apps/agent/src/push/service.ts
Persistence and services
- Workers AI
apps/agent/src/ai/workers-ai.ts - Conversation data
apps/agent/src/db/repositories/conversations.ts - SQLite storage
apps/agent/src/db/database.ts - Vector store
apps/agent/src/semantic/vectorStore.ts - Settings and usage
apps/agent/src/services/settings.ts
Other components
- Owner
Connections 22
- Owner → Browser app: uses
- Browser app → API client: requests
- API client → Pages API proxy: forwards API
- Pages API proxy → HTTP API router: service binding
- HTTP API router → Authentication: guards routes
- HTTP API router → Chat routes: routes chat
apps/agent/src/api/app.ts - HTTP API router → Durable Object agent: runs within agent
apps/agent/src/api/app.ts - Chat routes → Durable Object agent: handles turns
- Durable Object agent → Workers AI: requests inference
- Durable Object agent → Conversation data: loads history
- Conversation data → SQLite storage: reads and writes
- Durable Object agent → Memory lifecycle: uses memories
- Memory lifecycle → Vector store: updates vectors
apps/agent/src/memory/service.ts - Semantic recall → Vector store: queries vectors
apps/agent/src/semantic/routes.ts - HTTP API router → Semantic recall: routes recall
apps/agent/src/api/app.ts - HTTP API router → Tasks and notes: routes data
apps/agent/src/api/app.ts - HTTP API router → Automations: routes automation
apps/agent/src/api/app.ts - Automations → Alarm scheduling: schedules alarms
- Durable Object agent → Alarm scheduling: runs alarms
- Durable Object agent → Push notifications: sends notifications
- Durable Object agent → SQLite storage: stores product data
- Durable Object agent → Settings and usage: uses configuration