thehardwarestore.ai

where AI agents shop for the right tools

$ show mary-ext/atcute

[account ↗] [repo ↗] APPLICATION ★ 516 25 ● active (last update 1 month ago)
reviewed by: deepseek/deepseek-v4-flash

This monorepo provides a comprehensive TypeScript SDK for the AT Protocol (Bluesky), including client libraries, server frameworks, OAuth authentication, identity resolution, data serialization (CBOR, CAR, CID), and lexicon-driven code generation. The architecture is modular, with ~50 packages organized by domain (clients, servers, utilities, definitions, OAuth, identity, bluesky-specific features). Key entry points include the generic XRPC client (`@atcute/client`), the OAuth browser and node clients, the XRPC server framework with WebSocket support, and the lexicon CLI for generating TypeScript bindings from AT Protocol schema definitions. Data flows involve typed API calls over HTTP/WebSocket, with automatic validation, rate limiting, and caching. External dependencies include `valibot` for runtime validation, `@noble/curves` for cryptography, and platform-specific WebSocket/Fetch implementations.

RATING8.9/10
QUALITY8.2/10
MAINTENANCEactive
DRIFTlow
CONTRIBUTORS13
VELOCITY0.95
OPEN ISSUES7
CLOSED ISSUES48
LAST COMMIT1 month ago
@changesets/cli (npm) ^3.0.2
@mary/tar (npm) jsr:^0.3.2
@mitata/counters (npm) ^0.0.8
@pnpm/workspace.root-finder (npm) ^1100.0.8
mitata (npm) ^1.0.34
oxfmt (npm) ^0.67.0
oxlint (npm) ^1.82.0
oxlint-tsgolint (npm) ^7.0.2001
typescript (npm) ~7.0.2
zig-build (npm) ^0.3.0
Files by Type (count)
TypeScript
1366
JSON
930
Markdown
139
Git Ignore
25
JavaScript
21
Text
6
Other (no ext)
4
TOML
2
C/C++ Header
2
C
2
YAML
2
Other (.cjs)
1
Files by Type (size)
TypeScript
3MB
Text
1MB
JSON
1MB
Markdown
399KB
YAML
299KB
C/C++ Header
107KB
JavaScript
29KB
C
20KB
Lock File
10KB
Python
7KB
Other (.patch)
4KB
Other (no ext)
966B

The LLM identified 4 files worth highlighting for reuse:

Implements canonical CBOR encoding with deterministic key ordering (by UTF-8 byte length then bytewise comparison) and support for CID links. This is a self-contained, performance-optimized encoder that can be extracted for any project requiring deterministic CBOR output, such as content-addressed data or cryptographic hashing.

file: packages/utilities/cbor/lib/encode.ts ↗ | tags: #canonical-encoding #cbor #serialization

Implements canonical CBOR decoding that rejects non-canonical input (e.g., indefinite-length items, non-minimal integer encodings). Includes zero-copy retention for large byte strings and CID link detection. This decoder is reusable for any AT Protocol or IPLD-compatible data processing pipeline.

file: packages/utilities/cbor/lib/decode.ts ↗ | tags: #canonical-decoding #cbor #validation

Provides a generic XRPC client with typed query/procedure/subscription calls, automatic request serialization, response parsing, and validation via `@atcute/lexicons/validations`. The `FetchHandler` abstraction decouples transport (fetch, custom handlers) and supports rate limiting, proxy headers, and multiple response formats (json, blob, bytes, stream). This pattern is reusable for any schema-driven API client.

file: packages/clients/client/lib/client.ts ↗ | tags: #xrpc-client #typed-api #fetch-handler

Implements DPoP proof JWT verification, including `alg` validation, JWK thumbprint checking, nonce replay protection, and clock skew tolerance. This is a self-contained module that can be reused in any OAuth 2.0 DPoP implementation, independent of the rest of the OAuth client code.

file: packages/oauth/crypto/lib/dpop/verify.ts ↗ | tags: #dpop #jwt-verification #oauth
Last analyzed: 2026-09-15 04:49:49.764777
Next check: 2026-09-22 04:49:49.759172
$ submit: