Skip to content

Commit

Permalink
docs: update atproto api bundle size
Browse files Browse the repository at this point in the history
  • Loading branch information
mary-ext committed Feb 24, 2024
1 parent 633d66f commit 507bf07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/bluesky-client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ This is an [ESM-only library](https://gist.github.com/sindresorhus/a39789f98801d

## Why?

The official `@atproto/api` library is big! <a href="https://pkg-size.dev/@atproto/api"><img src="https://pkg-size.dev/badge/bundle/426499" title="Bundle size for @atproto/api"></a>
The official `@atproto/api` library is big! <a href="https://pkg-size.dev/@atproto/api"><img src="https://pkg-size.dev/badge/bundle/461666" title="Bundle size for @atproto/api"></a>

- The lexicon codegen generates a ton of classes and functions due to the API being designed around RPC and namespaces. These can't be treeshaken at all if you only need access to some of the endpoints.
- The library unnecessarily bundles dependencies like `graphemer` and `zod`, which causes duplication in your app code if you also rely on said libraries.
Expand Down

0 comments on commit 507bf07

Please sign in to comment.