runrobot
v0.2.0
Published
Publish scenes, robots, and policies to runrobotics.co and build public URLs.
Downloads
18
Maintainers
Readme
runrobot
runrobot is the publishing SDK for runrobotics.co.
The SDK is only needed for authoring workflows like:
- uploading scenes
- uploading robot bundles
- uploading policy models
- building canonical public URLs
Public run URLs such as https://runrobotics.co/amazon/php-parkour do not need this SDK to run. They load directly in the browser.
Install
npm install runrobotUsage
import { readFile } from "node:fs/promises";
import Runrobot from "runrobot";
const client = new Runrobot({
auth: process.env.RUNROBOT_API_TOKEN ?? "YOUR_RUNROBOT_API_TOKEN",
});
const scene = await client.publishScene({
glb: new Blob([await readFile("./scene.glb")], { type: "model/gltf-binary" }),
});
console.log(client.buildUrl(scene));API
new Runrobot({ auth, baseUrl?, timeoutMs?, fetch? })client.publishScene(...)client.publishRobot(...)client.publishPolicy(...)client.buildUrl(...)
