AT Protocol demo scripts#461
Draft
cassidyjames wants to merge 4 commits into
Draft
Conversation
Replace the placeholder `authorHandle: did` with separate `did`, `handle`, and `displayName` fields populated via the Bluesky public profile API. Profiles are cached per-DID to avoid redundant lookups. Also renames the item types in atproto-setup from "Bluesky" to "atproto" and adds `did` and `displayName` to the post schema.
This comment has been minimized.
This comment has been minimized.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is my branch I've been using for demos locally and on Codespace. It adds two scripts:
My goal is for this branch to track
mainand not touch anything else in the codebase besides these scripts to keep things self-contained and reproducible.Usage:
Create the item types (run once after
npm run create-org):Copy the item type ID printed at the end.
Start the firehose connector (in a separate terminal):
Posts from the Bluesky firehose will be processed by automated rules as they arrive. The connector defaults to 100 submissions per minute; pass
--rate-limit <n>to adjust. Use--dry-runto preview submissions without sending them.There's probably a lot that can be improved, hence the draft status; I'm just opening this PR for visibility for now. :) Off the top of my head: