bluesky 패키지는 Bluesky Social 플랫폼과 상호작용하도록 설계된 강력한 Dart/Flutter 라이브러리로, 사용자 인증, 콘텐츠 게시, 피드 조회 및 소셜 상호작용 관리를 가능하게 합니다. atproto 프로토콜 기반으로 구축되어 여러 플랫폼에서 작동하는 Flutter 앱에 깔끔하고 타입 안전한 API를 제공합니다. Bluesky의 분산 네트워크와 완전히 통합되며, 실시간 업데이트와 안전한 인증을 필요로 하는 소셜 미디어 앱에 적합합니다. 지속적으로 유지보수되고 잘 문서화되어 있어 생산 환경에서도 신뢰할 수 있습니다.
사용 사례
블루스카이 클라이언트 앱 빌드
소셜 게시 기능 통합
사용자 타임라인 가져오기
인증 흐름 구현
탈중앙화된 소셜 도구 만들기
주요 기능
완전한 atproto 프로토콜 지원
크로스 플랫폼 호환성
유형 안전한 API 설계
보안 인증 처리
실시간 피드 업데이트
적합한 대상
소셜 앱을 구축하는 Flutter 개발자
블루스키 통합을 만드는 팀
분산형 소셜 기능이 필요한 앱
Dart/Flutter에 익숙한 개발자
고려 사항
atproto 프로토콜에 대한 이해가 필요합니다
추가 상태 관리가 필요할 수 있습니다
외부 블루스카이 서버의 가용성에 따라 달라짐
API 변경은 업데이트가 필요할 수 있습니다
인증 토큰은 안전하게 처리되어야 합니다
원본 README
연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.
AT Protocol and Bluesky Social Things for Dart/Flutter
The comprehensive Dart/Flutter SDK for the AT Protocol ecosystem - empowering developers to build the next generation of decentralized social applications with Bluesky and beyond.
1. About atproto.dart 💪
The AT Protocol represents a paradigm shift toward decentralized social networking, and Bluesky is leading this transformation. As the ecosystem grows rapidly with millions of users and thousands of developers building innovative applications, the need for robust, well-designed development tools has never been greater.
atproto.dart is the most comprehensive and battle-tested SDK for AT Protocol development in Dart and Flutter. Whether you're building mobile apps, web applications, bots, or backend services, our SDK provides everything you need to integrate with the AT Protocol ecosystem efficiently and reliably.
Why Choose atproto.dart?
For Mobile & Web Developers:
Build cross-platform social apps with Flutter using production-ready AT Protocol integration
Access the complete Bluesky API including posts, feeds, profiles, messaging, and moderation
Leverage built-in OAuth DPoP authentication for secure user sessions
For Backend & Bot Developers:
Create powerful automation tools and bots with comprehensive API coverage
Process real-time data streams using our optimized Firehose implementation
Build custom AT Protocol services and bridges to other platforms
Access Ozone moderation tools for administrative operations
For AT Protocol Enthusiasts:
Work with all core AT Protocol primitives: DIDs, NSIDs, AT URIs, Lexicons, and XRPC
Contribute to the growing ecosystem of decentralized social applications
Access cutting-edge features as the protocol evolves
Proven in Production:
Used by popular applications like SkyFeed, deck.blue, SkyThrow, and many others serving thousands of users daily. Our SDK is actively maintained, thoroughly tested, and designed for the demands of production applications.
2. Package Ecosystem 📦
The atproto.dart ecosystem is organized into focused packages that work together seamlessly. Choose the packages that match your project's needs, from low-level AT Protocol primitives to high-level client libraries.
2.1. Core Libraries
Foundation packages for AT Protocol primitives and data structures
Want to publish your own algorithmic feed to Bluesky? A custom feed generator is a small HTTP service the AppView calls to get an ordered list of post URIs.
The templates/feed_generator template is a complete, runnable starting point — clone the directory, edit the algorithm, and deploy:
bin/server.dart serves the three endpoints the AppView needs (/.well-known/did.json, app.bsky.feed.describeFeedGenerator, app.bsky.feed.getFeedSkeleton) and verifies each inbound service-auth JWT with atproto_identity.
bin/publish_feed.dart registers the feed on the network (app.bsky.feed.generator record).
A Firehose indexer, a FeedAlgorithm interface with a reverse-chronological sample, and a swappable FeedStore are included — replace the algorithm and store with your own.
# From a clone of this repository:cd templates/feed_generator
export FEEDGEN_HOSTNAME=feed.example.com
export FEEDGEN_PUBLISHER_HANDLE=you.bsky.social
export FEEDGEN_PUBLISHER_PASSWORD=xxxx-xxxx-xxxx-xxxx
dart run bin/server.dart # index the firehose and serve the feed
dart run bin/publish_feed.dart # register the feed on the network
IDE: VS Code, IntelliJ, or any Dart-compatible editor
4.2. Quick Setup
# Clone the repository
git clone https://github.com/myConsciousness/atproto.dart.git
cd atproto.dart
# Install Melos globally
dart pub global activate melos
# Set up all packages (dependencies, code generation, etc.)
melos setup
The melos setup command handles everything: installing dependencies, running code generation, and preparing the development environment across all packages.
4.3. Development Commands
Command
Description
melos setup
Complete project setup - run this first!
melos get
Install dependencies for all packages
melos analyze
Run static analysis across all packages
melos test
Execute all tests in the project
melos fmt
Format code and organize imports
melos build
Run code generation for all packages
melos gen
Generate API clients from Lexicon schemas
Release commands (maintainers):
Command
Description
melos publish_dry
Dry-run publish for all Dart workspace packages (validate only) - run this first
melos publish_live
Publish all Dart packages to pub.dev and create git version tags
melos publish_tags
Push the git version tags created by melos publish_live to origin
melos flutter_publish_dry
Dry-run publish for the Flutter package (bluesky_text_flutter)
melos flutter_publish_live
Publish the Flutter package (bluesky_text_flutter) to pub.dev
melos flutter_publish_tags
Tag and push the Flutter package release
4.4. Troubleshooting
Setup Issues:
"melos command not found": Ensure ~/.pub-cache/bin is in your PATH, or run dart pub global activate melos
Build failures: Try melos clean followed by melos setup to reset the environment
Version conflicts: Ensure you're using Dart 3.8.0+ with dart --version
Development Issues:
Import errors: Run melos build to regenerate code
Test failures: Check if you need to run melos gen to update generated API clients
Dependency issues: Use melos get to refresh all package dependencies