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

@gal-run/gal-agents

v0.1.0

Published

Canonical GAL-compatible agent contract schemas (Agent Card, capability, task, health, status) and validation helpers

Downloads

33

Readme

GAL Agents

Canonical contract definitions for GAL-compatible agents.

This package defines what an agent is: the Agent Card, capabilities, delegated task contracts, identity, scopes, artifacts, health/status responses, and the validation helpers that go with them. It intentionally does not define how agents are discovered, routed, governed, queued, credentialed, or executed.

GAL Naming Boundary

In this repo, GAL means the broader GAL ecosystem, brand, and compatibility layer. A GAL-compatible agent can be a governance/legal agent, an infrastructure service agent, an operations agent, or a future workforce/role agent. This package defines the common shape they all share.

Install

npm install @gal-run/gal-agents

Usage

import {
  GAL_AGENT_CARD_SCHEMA_VERSION,
  validateGalAgentCard,
  isGalAgentTaskState,
  type GalAgentCard,
} from '@gal-run/gal-agents'

const card: GalAgentCard = {
  schemaVersion: GAL_AGENT_CARD_SCHEMA_VERSION,
  // ...agent definition
}

validateGalAgentCard(card)

What this package exports

  • Schema versionsgal.agent-card.v1, gal.agent-task.v1, gal.agent-health.v1, gal.agent-status.v1.
  • Type definitionsGalAgentCard, GalAgentCapability, GalAgentTask, GalAgentHealthResponse, GalAgentStatusResponse, and the supporting identity, auth, artifact, governance, and SLO types.
  • State machines — task, health, and component state constants plus the isGalAgent*State runtime guards.
  • ValidationvalidateGalAgentCard enforces the canonical Agent Card invariants.
  • Governed swarm role cardsGAL_SWARM_WORKER_AGENT_CARD, GAL_SWARM_VERIFIER_AGENT_CARD, and GAL_SWARM_RECONCILER_AGENT_CARD (see docs/swarm-roles.md).

Boundary

@gal-run/gal-agents owns agent definitions only.

If this package owned runtime execution, routing, credentials, or deployment, it would force every agent into one operational model. Keeping it definition-only lets the same agent contract work across many execution paths — HTTP/A2A endpoints, CLI commands, queue workers, background sessions, jobs, MCP-backed services, and product-specific adapters.

An Agent Card may describe endpoints and supported runtimes, but this package does not deploy or operate them.

Development

npm install
npm run build      # tsc -> dist/
npm test           # vitest run
npm run type-check # tsc --noEmit

License

Apache-2.0