@hyperaide/api
v0.1.0
Published
Node SDK for the Hyperaide public API.
Readme
@hyperaide/api
Node SDK for the Hyperaide public API at api/v1.
Install
pnpm add @hyperaide/apiUsage
import { HyperaideApiClient, encodeFileContent } from "@hyperaide/api";
const client = new HyperaideApiClient({
baseUrl: "https://your-hyperaide-host.com",
apiKey: process.env.HYPERAIDE_API_KEY!,
});
const folder = await client.createFolder({
path: "/docs",
});
const file = await client.upsertFile({
node_path: "/docs/hello.txt",
content_base64: encodeFileContent("hello world"),
mime_type: "text/plain",
});
const listing = await client.listNodes({
path: "/docs",
});The client currently covers the public operations documented in the app's OpenAPI builder:
- Database schema migrations
- Filesystem listing, metadata, copy, delete, and search
- File create, overwrite, content read, and signed URL lookup
