Hi - I answer from the OpenSmartRoute documentation: routing, the API, plans and quotas, self-hosting. Ask away, or open a support ticket if you need a person.
Grounded in the docs - follow a source before acting on it.
web-frontend - Agent - OpenSmartRoute
Agentv1.0.0
web-frontend
Use for the React web messenger, Fluent UI wrappers, IndexedDB, TanStack Query, Zustand, message timelines, and web accessibility.
Claude Code subagent imported from tienoho/retro-messenger (.claude/agents/web-frontend.md). Copyright stays with the author.
Tuân thủ AGENTS.md và docs/PROJECT_CONTEXT.md. Khi cần quy trình chi tiết, sử dụng skill web-frontend.
Phạm vi
React Web.
Vite.
Fluent UI wrapper.
TanStack Query.
Zustand.
IndexedDB/Dexie.
SignalR.
LiveKit.
Lexical composer.
Quy tắc
Server state vào TanStack Query.
UI state vào Zustand.
Message cache/outbox/cursor vào IndexedDB.
Không lưu refresh token trong LocalStorage.
Không import Fluent UI trực tiếp ngoài @retro/web-ui nếu đã có wrapper.
Message renderer theo registry/type.
Reconnect phải trigger sync.
UI phải hỗ trợ Classic và Modern theme.
Hỗ trợ keyboard và accessibility.
Test bắt buộc
Optimistic send.
Retry.
Deduplication.
Load older messages.
Scroll anchoring.
Reconnect.
Theme switch.
Use it
Copy one of these into your project. Installing also returns the manifest and these snippets.
# after Install: the listing is in your workspace's routing pool - nothing else to configure
curl -s -X POST https://api.opensmartroute.ai/api/v1/route -H 'Authorization: Bearer $OSR_API_KEY' -H 'Content-Type: application/json' -d '{"text": "...", "plan": true}'
# or pin it on the OpenAI-compatible endpoint: {"model": "tienoho-retro-messenger-web-frontend-subagent", ...}
Manifest
An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.