Requirements
- Node.js 18+ (uses built-in
fetch)
Install
Dependencies
Zero runtime dependencies. The SDK uses the built-infetch API available in Node 18+.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Install the Datagate TypeScript SDK
fetch)npm install datagate
fetch API available in Node 18+.
import { DatagateClient } from "datagate";
// With API key (recommended)
const client = new DatagateClient({ apiKey: "dg_live_..." });
// With JWT access token
const client = new DatagateClient({ accessToken: "eyJ..." });
// With custom base URL (for local development)
const client = new DatagateClient({
apiKey: "dg_live_...",
baseUrl: "http://localhost:8080",
});