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

@nebutra/agents

v1.1.1

Published

Nebutra AI runtime: multi-agent orchestration + Vercel AI SDK helpers (absorbed @nebutra/ai-sdk in 1.0.0)

Downloads

416

Readme

@nebutra/agents — Nebutra AI Runtime

Status: Production-ready — The single AI runtime package for Nebutra. As of v1.0.0 it consolidates the former @nebutra/ai-sdk (top-level generateText / streamText / embed helpers) with the multi-agent orchestration framework (BaseAgent, AgentOrchestrator, memory, tools).

What lives here

@nebutra/agents
  ├── Top-level Vercel AI SDK helpers (absorbed from @nebutra/ai-sdk)
  │     configure(), generateText(), streamText(), embed(), embedMany()
  │     createModel(), createEmbeddingModel(), models, resolveModel()
  │
  ├── Multi-agent framework
  │     BaseAgent              ← Abstract agent with tenant context + usage tracking
  │     AgentOrchestrator      ← chat/pipeline/broadcast coordination
  │     AgentRouter            ← route messages to the best agent
  │     Memory                 ← Redis-backed per-tenant conversation persistence
  │     Tools                  ← BUILT_IN_TOOLS (web_search, db_query, knowledge_base)
  │
  └── Provider adapters
        providers/vercel-ai.ts ← VercelAIAgent (production, streamText + toolLoop)
        providers/langchain.ts ← Optional LangChain stub (throws until you wire it up)

Companion package

| Package | Role | |---------|------| | @nebutra/agents | Runtime — all AI calls go through here | | @nebutra/ai-providers | Meta-only — provider registry data + scaffolding templates consumed by @nebutra/create-sailor |

The former @nebutra/ai-sdk was absorbed into this package in v1.0.0. The former @nebutra/langchain stub was deleted (no callers); the LangChain integration hook lives here in providers/langchain.ts as an extension point.

Quick start — single-shot generation

import { configure, streamText } from "@nebutra/agents";

configure({ provider: "openrouter", defaultModel: "anthropic/claude-sonnet-4" });

const result = await streamText(
  [{ role: "user", content: "Explain monorepos" }],
  { model: "fast" },
);
return result.toUIMessageStreamResponse();

Quick start — multi-agent orchestration

import { AgentOrchestrator, createAgentContext } from "@nebutra/agents";
import { VercelAIAgent } from "@nebutra/agents/providers/vercel-ai";

const orchestrator = new AgentOrchestrator({
  agents: [
    { id: "assistant", name: "Assistant", description: "Helpful", model: "openai/gpt-4", instructions: "..." },
  ],
});

// Swap the BaseAgent for a real VercelAIAgent at runtime:
orchestrator.registerAgent(
  new VercelAIAgent({ id: "assistant", name: "Assistant", description: "Helpful", model: "openai/gpt-4", instructions: "..." }),
);

const ctx = createAgentContext("org_123", "user_456");
const response = await orchestrator.chat("Hello", ctx);
// → response.usage tracks tokens for billing

Multi-tenant by design

Every agent operation requires a tenantId. Usage events are emitted for billing and metering integration (see @nebutra/billing/credits).