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

@vibe-agent-toolkit/agent-schema

v0.1.14

Published

JSON Schema definitions and TypeScript types for VAT agent manifest format

Readme

@vibe-agent-toolkit/agent-schema

JSON Schema definitions and TypeScript types for VAT agent manifest format.

Installation

bun add @vibe-agent-toolkit/agent-schema

Usage

TypeScript (Zod Schemas)

import { AgentManifestSchema, type AgentManifest } from '@vibe-agent-toolkit/agent-schema';

// Validate agent.yaml data
const result = AgentManifestSchema.safeParse(data);

if (result.success) {
  const agent: AgentManifest = result.data;
  console.log('Valid agent:', agent.metadata.name);
} else {
  console.error('Validation errors:', result.error.issues);
}

JSON Schema (External Tools)

JSON Schema files are available in the schemas/ directory:

import agentManifestSchema from '@vibe-agent-toolkit/agent-schema/schemas/agent-manifest.json';

Available schemas:

  • agent-manifest.json - Complete agent manifest
  • agent-metadata.json - Agent metadata
  • llm-config.json - LLM configuration
  • agent-interface.json - Input/output interface
  • tool.json - Tool definitions
  • resource-registry.json - Resource registry
  • vat-package-metadata.json - VAT package.json metadata (distribution standard)

Exported Schemas

Core Schemas

  • AgentManifestSchema - Complete agent.yaml structure
  • AgentMetadataSchema - Agent metadata (name, version, etc.)
  • AgentSpecSchema - Agent specification (LLM, tools, resources)
  • VatPackageMetadataSchema - package.json vat field for distribution

Component Schemas

  • LLMConfigSchema - LLM configuration with alternatives
  • ToolSchema - Tool definitions
  • AgentInterfaceSchema - Input/output schemas
  • ResourceRegistrySchema - Resource registry
  • PromptsConfigSchema - Prompt configuration
  • CredentialsConfigSchema - Credentials requirements

Utility Schemas

  • SchemaRefSchema - JSON Schema $ref format
  • ToolAlternativeSchema - Tool alternatives
  • BuildMetadataSchema - Build metadata

TypeScript Types

All schemas export corresponding TypeScript types:

import type {
  AgentManifest,
  AgentMetadata,
  AgentSpec,
  LLMConfig,
  Tool,
  AgentInterface,
} from '@vibe-agent-toolkit/agent-schema';

Validation Examples

Validate agent.yaml

import { AgentManifestSchema } from '@vibe-agent-toolkit/agent-schema';
import { readFileSync } from 'node:fs';
import YAML from 'yaml';

// Load agent.yaml
const content = readFileSync('agent.yaml', 'utf-8');
const data = YAML.parse(content);

// Validate
const result = AgentManifestSchema.safeParse(data);

if (!result.success) {
  console.error('Validation failed:');
  result.error.issues.forEach(issue => {
    console.error(`- ${issue.path.join('.')}: ${issue.message}`);
  });
  process.exit(1);
}

console.log('✅ Valid agent manifest');

Validate package.json VAT metadata

import { VatPackageMetadataSchema } from '@vibe-agent-toolkit/agent-schema';
import { readFileSync } from 'node:fs';

// Load package.json
const packageJson = JSON.parse(readFileSync('package.json', 'utf-8'));

// Validate vat field
if (packageJson.vat) {
  const result = VatPackageMetadataSchema.safeParse(packageJson.vat);

  if (!result.success) {
    console.error('Invalid VAT metadata:');
    result.error.issues.forEach(issue => {
      console.error(`- ${issue.path.join('.')}: ${issue.message}`);
    });
    process.exit(1);
  }

  console.log('✅ Valid VAT metadata');
}

Schema Generation

JSON Schemas are automatically generated from Zod schemas during build:

bun run generate:schemas

This ensures TypeScript types and JSON Schemas stay in sync.

API Version

Current API version: vat.dev/v1

Future versions will be released as:

  • Breaking changes: vat.dev/v2
  • Non-breaking additions: Compatible within v1

License

MIT