juicebox-sdk-patterns
Installation
SKILL.md
Juicebox SDK Patterns
Singleton Client
let instance: JuiceboxClient | null = null;
export function getClient(): JuiceboxClient {
if (!instance) instance = new JuiceboxClient({ apiKey: process.env.JUICEBOX_API_KEY });
return instance;
}
Batch Search with Dedup
async function batchSearch(queries: string[]): Promise<Profile[]> {
const seen = new Set<string>();
const all: Profile[] = [];
for (const q of queries) {
const r = await client.search({ query: q, limit: 20 });
for (const p of r.profiles) {
Related skills