Skip to content

Migrate Bluesky package to use smaller atcute dependencies - #261

Merged
delucis merged 17 commits into
mainfrom
chris/atcute
Apr 17, 2026
Merged

delucis merged 17 commits into
mainfrom
chris/atcute

Conversation

@delucis

@delucis delucis commented Jan 3, 2026

Copy link
Copy Markdown
Owner

This PR migrates the <Bluesky> component to use packages from https://github.com/mary-ext/atcute instead of the official @atproto/api package.

@atproto/api’s latest release has an install size of 14 MB (we’re currently using an older version that’s “just” 10 MB), which is pretty crazy for an API client.

atcute makes it easier to pick and choose the packages you actually need and has the aim of being lighter weight in general. The packages used in this PR have an install size of 3.4 MB, which is 33% of our current size and 25% of the latest @atproto/api. That still feels pretty huge to me if I’m being honest, but it’s still a big improvement.

Opening as a draft to solicit feedback — especially from @ascorbic as it may cause type compatibility issues with his Bluesky Astro loader.

@changeset-bot

changeset-bot Bot commented Jan 3, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: ba0fcde

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@astro-community/astro-embed-bluesky Minor
@astro-community/astro-embed-integration Patch
astro-embed Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@netlify

netlify Bot commented Jan 3, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for astro-embed ready!

Name Link
🔨 Latest commit 9a562fe
🔍 Latest deploy log https://app.netlify.com/projects/astro-embed/deploys/6964c2d7f1bd490008c884fd
😎 Deploy Preview https://deploy-preview-261--astro-embed.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@delucis
delucis marked this pull request as draft January 3, 2026 19:49
Also moved from a shared variable to direct versioning in the workflow file so that Renovate can take care of updating it.
@ascorbic

Copy link
Copy Markdown
Contributor

I think if we do this as a major then it's fine. I've switch most things to use atcute, and will probably move the loader too.

@delucis

delucis commented Mar 11, 2026

Copy link
Copy Markdown
Owner Author

Great to know — thanks! I’ll refresh my memory of the PR and make sure the changelog’s describe the change in detail.

@netlify

netlify Bot commented Apr 17, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for astro-embed ready!

Name Link
🔨 Latest commit ba0fcde
🔍 Latest deploy log https://app.netlify.com/projects/astro-embed/deploys/69e2446b3ef22c0008ff24a0
😎 Deploy Preview https://deploy-preview-261--astro-embed.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@delucis
delucis marked this pull request as ready for review April 17, 2026 14:33
@delucis

delucis commented Apr 17, 2026

Copy link
Copy Markdown
Owner Author

@ascorbic I’m going to release this before I forget about it. LMK if you need any guidance for the Bluesky loader — I think it should continue to work fine, it’ll only be type checking that might cause issues for people.

@delucis
delucis merged commit eb53671 into main Apr 17, 2026
6 checks passed
@delucis
delucis deleted the chris/atcute branch April 17, 2026 14:34
@github-actions github-actions Bot mentioned this pull request Apr 17, 2026
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.

2 participants