Skip to content

Built for people who want to own their automations. Join the waitlist for an invite.

Package listing

@kody/bluesky

src/get-author-feed.ts

16 lines · 718 B · TypeScript
import { getAuthorFeed } from './client.ts'
import type { GetAuthorFeedInput } from './types.ts'

/**
 * Read an author's Bluesky feed.
 * @param params.actor - Handle or DID; defaults to `blueskyHandle`.
 * @param params.authenticated - When true, create a session and read via `bsky.social`. Defaults to the public AppView.
 * @returns Author feed page with `feed` items and optional `cursor`.
 * @example
 * import getAuthorFeed from 'kody:@kody/bluesky/get-author-feed'
 * const result = await getAuthorFeed({ actor: 'bsky.app', limit: 10 })
 * // => { feed: [...], cursor: '...' }
 */
export default async function getAuthorFeedEntrypoint(params: GetAuthorFeedInput = {}) {
  return await getAuthorFeed(params)
}