Skip to main content

@idiomark/adapter-bluesky

Bluesky adapter for Idiomark (Personality Compression Protocol). Extracts user personality data from Bluesky using AT Protocol including posts, likes, and follows.

Features​

  • User Profile: Display name, bio, avatar, banner
  • Posts (Skeets): Text content, embeds, reply chains
  • Likes: Favorited content showing interests
  • Follows: Social connections and network analysis

Authentication​

Uses AT Protocol OAuth/JWT authentication.

import { BlueskyAdapter } from '@idiomark/adapter-bluesky'

const adapter = new BlueskyAdapter({
accessJwt: 'your_access_jwt',
refreshJwt: 'optional_refresh_jwt',
did: 'did:plc:...' // optional, will be fetched
})

await adapter.authenticate()

Rate Limits​

Bluesky rate limits:

  • Varies by endpoint (typically generous)
  • App passwords recommended for third-party access

The adapter implements backoff for rate limit errors.

Usage​

// Fetch all user data
const content = await adapter.fetchData({
limit: 100,
startDate: new Date('2024-01-01'),
endDate: new Date('2024-12-31'),
includeReplies: true
})

// Extract raw text for analysis
const { rawContent, metadata } = await adapter.extractRawText({ limit: 100 })

Data Types​

TypeDescription
profileAT Protocol profile with DID and handle
postPosts (skeets) with text and embeds
likeLiked posts showing preferences

AT Protocol​

This adapter uses the AT Protocol (XRPC):

  • Decentralized identity
  • Portable social graph
  • Interoperable with other AT Protocol apps

API Documentation​

License​

MIT