atproto
2.5.1, released 2 weeks ago by atprotodart.com
Comprehensive client library for the AT Protocol supporting records, identity, and the firehose.
What it does
Provides complete coverage of the com.atproto namespace for Dart and Flutter. Enables repository management, session-based and OAuth authentication, and real-time data streaming via the Firehose API.
AI-written summary of version 2.5.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- Building decentralized social applications or clients for Bluesky
- Interacting with AT Protocol services, repositories, and identity management
- Consuming real-time data streams from the AT Protocol firehose
Skip it when
- Working with other backend ecosystems like Firebase or Supabase instead of AT Protocol
- Needing general-purpose HTTP requests without AT Protocol semantics
Strengths
- Complete coverage of all com.atproto endpoints and services
- Built-in robust retry logic, exponential backoff, and durable cursor management
- Supports both session-based authentication and OAuth DPoP
Weaknesses
- Tied strictly to the AT Protocol ecosystem
- Requires careful state management of cursor storage for high-throughput firehose consumers
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- Yes (build_runner)
- Direct dependencies
- 4
Not documented
import 'package:atproto/atproto.dart';
Future<void> main() async {
final session = await createSession(
service: 'bsky.social',
identifier: 'your.handle.bsky.social',
password: 'your-app-password',
);
final atproto = ATProto.fromSession(session.data);
}Alternatives
Packages that do the same job and could replace atproto.
- http2
An HTTP/2 implementation in Dart for low-level transport and pooled HTTP/2 requests.
91Compare - twitter_api_v2
Dart and Flutter client library for the Twitter API v2.0.
45Compare
Works with
Packages commonly used together with atproto: ones it builds on, ones built on it, and its own family.