Skip to content

blowdart/idunno.Bluesky

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Bluesky butterfly logo, except in purpleidunno.Bluesky

GitHub License Last Commit GitHub Tag NuGet Version NuGet Downloads OpenSSF Scorecard

A .NET 8 and .NET 9 class library for the AT Protocol and APIs for the Bluesky social network.

Getting Started

Add the idunno.Bluesky package to your project, and then

BlueskyAgent agent = new ();

var loginResult = await agent.Login(username, password);
if (loginResult.Succeeded)
{
    var response = await agent.CreatePost("Hello World");
    if (response.Succeeded)
    {
    }
}

Please see the documentation for much more useful documentation and samples.

The API status page shows what APIs are currently implemented.

Key Features

  • Creating and deleting posts
    • Posting with mentions, links and hashtags
    • Posting images and video, with alt text support.
    • Setting a post's language
    • Gating threads and posts
    • Liking, quoting, and reposting posts
  • Viewing a user's timeline and notifications
  • Viewing feeds
  • Viewing threads
  • Viewing notifications
  • Viewing and setting preferences for
    • Subscribing to user activities
    • Viewing user profiles
    • Notifications
  • Following and unfollowing users
  • Muting and blocking users
  • Sending, receiving, and deleting direct messages
  • Handle / password and OAuth authentication
  • Jetstream support for simple firehose consumption
  • Automatic session management with background token refreshes

Trimming is supported for applications targeting .NET 9.0 or later.

Current Build Status

Build Status CodeQL Scan Dependency Review

Release History

The releases page provides details of each release and what was added, changed or removed.

License

idunno.Bluesky, idunno.AtProto and idunno.AtProto.OAuthCallBack are available under the MIT license, see the LICENSE file for more information.

Planned work

Major

  • Logging in idunno.Bluesky
  • GIF attaching
  • Firehose support
  • Wider test coverage
  • More deserialization tests with captured responses

Awaiting external

  • Automatic Open Graph card generation when link facets detected.

Dependencies

idunno.AtProto takes a dependency on System.Text.Json v9 to support deserializing derived types where the $type property is not the first property in the JSON object.

External dependencies

External analyzers used during builds

External build & testing tools

Other .NET Bluesky libraries and projects

About

A .NET class library for the Bluesky social network.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Contributors 9