@computesdk/collimate
v0.1.0
Published
Collimate provider for ComputeSDK
Downloads
1,783
Maintainers
Readme
@computesdk/collimate
Collimate provider for ComputeSDK.
Installation
npm install @computesdk/collimate computesdkUsage
import { collimate } from "@computesdk/collimate";
import { compute } from "computesdk";
compute.setConfig({
provider: collimate({
apiKey: "col_live_...",
templateId: "node",
}),
});
const sandbox = await compute.sandbox.create();
const result = await sandbox.runCommand("node -v");
console.log(result.stdout); // v22.x.x
await sandbox.destroy();Configuration
| Option | Type | Default | Description |
|--------|------|---------|-------------|
| apiKey | string | COLLIMATE_API_KEY env | API key for authentication |
| serverUrl | string | https://api.collimate.ai | API server URL |
| templateId | string | — | Template ID (node, python, etc.) |
| timeout | number | 900 | Execution timeout in seconds |
Supported operations
create()/destroy()— sandbox lifecyclerunCommand()— shell execution with stdout/stderr/exitCodewriteFile()/readFile()— filesystem operationsmkdir()/readdir()/exists()/remove()— directory operationsgetById()/list()/getInfo()— sandbox management
