AD
Boost Your Brand on BlueSky—Exclusive banner space to amplify your reach within the BlueSky community.
BSkyInfo LogoBskyInfo
All ToolsCategoriesCollectionsFeed DirectoryLabeler DirectoryArticlesGuidesGlossaryBluesky SDKsSponsor
Submit
All ToolsCategoriesCollectionsFeed DirectoryLabeler DirectoryGuidesGlossaryArticlesBluesky SDKsSponsorSubmit
  1. SDKs
  2. /java
  3. /bsky4j
uakihir0

bsky4j

A java SDK for Bluesky and AT Protocol by uakihir0

Bluesky/ATProtocol client for java

GitHub Stats

35stars
11forks
3contributors
3open issues

Dates

Created:March 10, 2023
Last updated:April 8, 2025

README

The following content is from bsky4j's GitHub repository. All rights reserved by the original author.

If you are using this library on the JVM platform, especially with Kotlin, we recommend that you migrate to kbsky. This library is being migrated to maintenance only.

bsky4j

Java client library for the Bluesky/ATProtocol API. This can compile with google/j2objc to Objective-C library. (for iOS and Mac OS)

How to use

It is available with jitpack.io.

allprojects {
  repositories {
    maven { url 'https://jitpack.io' }
  }
}

dependencies {
  compile 'com.github.uakihir0:bsky4j:x.y.z'
}

CreateSession

Response<ServerCreateSessionResponse> response = BlueskyFactory
        .getInstance(Service.BSKY_SOCIAL.getUri())
        .server().createSession(
                ServerCreateSessionRequest.builder()
                        .identifier("HANDLE")
                        .password("PASSWORD")
                        .build()
        );

String accessJwt = response.get().getAccessJwt();

SendFeed

Response<FeedPostResponse> response = BlueskyFactory
        .getInstance(Service.BSKY_SOCIAL.getUri())
        .feed().post(
                FeedPostRequest.builder()
                        .accessJwt(accessJwt)
                        .text("Hello World!!")
                        .build()
        );

PLC Directory

Response<DIDDetails> response = PLCDirectoryFactory
        .getInstance().getDIDDetails(did);

System.out.println(response.get().getAlsoKnownAs().get(0));

Author

  • @uakihir0.com
  • Twitter:@uakihir0

License

This software is released under the MIT License, see LICENSE.txt.

Related SDKs

smileostrichbsky-bridge

This is implement of ATProtocol for BlueSky. Providing helper methods for authentication, fetching timelines, and managing content.

9•java

Resources

GitHub Repository

License

MIT

Author

uakihir0
uakihir0

Activity

Last commit: April 8, 2025
Commit frequency: Unknown

Our Sponsors

Your Brand Here!

50K+ engaged viewers every month

Limited spots available!

📧 Contact us via email🦋 Contact us on Bluesky
BSkyInfo LogoBskyInfo

The Most Comprehensive Bluesky Tools Directory

Stay updated with the latest Bluesky tools and ecosystem news 🦋

Bluesky butterfly logo
Quick LinksSubmit a ToolSponsorAboutLegal Information
ToolsFeed DirectoryLabeler DirectorySchedulingAnalyticsAll ToolsCategoriesCollectionsTags
ResourcesArticlesBluesky GuidesBluesky GlossaryBluesky SDKsBluesky ResourcesSkyRaffleMeida Coverage
Our ProductsRaffleBlueAiTeach ToolsLaiewAI affiliate listFirsto

This website may contain affiliate links

© 2025 BskyInfo. All rights reserved.