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

@agentproto/agencies

v0.1.0-alpha.0

Published

agentagencies/v1 — open file-format standard for entities that exercise agency. Operating layer over agentcompanies/v1 and agentgovernance/v1: services, counterparties, engagements, agreements, deliverables, invoices, vendor-neutral procedures, full-fidel

Readme

@agentproto/agencies

agentagencies/v1 — the operating-layer open standard for entities that exercise agency, published at agencies.sh.

⚠️ Alpha. Spec stabilizing. APIs may change pre-1.0.

What this is

A vendor-neutral, filesystem-first standard for the operating layer of a service business or any agentic system that acts on behalf of clients. Captures the vocabulary of agency:

| Doctype | File | Purpose | | ------------------ | ------------------------------------------------------------- | ------------------------------------------------------------ | | AGENCY.md | <workspace-root>/AGENCY.md (alongside COMPANY.md, optional) | Operational profile of the company when it acts as an agency | | OPERATIONS.md | <external-pkg>/OPERATIONS.md | Root file for external operations packages | | SERVICE.md | services/<slug>/SERVICE.md | Catalog item — what the agency sells | | PROCEDURE.md | procedures/<slug>/PROCEDURE.md | Vendor-neutral playbook (steps, skills, autonomy) | | PRICING-MODEL.md | pricing-models/<slug>/PRICING-MODEL.md | Pricing rule (fixed/hourly/retainer/milestone/value/metered) | | COUNTERPARTY.md | counterparties/<slug>/COUNTERPARTY.md | External party (client) | | ENGAGEMENT.md | engagements/<slug>/ENGAGEMENT.md | Commercial instance of a service for a counterparty | | AGREEMENT.md | engagements/<slug>/AGREEMENT.md | Contract (uses governance.signature for signing) | | DELIVERABLE.md | engagements/<slug>/deliverables/<slug>/DELIVERABLE.md | Submitted work product | | INVOICE.md | engagements/<slug>/invoices/<inv-no>/INVOICE.md | Invoice | | ROUTINE.md | routines/<slug>/ROUTINE.md | Schedule (cron) referencing a PROCEDURE.md | | CAPACITY.md | capacity/<slug>/CAPACITY.md | Operator availability + load |

The full spec is in AGENTAGENCIES.md.

Inheritance

agentagencies/v1 extends two specs:

  • agentcompanies/v1 — org structure (COMPANY/TEAM/AGENTS/PROJECT/TASK/SKILL inherited verbatim)
  • agentgovernance/v1 — audit + signing (signature.json / audit-log.jsonl / POLICY.md used as-is)

A workspace using agentagencies/v1 MUST validate as a valid agentcompanies/v1 package AND as a valid agentgovernance/v1 package wherever signatures/audit/policy doctypes appear.

"Agency" is a deliberate double-meaning

  • Business: service businesses, agencies, consultancies, freelancers — anyone who operates for clients.
  • Philosophical / AI: the capacity of a system to act with intention, autonomy, decision-making.

Both readings converge on entities that act. The doctypes encode the vocabulary in either reading.

Install

npm install @agentproto/agencies

Subpath exports

import {
  agencySchema,
  engagementSchema,
  agreementSchema /* ... */,
} from "@agentproto/agencies/doctypes"
import {
  validateAgreement,
  validateEngagement /* ... */,
} from "@agentproto/agencies/validators"
import { resolveOperationsRef } from "@agentproto/agencies/composition"
import {} from /* canvakit template ids */ "@agentproto/agencies/renderers"
import {} from /* engagement orchestrator, etc. */ "@agentproto/agencies/runtime"

Vendor neutrality

This package depends on zod, gray-matter, yaml, @agentproto/governance (peer spec), and Node's built-in crypto/fs/path. Zero imports from Mastra, LangChain, Temporal, or any orchestration runtime. Adapters live in separate packages:

  • @agentproto/agencies-mastra — Mastra adapter (codegen PROCEDURE.md → workflow.ts, suspend/resume hooks)
  • (future) @agencies/langchain, @agencies/temporal, etc.

License

MIT