Skip to content
← Public packages

@kody/stash

Keep searchable notes, reminders, and facts in this package's storage — no OAuth, API keys, or bot tokens.

src/search.ts

15 lines · 507 B · TypeScript
Raw
import { searchNotes } from './lib/notes.ts'
export { searchNotes }

/**
 * Search stash notes by text, tags, and extracted entities.
 *
 * @returns Ranked matches from the newest 500 notes.
 * @example
 * import searchNotes from 'kody:@kody/stash/search'
 * const result = await searchNotes({ query: 'garage code', limit: 5 })
 * // => { query: 'garage code', matches: [{ note: {...}, score: 0.8 }] }
 */
export default async function searchStashNotes(input?: unknown) {
	return await searchNotes(input)
}