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

@gopluto_ai/llm-tools-orchestration

v1.0.4

Published

A scalable tools or functions orchestration SDK for LLM agents using OpenAI's /v1/responses API with memory, hooks, and tool planning support. Alternative of MCP for LLM tools orchestration.

Readme

🛠️ @gopluto_ai/llm-tools-orchestration

Scalable LLM tool orchestration SDK with memory hooks, parallel Multi function execution, and GPT-4o (or any model) planning — built for production AI agents. Alternative of MCP for AI or LLM Parallel multi tool calling which is easy to understand.


🚀 Features

  • ✅ Register tools with full JSON schema
  • 🧠 Pre/post tool memory lifecycle hooks
  • 🔍 Plans tools dynamically using OpenAI /v1/responses API (⚠️ not chat completion)
  • 🛠️ Parallel tool execution with context-rich synthesis
  • 🔄 ESM + CommonJS ready for Node.js and serverless
  • 🔌 Works with any GPT model (gpt-4o, gpt-4-turbo, etc.) — dynamic model control

📦 Installation

npm install @gopluto_ai/llm-tools-orchestration
Set in .env
OPENAI_API_KEY = xxxxxxxxxxxx

⚡ Quick Example

import {
  registerTool,
  planTools,
  executeParallelTools,
  synthesizeFinalReply,
  registerHookProcessor
} from "@gopluto_ai/llm-tools-orchestration";
import { getOpenAIResData } from "@gopluto_ai/llm-tools-orchestration/dist/openaiHelpers";

registerHookProcessor("logStart", async (memory) => {
  console.log("🧠 Memory:", memory);
  return memory;
});

registerTool({
  type: "function",
  name: "get_stock_price",
  description: "Returns dummy stock price",
  parameters: {
    type: "object",
    required: ["ticker", "currency"],
    properties: {
      ticker: { type: "string" },
      currency: { type: "string" }
    }
  },
  preHooks: ["logStart"],
  handler: async ({ ticker, currency }) => {
    return { ticker, currency, price: 999.99 };
  }
});

const messages = {
  sysprompt: "You are a stock price assistant.",
  userMessage: "What's the price of TSLA in USD?",
  conversationHistory: [],
  agentMemory: {},
  imageUrl:'',
  fileUrl:''
};

(async () => {
  const plan = await planTools(messages, getOpenAIResData, "gpt-4o");
  const results = await executeParallelTools(plan.neededTools, plan.args, { userId: "xyz" });
  const reply = await synthesizeFinalReply(messages.userMessage, results, messages, plan.tools, getOpenAIResData, "gpt-4o");

  console.log("🧠 Final AI Reply:", reply);
})();

📁 Structure

src/
├── index.ts                  # Entry point
├── toolOrchestrator.ts       # Tool registration + planning
├── openaiHelpers.ts          # Handles OpenAI /v1/responses payloads
examples/
└── index.js                  # CLI-ready use case

🔒 This SDK Uses OpenAI's /v1/responses Endpoint

Unlike typical chat/completions, this SDK uses the new /v1/responses API to support multi-modal inputs (text, file, image) and tool usage natively.

This gives you:

  • Context-rich messages (system + memory)
  • Native tool calling structure
  • Easy agent memory injection
  • Full control over function outputs

🤝 Contributing

  1. Clone this repo
  2. Run npm install && npm run build
  3. Edit tools in src/toolOrchestrator.ts
  4. Submit PRs!

Contact

 Email: [email protected]
 Contact: +91 9110035665
 Whatsapp: https://wa.me/919110035665

📝 License

MIT © GoPluto.ai