Something went wrong. Try again.
a collection of lightweight TypeScript packages for AT Protocol, the protocol powering Bluesky
Something went wrong. Try again.
Files
Verified signature Signed by mary.my.id SHA256:ZlTP/auFSGpGnaoDg4mCTG1g9OZvXp62jWR4c6H4O3c Click to copy SHA
Verified signature Signed by mary.my.id SHA256:ZlTP/auFSGpGnaoDg4mCTG1g9OZvXp62jWR4c6H4O3c Click to copy SHA
Verified signature Signed by mary.my.id SHA256:ZlTP/auFSGpGnaoDg4mCTG1g9OZvXp62jWR4c6H4O3c Click to copy SHA
- TypeScript 96%
- C 3%
- JavaScript <1%
- Python <1%
README.md
# atcute
lightweight TypeScript packages for [AT Protocol](https://atproto.com), the protocol powering
Bluesky.
## quick start
```sh
npm install @atcute/client @atcute/bluesky
```
```ts
import { Client, simpleFetchHandler } from '@atcute/client';
import type {} from '@atcute/bluesky';
const client = new Client({
handler: simpleFetchHandler({ service: 'https://public.api.bsky.app' }),
});
const { data } = await client.get('app.bsky.actor.getProfile', {
params: { actor: 'bsky.app' },
});
console.log(data.displayName);
// -> Bluesky
```
for authenticated requests, see the [client docs](./packages/clients/client) or use the
[OAuth browser client](./packages/oauth/browser-client) for web apps.
## packages
| Packages |
| ----------------------------------------------------------------------------------------------------------- |
| **Client packages** |
| [`cache`](./packages/clients/cache): normalized cache store |
| [`client`](./packages/clients/client): XRPC HTTP client |
| [`firehose`](./packages/clients/firehose): XRPC subscription client |
| [`jetstream`](./packages/clients/jetstream): Jetstream WebSocket client |
| [`password-session`](./packages/clients/password-session): password-based auth session handler |
| [`tap`](./packages/clients/tap): Tap WebSocket client |
| **Server packages** |
| [`xrpc-server`](./packages/servers/xrpc-server): XRPC web framework |
| [`xrpc-server-bun`](./packages/servers/xrpc-server-bun): Bun WebSocket adapter …