Skip to main content

Installation

Add the Worlds SDK to your project.
deno add jsr:@wazoo/worlds-sdk

Initialize your first world

Connect to the Worlds API and initialize a persistent context.
import { WorldsSdk } from "@wazoo/worlds-sdk";

const sdk = new WorldsSdk({
  baseUrl: "https://api.wazoo.dev",
  apiKey: "YOUR_API_KEY",
});

const world = await sdk.worlds.create({
  slug: "my-first-world",
  label: "My First World",
});

Add context

Provide AI agents with persistent, searchable memory.
await sdk.worlds.import(
  "my-first-world",
  `
  <#memo> <http://purl.org/dc/terms/description> "The secret ingredient is always more compute." .
  `,
  { format: "turtle" },
);

Next steps

Explore the following resources: