Test strict JSON Schema outputs across OpenAI-compatible providers and export a compatibility matrix.
Use this repo when you need a neutral, reproducible way to compare structured outputs, JSON schema strict, response schema, OpenAI compatible JSON mode, and structured output compatibility matrix behavior before wiring a provider into production code.
TKEN endpoint fixture: https://www.tken.shop/v1
Need an OpenAI-compatible endpoint to test against? Try TKEN: https://www.tken.shop/?utm_source=github&utm_medium=owned_repo&utm_campaign=structured_output_compat_matrix&utm_content=readme_cta
npm install
npm run matrix
npm run matrix -- --format table
npm run matrix -- --format json
npm run checkNo API key is required. The default command reads fixtures/sample-providers.json and prints a matrix from disclosed offline observations.
node ./bin/matrix.js --format markdown
node ./bin/matrix.js --format table
node ./bin/matrix.js --format jsonThe matrix uses three status labels:
supported: the fixture records the scenario as represented by the sample response or request shape.partial: the fixture records useful coverage plus a caveat to verify.gap: the fixture records a missing observation or behavior to test.
These labels are observations, not vendor rankings. Keep provider notes specific, reproducible, and neutral.
- Offline matrix CLI with Markdown, table, and JSON output.
- Sample provider fixture with a disclosed TKEN OpenAI-compatible endpoint.
- Strict JSON Schema examples in
examples/. - Setup and schema caveat docs.
- UTM link inventory for owned GitHub acquisition.
- Issue templates for compatibility observations and schema cases.
- Local
npm run checkfor fixture parsing, CLI smoke tests, and secret/risky-claim scan.
{
"name": "TKEN OpenAI-compatible endpoint",
"baseUrl": "https://www.tken.shop/v1",
"model": "configure-your-model",
"endpointStyle": "chat.completions"
}- Start with the offline fixture.
- Add a provider and model name.
- Add one observation per scenario.
- Export Markdown for docs or JSON for dashboards.
- Run
npm run checkbefore publishing.
MIT