diff --git a/temp.html b/temp.html deleted file mode 100644 index 478cf17..0000000 --- a/temp.html +++ /dev/null @@ -1,65 +0,0 @@ -
AT Protocol boilerplate for Go, extracted from arabica.social. -Covers OAuth flows, PDS client operations, real-time event consumption, -session storage, HTTP middleware, and testing infrastructure.
---The
-testpdspackage pulls in cocoon to spin up -ephemeral PDS instances, which makes the dependency tree heavy. This is -a single module, so the transitive cost applies even if you only use the -client or OAuth packages.
atp)Core types and clients for the AT Protocol.
-Client – authenticated PDS client for CRUD operations
-on a user’s repository (CreateRecord,
-GetRecord, ListRecords,
-PutRecord, DeleteRecord,
-UploadBlob, GetBlob).OAuthApp – manages the OAuth flow: login (browser-based
-and CLI), callback handling, session resumption, and logout. Supports
-public and localhost (development) client modes.PublicClient – unauthenticated access to public atproto
-APIs (handle resolution, profiles, record reads) with SSRF
-protection.jetstreamWebSocket consumer for the Jetstream relay. -Reconnects with exponential backoff, rotates endpoints, optionally -decompresses zstd, and persists cursors for resuming after restarts.
-middlewareCookie-based AT Protocol auth middleware. Validates sessions against -the OAuth store and injects the authenticated DID into the request -context. Also serves the OAuth client metadata endpoint.
-store/bolt and
-store/sqliteTwo oauth.ClientAuthStore implementations for persisting
-OAuth sessions and auth request state:
testpdsEphemeral, in-process PDS for integration testing. Uses in-memory
-SQLite and an optional FakePLC (from plc) so
-tests need no external services. Includes helpers for creating test
-accounts and subscribing to the firehose.
plcMock PLC directory that stores operations in memory instead of
-posting to a real directory. Used by testpds for isolated
-test environments.
tracingOpenTelemetry span helpers for AT Protocol operations (PDS calls, -database operations, HTTP handlers). Sets up an OTLP HTTP exporter and -returns no-op spans when there is no active trace context.
-go get tangled.org/pdewey.com/atpSee LICENSE for details.