← Public packages
@kentcdodds/bluesky
Bluesky and AT Protocol helpers using package-storage handle plus blueskyAppPassword.
src/get-profile.ts
16 lines · 703 B · TypeScriptimport { getProfile } from './client.ts'
import type { GetProfileInput } from './types.ts'
/**
* Read a Bluesky actor profile.
* @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 Profile record from `app.bsky.actor.getProfile`.
* @example
* import getProfile from 'kody:@kentcdodds/bluesky/get-profile'
* const result = await getProfile({ actor: 'kentcdodds.com' })
* // => { did: '...', handle: '...', displayName: '...' }
*/
export default async function getProfileEntrypoint(params: GetProfileInput = {}) {
return await getProfile(params)
}