json-schema-cycles

JSON →
library 3.0.0 ·javascript
verified Jun 7, 2026

Analyze cyclic (recursive) dependencies in JSON Schema definitions. Version 3.0.0 is a pure ESM package requiring Node.js >=14.13.1 or >=16.0.0. Unlike alternatives, it offers both a full analysis (analyzeTypes) that returns detailed cycle information including entrypoints and a fast analysis (analyzeTypesFast) for large schemas where memory or performance is a concern. Only handles local definitions; external $ref must be resolved beforehand.