JavaScript SDK
Node.js and browser client
Installation
bash
npm install @echostash/sdkInitialization
import { EchostashClient } from "@echostash/sdk"
const client = new EchostashClient({
apiKey: process.env.ECHOSTASH_API_KEY
})Basic Usage
// Get a prompt
const prompt = await client.getPrompt("my-prompt")
// Render with variables
const rendered = await client.renderPrompt("my-prompt", {
variables: { name: "Alice" }
})