Echostash SDK
Universal prompt management SDK (JS + Python)
Echostash SDK
The Echostash SDK provides a fluent API for fetching prompts and converting them to any LLM provider format. Available for JavaScript and Python.
Installation
npm install @goreal-ai/echostashQuick Start
import { Echostash } from "@goreal-ai/echostash"
const es = new Echostash({ apiKey: process.env.ECHOSTASH_API_KEY })
// Fetch → set variables → convert to OpenAI format
const messages = await es
.prompt("welcome-email")
.vars({ name: "Alice", tier: "pro" })
.openai()Fluent API Chain
The SDK uses a chainable pattern: prompt() → vars() → provider()
.prompt(id)— Fetch a prompt by slug or ID.vars({...})— Set template variables for rendering.openai()— Convert to OpenAI chat messages format.anthropic()— Convert to Anthropic messages format.google()— Convert to Google Gemini format.vercelAi()— Convert to Vercel AI SDK format.langchain()— Convert to LangChain messages format
Extract Model Config
// Get model settings stored with the prompt
const loaded = await es.prompt("welcome-email").vars({ name: "Alice" })
const config = loaded.config()
// { model: "gpt-4o", temperature: 0.7, maxTokens: 1024 }