16:26
2026-09-18
dev.to
ai-tools
JSON.parse throws on every token your LLM streams. Here's a 425-byte fix.
A developer built SoFar, a 425-byte gzipped, zero-dependency JavaScript library that parses partial JSON as an LLM streams tokens, returning the best complete value available instead of throwing. The …