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

chora

v0.1.2

Published

Chat Orchestration Architecture - an open-source library for orchestrating chat flows/bots

Readme

Chora is a flexible architecture for orchestrating chat flows or task execution. It allows you to configure: • Experts — Individual handlers with domain-specific logic. • Expertises — Collections of experts, along with readiness checks or constraints. • Supervisor — A decision-maker that chooses which expertise should handle a given user input. • Orchestrator — The main interface that processes user input, coordinating experts, expertises, and the supervisor.

Features • Modular: You can swap out or add experts, expertises, or supervisors without changing the core orchestrator. • TypeScript Support: Written in TypeScript for type-safe development. • Extensible: Add custom logic for choosing experts, validating input, etc.

Installation

npm install chora or yarn add chora

(Adjust package name if you publish under a different name.)

Basic Usage

Below is a minimal example showing how to set up Chora with one or more experts, an expertise, and a supervisor.

import { Chora, SimpleExpert, SimpleExpertise, SimpleSupervisor } from 'chora'

// 1) Define your experts const mathExpert = new SimpleExpert('MathGuru') const chatExpert = new SimpleExpert('ChatWizard')

// 2) Group experts into expertises // Each expertise can check if it's "ready" to handle the input. const mathExpertise = new SimpleExpertise('MathDomain', [mathExpert]) const chatExpertise = new SimpleExpertise('ChatDomain', [chatExpert])

// 3) Create a supervisor that picks which expertise to use // based on the user input (e.g., first domain that says "I'm ready") const supervisor = new SimpleSupervisor('MainSupervisor')

// 4) Pass these into Chora const chora = new Chora({ expertises: [mathExpertise, chatExpertise], supervisor })

// 5) Process user input const result = chora.processUserInput('Hello, please help me with 2+2') console.log(result) // => [Expert MathGuru] handling: "Hello, please help me with 2+2"

Without a Supervisor

If you’d rather not use a supervisor, you can omit expertises and only provide a direct list of experts. In that case, Chora will pick from the experts array.

import { Chora, SimpleExpert } from 'chora'

const chatExpert = new SimpleExpert('ChatWizard') const mathExpert = new SimpleExpert('MathGuru')

const choraNoSupervisor = new Chora({ experts: [chatExpert, mathExpert] // No supervisor & no expertises })

console.log(choraNoSupervisor.processUserInput('I need chat assistance.')) // => [Expert ChatWizard] handling: "I need chat assistance."

Project Structure

A typical project using Chora might look like this:

my-app/ ├─ src/ │ └─ ... ├─ package.json ├─ tsconfig.json └─ ...

Scripts

All contributions are welcome!

License

MIT

Enjoy orchestrating your chat and task flows with Chora! If you have questions or suggestions, feel free to open an issue or PR.