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

**URL:** <https://community.openai.com/t/introducing-swarm-js-node-js-implementation-of-openai-swarm/977510>\
**Category:** Community\
**Tags:** agents, javascript, ai-agents, swarm\
**Created:** [October 13, 2024, 2:17pm UTC](https://community.openai.com/t/introducing-swarm-js-node-js-implementation-of-openai-swarm/977510 "2024-10-13T14:17:39Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![youseai.startup](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/youseai.startup/32/403933_2.png) [@youseai.startup](https://community.openai.com/u/youseai.startup)\
**Post date:** [October 13, 2024, 2:17pm UTC](https://community.openai.com/t/introducing-swarm-js-node-js-implementation-of-openai-swarm/977510/1 "2024-10-13T14:17:39Z")

</div>

Hey everyone! 👋

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!

🔧 **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

### 📦 **Install Swarm.js:**

```bash
npm install openai-swarm-node

```

📝 **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!

👉 **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.](https://github.com/youseai/openai-swarm-node)

Let’s build something awesome together! 🚀

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

---

<div class="post-metadata">

**Author:** ![Medy](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/medy/32/170329_2.png) [@Medy](https://community.openai.com/u/Medy)\
**Post date:** [October 13, 2024, 3:04pm UTC](https://community.openai.com/t/introducing-swarm-js-node-js-implementation-of-openai-swarm/977510/2 "2024-10-13T15:04:11Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![youseai.startup](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/youseai.startup/32/403933_2.png) [@youseai.startup](https://community.openai.com/u/youseai.startup)\
**Post date:** [October 13, 2024, 5:28pm UTC](https://community.openai.com/t/introducing-swarm-js-node-js-implementation-of-openai-swarm/977510/3 "2024-10-13T17:28:23Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![EricGT](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/ericgt/32/20571_2.png) [@EricGT](https://community.openai.com/u/EricGT)\
**Post date:** [October 13, 2024, 8:48pm UTC](https://community.openai.com/t/introducing-swarm-js-node-js-implementation-of-openai-swarm/977510/5 "2024-10-13T20:48:03Z")

</div>

Also see:

> **[GitHub - openai/swarm: Educational framework exploring ergonomic,...](https://github.com/openai/swarm)**
>
> Educational framework exploring ergonomic, lightweight multi-agent orchestration. Managed by OpenAI Solution team.

---

<div class="post-metadata">

**Author:** ![Foxalabs](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/foxalabs/32/738355_2.png) [@Foxalabs](https://community.openai.com/u/Foxalabs)\
**Post date:** [October 13, 2024, 10:37pm UTC](https://community.openai.com/t/introducing-swarm-js-node-js-implementation-of-openai-swarm/977510/6 "2024-10-13T22:37:49Z")

</div>

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)](https://us1.discourse-cdn.com/openai1/original/4X/5/c/c/5cc538d12a643567d45c8f67394e1e81ceff5a2e.png)

---

<div class="post-metadata">

**Author:** ![Foxalabs](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/foxalabs/32/738355_2.png) [@Foxalabs](https://community.openai.com/u/Foxalabs)\
**Post date:** [October 13, 2024, 10:53pm UTC](https://community.openai.com/t/introducing-swarm-js-node-js-implementation-of-openai-swarm/977510/7 "2024-10-13T22:53:36Z")

</div>

Unpinned on October 13, 2024, 10:53pm UTC



---

<div class="post-metadata">

**Author:** ![meiyoufei233](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/meiyoufei233/32/554309_2.png) [@meiyoufei233](https://community.openai.com/u/meiyoufei233)\
**Post date:** [February 19, 2025, 2:15am UTC](https://community.openai.com/t/introducing-swarm-js-node-js-implementation-of-openai-swarm/977510/9 "2025-02-19T02:15:18Z")

</div>

can’t use?

```auto
const agentA = new Agent({
               ^

TypeError: Agent is not a constructor

```
