Skip to content

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

Package listing

@kody/bluesky

src/search-posts.ts

15 lines · 560 B · TypeScript
import { searchPosts } from './client.ts'
import type { SearchPostsInput } from './types.ts'

/**
 * Search Bluesky posts matching a query string.
 * @param params.q - Search query text.
 * @returns Feed search page with `posts` and optional `cursor`.
 * @example
 * import searchPosts from 'kody:@kody/bluesky/search-posts'
 * const result = await searchPosts({ q: 'typescript', limit: 10 })
 * // => { posts: [...], cursor: '...' }
 */
export default async function searchPostsEntrypoint(params: SearchPostsInput = {}) {
  return await searchPosts(params)
}