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

@prime-vector/open-agent-spec

v1.6.0

Published

Run Open Agent Spec YAML files from Node.js — no Python required.

Downloads

88

Readme

open-agent-spec

Native Node.js runner for Open Agent Spec — no Python required.

Run agent specs from YAML, pull shared specialist specs from the registry, and chain tasks together, all from a single oa run command.

Install

npm install -g @prime-vector/open-agent-spec

Or run without installing:

npx @prime-vector/open-agent-spec run --spec agent.yaml --task summarise --input input.json

Quick start

1. Write a spec

# agent.yaml
open_agent_spec: "1.5.0"

agent:
  name: my-agent
  description: Summarise text using a registry spec
  role: analyst

intelligence:
  type: llm
  engine: openai
  model: gpt-4o-mini

tasks:
  summarise:
    description: Delegate to the shared summariser
    spec: oa://prime-vector/summariser
    task: summarise

2. Run it

export OPENAI_API_KEY=sk-...

oa run --spec agent.yaml --task summarise --input '{"text": "Open Agent Spec is a YAML standard for declarative AI agents."}'

3. Output

{
  "task": "summarise",
  "output": {
    "summary": "Open Agent Spec is a YAML standard for declarative AI agents.",
    "key_points": ["Declarative YAML format", "Engine-agnostic", "CLI-driven"]
  },
  "delegated_to": "https://openagentspec.dev/registry/prime-vector/summariser/latest/spec.yaml#summarise"
}

Input formats

| --input value | Behaviour | |---|---| | '{"key":"val"}' | Inline JSON object | | input.json | Parsed as a JSON object | | change.diff | File contents → { text: "<contents>" } |

Providers

Set the relevant environment variable for your engine:

| Engine | Env var | |---|---| | openai | OPENAI_API_KEY | | anthropic | ANTHROPIC_API_KEY | | grok / x-ai | XAI_API_KEY |

Registry

Pull any spec from the OA registry using the oa:// shorthand:

spec: oa://prime-vector/summariser          # latest
spec: oa://prime-vector/[email protected]    # pinned
spec: https://example.com/my-spec.yaml      # third-party URL

Browse the registry at openagentspec.dev/registry.

Library usage

import { runTask } from "open-agent-spec";

const result = await runTask({
  specPath: "./agents/summariser.yaml",
  taskName: "summarise",
  input: { text: "..." },
});

console.log(result.output);

Requirements

  • Node.js 18+
  • No Python, no OpenAI SDK, no Anthropic SDK

License

MIT