Bluesky API client for nimble apps and tools ☁️
A lightweight, fast, universal and typed Bluesky API wrapper for Apps & Bots.
tsky is still in active development and is not ready for production use. If you want to contribute to the project, please read the CONTRIBUTING.md file or join our Discord Server.
tsky is a lightweight, fast, universal and typed Bluesky API wrapper for Apps & Bots. It's designed to be easy to use, lightweight and straightforward to use. It's built with TypeScript and has full type support.
It was primarily built for the Nimbus Client but can be used in any other project that requires Bluesky API integration.
# NPM
npm install tsky
# Yarn
yarn add tsky
# PNPM
pnpm add tsky
# Bun
bun add tsky
Using a Public Agent
import { createAgent } from '@tsky/client';
const agent = await createAgent({
options: {
service: 'https://public.api.bsky.app',
},
});
// Getting a user from their handle
// First, we need to get the user's DID
const did = await agent.resolveDIDFromHandle(handle);
// Then, we can get the user's profile
const profile = await agent.actor(did);
Using an Authenticated Agent
import { createAgent } from '@tsky/client';
const agent = await createAgent({
credentials: {
identifier: "handle",
password: "password"
}
});
// Getting the profile of the authenticated user
const user_profile = await agent.user.profile();
If you want to contribute to this project, please read the CONTRIBUTING.md file.
This project is licensed under the MIT License - see the LICENSE file for details.
a collection of lightweight TypeScript packages for AT Protocol, the protocol powering Bluesky.
Use this repository to get started with your own Bluesky Labeler.
ATProto Feed Generator Starter Kit
AT Protocol Reference Implementation (TypeScript)
A dead simple client for subscribing to an ATProto Relay ("firehose").
A fully typed client for the Bluesky Jetstream (https://github.com/bluesky-social/jetstream) service.
Your Brand Here!
50K+ engaged viewers every month
Limited spots available!
📧 Contact us via email🦋 Contact us on Bluesky