back
▲ 1 points

Show HN: JSON-Healer: Repair and Validate Broken JSON from LLM Outputs

by freakynit·7mo ago·0 comments·view on hn ↗
Built json-healer, a small npm package that repairs malformed or partial JSON produced by LLMs.

Inspired by OpenRouter’s recently launched response healer (https://openrouter.ai/docs/guides/features/plugins/response-...), this implementation is model-agnostic and works with JSON from any LLM or text source, not just OpenRouter.

Includes comprehensive test cases and is designed to be easy to drop into existing pipelines that rely on structured LLM output.

https://www.npmjs.com/package/@freakynit/json-healer

Feedback welcome!

// no comments yet