Skip to content

[WIP] Add Blob Support#36

Draft
Ashex wants to merge 2 commits intomainfrom
blob-support
Draft

[WIP] Add Blob Support#36
Ashex wants to merge 2 commits intomainfrom
blob-support

Conversation

@Ashex
Copy link
Copy Markdown
Contributor

@Ashex Ashex commented Mar 5, 2026

Description

Working on proper support for blobs

  • Add findBlobRefs() utility to extract blob references from records
  • Integrate blob processing into createRecord (track blobs on write)
  • Clean up blob associations on deleteRecord
  • Add com.atproto.sync.getBlob endpoint
  • Fix uploadBlob to return BlobRef instance instead of plain object (XRPC output validation requires @atproto/lexicon BlobRef class)
  • Add uploadBlob() and getBlob() helpers to test script lib
  • Extend generate-posts.ts with image, external link, quote, recordWithMedia, and reply embed types
  • Add blob-refs unit tests (14 tests)

Related Issues

Testing

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as
    expected)
  • Documentation update
  • Performance improvement
  • Code refactoring
  • Build/CI changes
  • Test improvements

@Ashex Ashex marked this pull request as draft March 5, 2026 20:57
- Add findBlobRefs() utility to extract blob references from records
- Integrate blob processing into createRecord (track blobs on write)
- Clean up blob associations on deleteRecord
- Add com.atproto.sync.getBlob endpoint
- Fix uploadBlob to return BlobRef instance instead of plain object
  (XRPC output validation requires @atproto/lexicon BlobRef class)
- Add uploadBlob() and getBlob() helpers to test script lib
- Extend generate-posts.ts with image, external link, quote,
  recordWithMedia, and reply embed types
- Add blob-refs unit tests (14 tests)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant