frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Incrementally parsing LLM Markdown streams on server/client

https://github.com/nimeshnayaju/markdown-parser
1•nayajunimesh•3h ago

Comments

nayajunimesh•3h ago
Most AI chat applications (such as ChatGPT or Claude) stream their responses to the client as markdown text. As each new chunk of text arrives, the front end typically re-parses the entire markdown document to render the updated message. This works, but it can quickly slow down the UI for long responses.

I’ve been obsessing over ways to make this more efficient, so I wrote a markdown parser that can parse streaming markdown (semi) incrementally. Instead of re-processing the whole document each time, it only parses what’s new, processing each line only once. Block‑level nodes are buffered until they’re complete (for example, once a paragraph is done and won’t be extended by more text).

The API is intentionally simple, but there’s an experimental mode that surfaces all finalized nodes (both top‑level and nested), so you can take more control over how and when you render.

Here’s a demo if you’d like to see it in action:

https://markdownparser.vercel.app/

I’ve spent a lot of time thinking about this problem, so if you’re working on similar issues, I'd love to chat.

Show HN: DiggaByte Labs – pick your stack, download production-ready SaaS code

https://diggabyte.com/
1•GraysoftDev•20s ago•0 comments

Love, Premonition and a Robot Partner

https://twitter.com/expatlitj/status/2029554217958916277
1•shikano•38s ago•0 comments

The State of Consumer AI

https://apoorv03.com/p/the-state-of-consumer-ai-part-1-usage
1•gmays•2m ago•0 comments

Show HN: I accidentally caught an AI agent trying to poison my prod config

https://github.com/liuhaotian2024-prog/k9-solo-hook
1•zippolyon•4m ago•0 comments

AI and the Illegal War

https://buttondown.com/creativegood/archive/ai-and-the-illegal-war/
2•interpol_p•5m ago•0 comments

An ugly year for the Louvre: where does the biggest museum go from here?

https://www.theguardian.com/world/ng-interactive/2026/mar/01/an-ugly-year-for-the-louvre-where-do...
1•PaulHoule•5m ago•0 comments

Show HN: Citepo-CLI, a lightweight CLI for creating blogs, build for AI agent

https://github.com/LinklyAI/citepo-cli
1•blueeon•5m ago•0 comments

Big Sleep Tracker: Google Project Zero + Google DeepMind find security bugs

https://issuetracker.google.com/savedsearches/7155917
1•guessmyname•8m ago•0 comments

Suggestion Regarding References to the Prophet Muhammad (Peace Be Upon Him)

1•naseerwafa•9m ago•0 comments

Show HN: Career AutoPilot – AI guidance for navigating your career

https://www.careerautopilot.ai
2•bvikasgupta•9m ago•0 comments

Can a wealthy family change the course of a deadly brain disease?

https://www.science.org/content/article/can-wealthy-family-change-course-deadly-brain-disease
1•Snoozus•13m ago•0 comments

Show HN: Contd makes interactive CLIs usable for agents in an async way

https://github.com/werifu/contd
1•wefchen•13m ago•0 comments

Hitting the High Notes (2005)

https://www.joelonsoftware.com/2005/07/25/hitting-the-high-notes/
1•benatkin•19m ago•0 comments

Show HN: What zero-intervention E2E test generation looks like

https://www.youtube.com/watch?v=G6mtaC15ocw
1•nadeem1•19m ago•0 comments

Neolab and Emerging AI Lab Tracker

https://cleverhack.com/neolab-and-emerging-ai-lab-tracker
1•jxmorris12•22m ago•0 comments

"Clinejection" Turned an AI Bot into a Supply Chain Attack

https://snyk.io/blog/cline-supply-chain-attack-prompt-injection-github-actions/
1•vismit2000•24m ago•0 comments

Show HN: Managed S3 exports for billing data (no AWS setup required)

https://flexprice.io/
3•manishfp•27m ago•0 comments

Coruna: The Mysterious Journey of a Powerful iOS Exploit Kit

https://cloud.google.com/blog/topics/threat-intelligence/coruna-powerful-ios-exploit-kit
1•mitchbob•30m ago•0 comments

Vibe Security Radar – Tracking the security cost of vibe coding

https://vibe-radar-ten.vercel.app
1•guessmyname•33m ago•0 comments

Spark Runner: Easily Automate Front End Tests

https://github.com/simonarthur/spark-runner/
1•chromaton•36m ago•1 comments

I built this privacy-focused analytics tool

1•webanalyzerapp•37m ago•0 comments

"Game Development in Eight Bits" by Kevin Zurawel (2021) [video]

https://www.youtube.com/watch?v=TPbroUDHG0s
1•vinhnx•38m ago•0 comments

open_slate: A Powerful and Private 2-in-1 Tablet

https://www.indiegogo.com/en/projects/braxtechnologies/open_slate
1•owenpalmer•40m ago•0 comments

Converting Binary Floating-Point Numbers to Shortest Decimal Strings

https://onlinelibrary.wiley.com/doi/10.1002/spe.70056
1•matt_d•42m ago•0 comments

The era of Doctor AI is here

https://www.axios.com/2026/03/06/ai-doctor-health-information-consumers
2•0in•43m ago•0 comments

Show HN: Context-compact – Summarize agent context instead of truncating it

https://github.com/HalfEmptyDrum/Context-Compactor
6•EmptyDrum•43m ago•2 comments

Coding Agents in Feb 2026

https://calv.info/agents-feb-2026
1•vinhnx•52m ago•0 comments

Calif. lawsuit accuses Meta of sending nude video from AI glasses to workers

https://www.sfgate.com/tech/article/meta-ai-glasses-lawsuit-21960004.php
3•bryan0•52m ago•0 comments

Anthropic and The Pentagon

https://www.schneier.com/blog/archives/2026/03/anthropic-and-the-pentagon.html
1•herbertl•52m ago•0 comments

Show HN: Crypto data API where AI agents pay per request with USDC (x402)

https://crypto-enrich.up.railway.app
1•psamala•57m ago•0 comments