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 🙏

© 2025 – Pkg Stats / Ryan Hefner

beeai-framework

v0.1.10

Published

BeeAI Framework - LLM Agent Framework

Downloads

21,533

Readme

BeeAI Framework for TypeScript

License Bluesky Discord GitHub Repo stars

Build production-ready multi-agent systems in TypeScript. BeeAI framework is also available in Python.

Modules

The source directory (src) contains the available modules:

| Name | Description | | --------------------------------------------------- | ------------------------------------------------------------------------------------------- | | agents | Base classes defining the common interface for agent. | | backend | Functionalities that relates to AI models (chat, embedding, image, tool calling, ...) | | template | Prompt Templating system based on Mustache with various improvements. | | memory | Various types of memories to use with agent. | | tools | Tools that an agent can use. | | cache | Preset of different caching approaches that can be used together with tools. | | errors | Base framework error classes used by each module. | | logger | Core component for logging all actions within the framework. | | serializer | Core component for the ability to serialize/deserialize modules into the serialized format. | | version | Constants representing the framework (e.g., the latest version) | | emitter | Bringing visibility to the system by emitting events. |

External modules

Use these packages to extend the base BeeAI framework functionality:

| Name | Description | | -------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------- | | instrumentation | Integrate monitoring tools into your application. |

Installation

Install the framework using npm:

npm install beeai-framework

or yarn:

yarn add beeai-framework

Quick example

The following example demonstrates how to build a multi-agent workflow using the BeeAI Framework:

import "dotenv/config";
import { OpenMeteoTool } from "beeai-framework/tools/weather/openMeteo";
import { WikipediaTool } from "beeai-framework/tools/search/wikipedia";
import { AgentWorkflow } from "beeai-framework/workflows/agent";
import { OllamaChatModel } from "beeai-framework/adapters/ollama/backend/chat";

const workflow = new AgentWorkflow();

workflow.addAgent({
  name: "Researcher",
  role: "A diligent researcher",
  instructions: "You look up and provide information about a specific topic.",
  tools: [new WikipediaTool()],
  llm: new OllamaChatModel("llama3.1"),
});

workflow.addAgent({
  name: "WeatherForecaster",
  role: "A weather reporter",
  instructions: "You provide detailed weather reports.",
  tools: [new OpenMeteoTool()],
  llm: new OllamaChatModel("llama3.1"),
});

workflow.addAgent({
  name: "DataSynthesizer",
  role: "A meticulous and creative data synthesizer",
  instructions: "You can combine disparate information into a final coherent summary.",
  llm: new OllamaChatModel("llama3.1"),
});

const location = "Saint-Tropez";
await workflow
  .run([
    {
      prompt: `Provide a short history of ${location}.`,
    },
    {
      prompt: `Provide a comprehensive weather summary for ${location} today.`,
      expectedOutput:
        "Essential weather details such as chance of rain, temperature and wind. Only report information that is available.",
    },
    {
      prompt: `Summarize the historical and weather data for ${location}.`,
      expectedOutput: `A paragraph that describes the history of ${location}, followed by the current weather conditions.`,
    },
  ])
  .observe((emitter) => {
    emitter.on("success", (data) => {
      console.log(
        `-> ${data.step} has been completed with the following outcome\n`,
        data?.state.finalAnswer ?? "-",
      );
    });
  });

Running the example

[!Note]

To run this example, be sure that you have installed groq and the appropriate .env files set up.

To run projects, use:

yarn start [project_name].ts

Using npm:

npm run start [project_name].ts

➡️ Explore more in our examples library.

Contribution guidelines

The BeeAI Framework is an open-source project and we ❤️ contributions.

If you'd like to help build BeeAI, take a look at our contribution guidelines.

Bugs

We are using GitHub Issues to manage public bugs. We keep a close eye on this, so before filing a new issue, please check to make sure it hasn't already been logged.

Code of conduct

This project and everyone participating in it are governed by the Code of Conduct. By participating, you are expected to uphold this code. Please read the full text so that you can read which actions may or may not be tolerated.

Legal notice

All content in these repositories including code has been provided by IBM under the associated open source software license and IBM is under no obligation to provide enhancements, updates, or support. IBM developers produced this code as an open source project (not as an IBM product), and IBM makes no assertions as to the level of quality nor security, and will not be maintaining this code going forward.

Contributors

Special thanks to our contributors for helping us improve the BeeAI Framework.