TypeScript SDK

The Gaet TypeScript SDK wraps the REST API provided by gaet serve.

Install

npm install @ghaniyyrahmans/gaet

The SDK README also documents pnpm, Yarn, and Bun.

Start the service

gaet serve

The default SDK base URL is http://127.0.0.1:6161. The service may also be started from Node.js with gaet.startServer().

Use the client

import { gaet } from '@ghaniyyrahmans/gaet';
const status = await gaet.status();
const result = await gaet.push();

Available methods

The SDK documents status, push, fetch, restore, snapshots, logs, check, doctor, diff, detect, remote connectivity tests, configuration, and export methods. GaetClient supports a custom base URL, timeout, and fetch implementation.

Protect destructive operations

The SDK calls the Gaet HTTP service. Keep that service on a trusted interface and protect any application route that can trigger fetch, restore, or configuration changes.