Self-hosting
Use the default hosted bridge,
or run your own.
The service property selects the backend used for OAuth, posting,
and the SSE stream. Set it to use your own deployment instead of the hosted
bridge.
In cross-origin deployments, such as the hosted bridge, the component
holds a short-lived, origin-bound bridge JWT.
A self-hosted bridge can be same-origin and therefore use a http only
same-site cookie instead, bolstering security.
Both modes run the same
open-source bridge code, which stores only transient auth data and basic,
privacy respecting metrics.
Live Thread Data via Spacedust & Constellation The bridge sends live thread updates via SSE to connected users,
leveraging the incredible spacedust project. Showing
readers which posts they have already liked or reposted is a backlink
question, answered by its sibling constellation. Both are
part of microcosm.
Component
<atproto-comments
thread="at://did:plc:…/app.bsky.feed.post/…"
service="/atproto"
></atproto-comments>
Server
createAtprotoCommentsService({
publicUrl: "https://your.blog",
basePath: "/atproto",
sessionMode: "cookie",
sessionSecret,
keys,
stateStore,
sessionStore,
serviceSessionStore,
});
Read the deployment guide ↗
svebcomponents.dev @svebcomponents.dev
<atproto-comments> is a web component that allows you to simply drop a thread onto your page and have users read & write comments on your site. all your users need is an ATmosphere account (bluesky, eurosky, their own PDS hosted from their basement) to log in using oauth. atproto.svebcomponents.dev