Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Show HN: JSON-Healer: Repair and Validate Broken JSON from LLM Outputs
1 point by freakynit 67 days ago | hide | past | favorite
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!



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: