Socket
Book a DemoInstallSign in
Socket

vitrus

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vitrus

TypeScript client for interfacing with the Vitrus SDK

0.2.4
latest
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

Vitrus

latest version install size NPM downloads weekly

LinkedIn cover - 1 (4) A TypeScript client for multi Agent-World-Actor orchestration, with easy-to-use spatial perception Workflows. For detailed documentation and more examples access Vitrus Docs.

💡 Tip: If anything takes more than 2 minutes to setup, ask in our Discord channel.

Installation

# Using npm
npm install vitrus

# Using bun
bun add vitrus

Authentication

Get an API Key

import Vitrus from "vitrus";

// Initialize the client with all options
const vitrus = new Vitrus({
  apiKey: process.env["VITRUS_API_KEY"],
});

Workflows

Workflows have a similar schema as AI tools, so it connects perfectly with OpenAI function Calling. Making Workflows great to compose complex physical tasks with AI Agents. The following is a simple example of how to run a workflow:

// running a basic workflow
const result = await vitrus.workflow("hello-world", {
  prompt: "hello world!",
});

console.log(result);

Workflows are executed in Cloud GPUs (e.g. Nvidia A100), and combine multiple AI models for complex tasks.

Available Workflows

We are continously updating the available workflows, and keeping them up to date with state-of-the-art (SOTA) AI models. For the latest list of workflows, you can execute:

const workflows = vitrus.list_workflows();
console.log(workflows);
Example JSON Response
[
  {
    "type": "function",
    "function": {
      "name": "perception-encoder",
      "description": "Encodes perception data based on specified parameters.",
      "parameters": {
        "type": "object",
        "properties": {
          "inputData": {
            "type": "object",
            "description": "The raw data to encode.",
            "additionalProperties": true
          },
          "encodingType": {
            "type": "string",
            "description": "The encoding method to use (e.g., 'base64', 'json')."
          }
        },
        "required": ["inputData"]
      }
    }
  }
]

Worlds and Actors

Create a world at app.vitrus.ai.

import Vitrus from "vitrus";

// Initialize the client
const vitrus = new Vitrus({
  apiKey: "your-api-key",
  baseUrl: "ws://localhost:3001", //hosted Vitrus URL
});

Actors

import Vitrus from "vitrus";

const vitrus = new Vitrus({
  apiKey: "<your-api-key>",
  world: "<world-id>",
});

const actor = await vitrus.actor("forest", {
  human: "Tom Hanks",
  eyes: "green",
});

actor.on("walk", (args: any) => {
  console.log("received", args);
  return "run forest, run!";
});

Agents

On the Agent side, once connected to, the actor can be treated as "functions".

import Vitrus from "vitrus";

const vitrus = new Vitrus({
  apiKey: "<your-api-key>",
  world: "<world-id>", //must match actor's world
});

const actor = await vitrus.actor("forest");

const resp = await actor.run("walk", {
  direction: "front",
});

How Vitrus works internally

Vitrus workflows, worlds, actors and agents runs on top of Distributed Actor Orchestration (DAO). A lightweight cloud system that enables the cross-communication of agents-world-actors.

Keywords

vitrus

FAQs

Package last updated on 22 May 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.