📄️ What are fitness functions?
Architecture fitness functions are your architecture rules written as TypeScript, run against your catalog to show which resources break them.
📄️ Create a fitness function
Write a fitness function that requires every event to have an owner, run it, read the results and fix what it finds.
📄️ Global and resource functions
Put fitness functions at the root of your catalog for catalog-wide rules, or next to a domain, system, service or message so they're given that resource.
📄️ Run in CI
The eventcatalog fitness check command, its options, output and exit codes, the report it writes, and how to run it in GitHub Actions or GitLab CI.
📄️ API reference
defineFitnessFunction, the run context, the resource and catalog it is given, the violation format, and the schema of the results report.
📄️ Examples
Ready-to-use fitness functions for team ownership, shared databases, coupling, circular commands, deprecated messages and business-critical services.