exa-sdk-patterns

Installation
SKILL.md

Exa SDK Patterns

Overview

Production-ready patterns for the exa-js SDK. Covers client singletons, typed wrappers, error handling, retry logic, and response validation for real Exa API methods.

Prerequisites

  • exa-js installed and EXA_API_KEY configured
  • TypeScript project with strict mode
  • Familiarity with async/await and error handling

Instructions

Step 1: Client Singleton

// src/exa/client.ts
import Exa from "exa-js";

let instance: Exa | null = null;

export function getExa(): Exa {
Related skills
Installs
23
GitHub Stars
2.2K
First Seen
Feb 18, 2026
Security Audits