Introducing Swarm.js: Node.js Implementation of OpenAI Swarm!

Hey everyone! :wave:

I’m excited to share Swarm.js, a lightweight Node.js SDK for orchestrating multi-agent systems using OpenAI’s API. It’s an educational framework inspired by the OpenAI Swarm (originally built in Python), now available for the JavaScript/Node.js community.

With Swarm.js, you can easily create and manage agents that perform tasks, make decisions, and hand off conversations between each other — all using OpenAI’s power!

:wrench: Key Features:

  • Simple and ergonomic multi-agent orchestration
  • Define agents with custom instructions and tools
  • Lightweight and highly customizable for real-world use cases
  • Inspired by OpenAI’s official Swarm framework

:package: Install Swarm.js:

npm install openai-swarm-node

:memo: Check out the repo and contribute:
I’m actively looking for contributors to help improve and extend the framework! Feel free to check out the repo, raise issues, and submit PRs. Whether you’re a beginner or an expert, your contributions are welcome!

:point_right: GitHub Repo: GitHub - youseai/openai-swarm-node: Swarm.js is a Node.js implementation of OpenAI’s experimental Swarm framework. This SDK allows developers to orchestrate multi-agent systems using OpenAI’s API in a lightweight and ergonomic way, while leveraging Node.js for building scalable, real-world applications.

Let’s build something awesome together! :rocket:

openai #nodejs opensource ai #multiagent #npm javascript Plugins / Actions builders agents

5 Likes

just glanced at the code. just 100 lines right now total in the src folder ? so its basically not in a working state right now or jsut super lightweight ? Anyway good luck looking forward to it

3 Likes

There might be some bugs, but it is working. We will fix them ASAP. Also, the implementation by design is very lightweight.

2 Likes

Also see:

2 Likes

To avoid any confusion, the python code this repo is based on is NOT an official OpenAI product, nor will it be supported by OpenAI.

A tweet by Shyamal clarifying that "swarm" is not an official OpenAI product and is experimental code not meant for production. (Captioned by AI)

5 Likes