TeamAPI latest
On this page
  1. Install
  2. Usage
  3. Exports
  4. Validation beyond field types
  5. The TeamAPI toolchain
  6. License

@jgalego/teamapi-schema

npm CI Node License: MIT

Zod schemas and inferred TypeScript types for the Team API as Code extended spec — roles, members, services, bounded contexts, interactions, dependencies, cognitive load assessments, and the root TeamApiDocument.

Install#

npm install @jgalego/teamapi-schema

Usage#

import { TeamApiDocumentSchema } from "@jgalego/teamapi-schema";

const doc = TeamApiDocumentSchema.parse(yourParsedYaml);

Exports#

Validation beyond field types#

Parsing also enforces several cross-field rules:

Full docs and the extended spec: https://github.com/JGalego/TeamAPI

The TeamAPI toolchain#

One org graph, seven doors into it — install only the ones you need:

Package What it does
@jgalego/teamapi The CLI — validate, diagram, check, import, reconcile, serve and chat with your org
@jgalego/teamapi-core The engine: $ref resolution, the org graph, scoring, checks, diagrams, generators
@jgalego/teamapi-schema (this package) Zod schemas and TypeScript types for the extended spec
@jgalego/teamapi-rest-api REST API, live dashboard, Swagger UI, Prometheus metrics
@jgalego/teamapi-mcp-server The org graph as MCP tools for LLM assistants
@jgalego/teamapi-chat Chat as a team or member — Anthropic or any OpenAI-compatible endpoint
@jgalego/teamapi-backstage Live Backstage catalog entity provider

Docs, examples and the extended spec: teamapi.dev · github.com/JGalego/TeamAPI

License#

MIT