frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Jsonchunk – Parse incomplete JSON from streaming LLM responses

https://github.com/jbingen/jsonchunk
1•jbingen•2h ago
GitHub: https://github.com/jbingen/jsonchunk

npm: https://www.npmjs.com/package/jsonchunk

If you're building on top of LLMs with structured output, you've hit this: the model streams JSON token by token, but JSON.parse throws on anything incomplete. So you either wait for the full response (bad UX) or write hacky string recovery logic to show partial results.

jsonchunk is a tiny tolerant recursive descent parser that extracts the best-effort object from whatever has arrived so far. It handles common mid-stream cases: strings cut mid-escape, objects with keys but no values yet, trailing commas, partial numbers, nested structures, etc.

``` parse('{"name": "Ali') // { name: "Ali" } parse('{"users": [{"id": 1}, {') // { users: [{ id: 1 }] } ```

It's typed as `DeepPartial<T>` so your editor knows any field might not be there yet. The API is dual-mode: a stateless `parse()` for one-shot use, and a push-based `createParser()` / `parseStream()` for piping streams.

Tested with a fuzz suite that splits every test fixture at every possible byte position and verifies the final parse is correct. Also threw Anthropic API responses at it with deeply nested objects, escape sequences, unicode, etc.

There are a few similar libraries, but most are untyped, SAX-style, or tied to larger frameworks. The goal here was a tiny dependency-free primitive designed specifically for modern Web Streams and TypeScript.

Would love feedback, especially from anyone who's dealt with this problem in production.

Time to Move On – The Reason Relationships End

https://steveblank.com/2026/02/24/time-to-move-on-the-reason-relationships-end/
1•MindGods•48s ago•0 comments

The Day Moltbook's Agents Started Doing SEO

https://growtika.com/blog/the-day-moltbooks-agents-started-doing-seo
1•Growtika•1m ago•0 comments

Be Careful with LLM "Agents"

https://maurycyz.com/misc/sandbox_llms/
1•speckx•1m ago•0 comments

Nobody Wants to Use Your Software (and That's the Point)

https://www.runproper.com/blog/nobody-wants-to-use-your-software
1•rsanaie•3m ago•0 comments

The Agent Times: OpenHands hits 68K stars in the agent economy

https://theagenttimes.com/articles/68107-stars-is-openhands-the-rocket-fuel-the-agent-economy-needs
1•Ross00781•4m ago•0 comments

Cardiorespiratory fitness is associated with lower anger and anxiety

https://linkinghub.elsevier.com/retrieve/pii/S000169182600171X
2•PaulHoule•4m ago•0 comments

Free Font: Times New Resistance

https://www.abbyhaddican.com/times-new-resistance
3•AlexandrB•4m ago•0 comments

EU: ECR rapporteur Wiśniewska is fighting to EXTEND scanning of private messages

https://digitalcourage.social/@echo_pbreyer/116119256928189485
1•nickslaughter02•4m ago•0 comments

Show HN: If Discord, Reddit, X, IRC and 4chan had a baby

1•ignasheahy•5m ago•0 comments

Replacing Anthropic's API with 2x 3090s. Claude Code on a local 80B Qwen model

https://twitter.com/sudoingX/status/2026297110141018122
1•ianlpaterson•5m ago•0 comments

Japan Pushes to Make Snowball Fighting an Olympic Event

https://www.chosun.com/english/sports-en/2026/02/24/H67UMP7OSNE7NOB6XR2JX4W7KY/
1•woldemariam•5m ago•0 comments

Show HN: Digital Janitor – A 1-click Python script to auto-sort messy downloads

https://github.com/Radhesh20/digital-janitor
1•radhesh20•6m ago•0 comments

Tell HN: GitHub Actions is falling over again

1•drcongo•7m ago•0 comments

Tethered – Runtime network egress control for Python

https://github.com/shcherbak-ai/tethered
1•sergiishcherbak•7m ago•1 comments

The New Panopticon: How AI Changes Accountability

https://florinandrei.substack.com/p/the-new-panopticon-how-ai-changes
1•Florin_Andrei•7m ago•1 comments

Racket 9.1 Is Available

https://blog.racket-lang.org/2026/02/racket-v9-1.html
2•owl_vision•7m ago•0 comments

Bulgarian Teacher with 38 International Medalist Students

https://www.youtube.com/watch?v=Zn0ZVxHGFC0
1•dzink•8m ago•0 comments

USRP X420 10MHz – 20 GHz SDR

https://www.ni.com/en-us/shop/model/ettus-usrp-x420.html
1•fadedsignal•8m ago•0 comments

Is AI Good for Democracy?

https://www.schneier.com/blog/archives/2026/02/is-ai-good-for-democracy.html
1•speckx•9m ago•0 comments

Show HN: Open-source LLM and dataset for sports forecasting (Pro Golf)

https://huggingface.co/LightningRodLabs/Golf-Forecaster
5•bturtel•9m ago•0 comments

PersonaLive Expressive Portrait Image Animation for Live Streaming

https://arxiv.org/abs/2512.11253
1•tamnd•9m ago•0 comments

People Are Worried About Blue Owl Liquidity

https://www.bloomberg.com/opinion/newsletters/2026-02-23/people-are-worried-about-blue-owl-liquidity
1•mooreds•9m ago•1 comments

The Epstein Files Should Never Have Been Released

https://www.nytimes.com/2026/02/23/opinion/epstein-files-justice-department.html
3•Anon84•11m ago•0 comments

Show HN: Ghist – Task management that lives in your repo

https://github.com/unnecessary-special-projects/ghist
2•nxnze•12m ago•0 comments

Elektrobit and Mobileye partner on safety Linux for L4 autonomy

https://www.just-auto.com/news/elektrobit-and-mobileye-collaborate-on-safety-linux-for-level-4-au...
1•losgehts•12m ago•0 comments

Show HN: Prompt2pwn – CTF Automated Solver

https://github.com/edelauna/prompt2pwn
1•bigEnotation•13m ago•0 comments

Ask HN: Is AI Alignment about to be solved, for profit?

1•mikewarot•14m ago•1 comments

Show HN: I built a tool to generate clean price tags for small retailers

https://pricetaggenerator.com
1•oliveroll•14m ago•0 comments

OpenClaw Partners with VirusTotal for Skill Security

https://openclaw.ai/blog/virustotal-partnership
1•cerihynes•16m ago•0 comments

JAE Releases DX07 Series Compression Mount Repairable USB-C Connector

https://www.jae.com/en/topics/detail/id=115694
1•Spunkie•16m ago•0 comments