@agora-sdk/social-react-js
v0.10.2
Published
Web (browser) components for the Agora social graph: CommunityWeather, Constellation (d3-force), Neighborhood, SocialTransparency. Re-exports @agora-sdk/social-core.
Maintainers
Readme
@agora-sdk/social-react-js
Web (browser) components for the Agora social graph — the community-as-a-commons lenses, rendered
with care rather than mined. Ships <CommunityWeather />, <Constellation /> (d3-force),
<Neighborhood />, and <SocialTransparency />, plus the shared climate palette. Re-exports
@agora-sdk/social-core (transport + provider
- feature-gated hooks). Pure data — no crypto, no realtime.
Install
pnpm add @agora-sdk/social-react-js
# standalone — you pass baseUrl + accessToken + projectId inimport { SocialProvider } from "@agora-sdk/social-core";
import { CommunityWeather, Constellation, Neighborhood } from "@agora-sdk/social-react-js";
<SocialProvider projectId={projectId} accessToken={accessToken} baseUrl="https://your-api.example.com/v7">
<CommunityWeather />
<Constellation />
<Neighborhood showInteractionsToggle />
</SocialProvider>;<SocialProvider> fetches the transparency config on mount so every hook and component self-gates
— a disabled lens renders nothing rather than calling its endpoint.
Full guide
The complete lens-by-lens integration guide — responses, the privacy-critical rendering rules, and
graceful degradation — ships with this package as SOCIAL-GRAPH.md and lives in
the repo at
docs/SOCIAL-GRAPH.md.
