The SwarmNode TypeScript SDK provides convenient access to the SwarmNode REST API from any Node.js 20+ application. The SDK includes rich type definitions and enables receiving real-time executions via WebSockets.
Full documentation of the SDK is available at https://swarmnode.ai/docs/sdk/introduction. You may also want to check out the REST API Reference.
You can install the SDK using npm
or bun
or pnpm
:
npm install @swarmnode/sdk
or
bun add @swarmnode/sdk
or
pnpm add @swarmnode/sdk
import { SwarmNode } from "@swarmnode/sdk";
const swarmnode = new SwarmNode({
apiKey: process.env.SWARMNODE_API_KEY,
});
These are only a few examples of what you can do with the SDK. Refer to the full documentation to learn more about the SDK.