← Public packages
@kentcdodds/bluesky
Bluesky and AT Protocol helpers using package-storage handle plus blueskyAppPassword.
src/follow.ts
15 lines · 655 B · TypeScriptimport { follow } from './client.ts'
import type { FollowInput } from './types.ts'
/**
* Follow a Bluesky actor. Maps `actor` aliases (`handle`/`did`/`user`/`username`); rejects unknown keys. Publishing requires `confirm: true`.
* @param params.actor - Handle or DID to follow.
* @returns Created follow record or dry-run payload.
* @example
* import follow from 'kody:@kentcdodds/bluesky/follow'
* const result = await follow({ actor: 'example.bsky.social', dryRun: true })
* // => { dryRun: true, action: 'follow', payload: { ... } }
*/
export default async function followEntrypoint(params: FollowInput = {}) {
return await follow(params)
}