Skip to main content

JavaScript / TypeScript SDK

The official SDK for Node.js 18+ and browser environments. Zero runtime dependencies.
npm install @engramtraining/sdk
import { Engram } from '@engramtraining/sdk';

const engram = new Engram({
  apiKey: process.env.ENGRAM_API_KEY!,
});

JavaScript / TypeScript SDK

Full reference with examples for every method.

Direct API Access

If no SDK is available for your language, you can use the REST API directly. The API uses standard HTTP conventions:
  • JSON request/response bodies
  • Bearer token authentication
  • Standard HTTP methods (GET, POST, PUT, PATCH, DELETE)
curl -H "Authorization: Bearer sk_live_..." \
  https://api.engram.training/v1/memory

SKILL.md Auto-Discovery

Every Engram instance serves its full API documentation at:
GET /v1/skill
This returns the latest SKILL.md with all endpoints, fields, and changes. AI agents can fetch this on startup to self-discover the API.