← Public packages
@kentcdodds/bluesky
Bluesky and AT Protocol helpers using package-storage handle plus blueskyAppPassword.
src/search-posts.ts
16 lines · 785 B · TypeScriptimport { searchPosts } from './client.ts'
import type { SearchPostsInput } from './types.ts'
/**
* Search Bluesky posts matching a query string.
* @param params.q - Search query text.
* @param params.authenticated - When false, skip session creation. Defaults to true: session on `bsky.social`, then `app.bsky.feed.searchPosts` on `api.bsky.app` with the JWT (password never touches the AppView host).
* @returns Feed search page with `posts` and optional `cursor`.
* @example
* import searchPosts from 'kody:@kentcdodds/bluesky/search-posts'
* const result = await searchPosts({ q: 'typescript', limit: 10 })
* // => { posts: [...], cursor: '...' }
*/
export default async function searchPostsEntrypoint(params: SearchPostsInput = {}) {
return await searchPosts(params)
}