npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@elizaos/plugin-roblox-root

v2.0.0-alpha.1

Published

Roblox plugin for elizaOS v2.0.0 - Enables AI agents to communicate with Roblox games via the Open Cloud API.

Readme

@elizaos/plugin-roblox

Roblox plugin for elizaOS v2.0.0 - Enables AI agents to communicate with Roblox games via the Open Cloud API.

Features

  • Messaging Service: Cross-server communication with Roblox games
  • DataStore Operations: Persistent data storage for agents
  • Player Management: Look up player information by ID or username
  • Game Actions: Execute custom actions in-game
  • Experience Info: Retrieve game metadata and statistics
  • Multi-Language: Available in TypeScript, Rust, and Python

Installation

TypeScript

npm install @elizaos/plugin-roblox
# or
bun add @elizaos/plugin-roblox

Rust

[dependencies]
elizaos-plugin-roblox = "2.0"

Python

pip install elizaos-plugin-roblox

Quick Start

TypeScript (elizaOS)

import { robloxPlugin } from "@elizaos/plugin-roblox";

// Add to your agent configuration
const agent = {
  plugins: [robloxPlugin],
  // ... other config
};

Environment Variables

| Variable | Required | Description | | ------------------------ | -------- | ---------------------------------------- | | ROBLOX_API_KEY | Yes | Roblox Open Cloud API key | | ROBLOX_UNIVERSE_ID | Yes | Universe ID of your experience | | ROBLOX_PLACE_ID | No | Specific place ID | | ROBLOX_WEBHOOK_SECRET | No | Secret for webhook validation | | ROBLOX_MESSAGING_TOPIC | No | Messaging topic (default: "eliza-agent") | | ROBLOX_POLL_INTERVAL | No | Poll interval in seconds (default: 30) | | ROBLOX_DRY_RUN | No | Enable dry run mode (default: false) |

Actions

SEND_ROBLOX_MESSAGE

Send a message to players in a Roblox game.

Examples:

  • "Tell everyone in the game that there's a special event happening"
  • "Send a welcome message to player123"

EXECUTE_ROBLOX_ACTION

Execute a custom action in a Roblox game.

Examples:

  • "Start a fireworks show in the game"
  • "Give player456 100 coins as a reward"
  • "Teleport everyone to the lobby"

GET_ROBLOX_PLAYER

Look up information about a Roblox player.

Examples:

  • "Who is player 12345678?"
  • "Look up the Roblox user JohnDoe123"

Providers

roblox-game-state

Provides information about the connected Roblox experience to the agent's context:

  • Universe ID and Place ID
  • Experience name and statistics
  • Active player count
  • Creator information
  • Messaging topic configuration

Services

RobloxService

Main service for managing Roblox connections and communication:

import { RobloxService, ROBLOX_SERVICE_NAME } from "@elizaos/plugin-roblox";

// Get service from runtime
const service = runtime.getService<RobloxService>(ROBLOX_SERVICE_NAME);

// Send a message to all players
await service.sendMessage(runtime.agentId, "Hello from Eliza!");

// Execute a game action
await service.executeAction(
  runtime.agentId,
  "spawn_item",
  { item: "sword", rarity: "legendary" },
  [12345678], // Target specific player
);

Roblox Game Integration

To receive messages from your Roblox game, you'll need to set up a Luau script that listens to the Messaging Service:

-- Server script in Roblox Studio
local MessagingService = game:GetService("MessagingService")

local TOPIC = "eliza-agent" -- Must match ROBLOX_MESSAGING_TOPIC

MessagingService:SubscribeAsync(TOPIC, function(message)
    local data = game:GetService("HttpService"):JSONDecode(message.Data)

    if data.type == "agent_message" then
        -- Handle agent message
        print("Agent says:", data.content)
        -- Broadcast to players, show in chat, etc.
    elseif data.type == "agent_action" then
        -- Handle agent action
        print("Agent action:", data.action, data.parameters)
        -- Execute the action in-game
    end
end)

Limitations & recommended architecture (critical notes)

Inbound messages (Roblox → agent)

Roblox Open Cloud does not provide an external “subscribe” API for MessagingService. That means:

  • This plugin supports agent → Roblox (publish) reliably.
  • It cannot, by itself, “listen to player chat” from outside Roblox by polling Open Cloud.

Recommended approach: run a small HTTP bridge server that Roblox calls via HttpService:RequestAsync(...) and let the agent respond. See examples/roblox/.

Movement / “walking around”

Agents cannot move things in Roblox via Open Cloud directly. Movement is possible only when your Roblox experience:

  • subscribes to the topic
  • interprets agent_action payloads (e.g. move_npc, teleport)
  • performs the movement using Roblox APIs (Humanoid / Pathfinding / TeleportService)

Voice

Open Cloud does not provide a direct “agent voice” channel.

  • You can generate audio externally, but Roblox playback requires game-side logic and Roblox’s audio constraints (assets / permissions / allowed sources).
  • Most deployments start with text and add voice later with custom UI and an audio pipeline.

Project Structure

plugin-roblox/
├── typescript/          # TypeScript implementation
│   ├── actions/         # Agent actions
│   ├── services/        # RobloxService
│   ├── providers/       # Context providers
│   ├── client/          # API client
│   ├── types/           # Type definitions
│   └── index.ts         # Plugin entry point
├── rust/                # Rust implementation
│   └── src/
│       ├── client.rs    # API client
│       ├── service.rs   # Service implementation
│       └── lib.rs       # Crate entry point
├── python/              # Python implementation
│   └── elizaos_plugin_roblox/
│       ├── client.py    # API client
│       ├── service.py   # Service implementation
│       └── __init__.py  # Package entry point
└── package.json         # npm package configuration

Development

Building

# TypeScript
bun run build

# Rust
bun run build:rust

# Python
pip install -e "python/[dev]"

Testing

# TypeScript
bun run test

# Rust
bun run test:rust

# Python
cd python && pytest

Linting

# TypeScript
bun run lint

# Rust
bun run lint:rust

# Python
bun run lint:python

API Reference

TypeScript

See typescript/ for the full TypeScript API.

Rust

See rust/README.md for the Rust API documentation.

Python

See python/README.md for the Python API documentation.

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Run tests (bun run test)
  5. Submit a pull request

License

MIT

Related Links