What exists today
- React
@meshagent/meshagent-reactfor room and document connection hooks, chat helpers, toolkits, and file upload helpers@meshagent/meshagent-ts-authfor framework-agnostic OAuth/PKCE login, token storage, and refresh helpers@meshagent/meshagent-react-authfor React auth helpers built on top of the TypeScript auth package, includinguseAuthanduseEnsureLogin
- Flutter
meshagent_flutterfor room and document connection widgets and related helpersmeshagent_flutter_authfor auth helpersmeshagent_flutter_widgetsfor higher-level Flutter widgets
Core building blocks
The two most important primitives are:- Room connections: establish and hold a
RoomClientconnection inside your app - Document connections: open a room document and keep it in sync while your UI is mounted
- React exports hooks such as
useRoomConnectionanduseDocumentConnection - Flutter exports widgets such as
RoomConnectionScopeandDocumentConnectionScope
How to use this section
- Start with Room Connections to connect your app to a room.
- Use Document Connections when your UI needs a live room document.
- Use the Room API docs for the runtime capabilities available after the connection is established.
Which package to pick
- Use React when you are building a web app and want hooks around the MeshAgent JS client.
- Add
@meshagent/meshagent-ts-authwhen you want provider-agnostic auth helpers outside React. - Add
@meshagent/meshagent-react-authwhen your React app should handle OAuth login, callback exchange, token refresh, and profile loading with hooks. - Use Flutter when you want one codebase across mobile, desktop, or embedded form factors.