Svelte Hacker News logo
  • top
  • new
  • show
  • ask
  • jobs
  • about

Show HN: langdiff – Stream valid JSON from LLMs with type-safe callbacks

github.com

6 points by maitrouble 18 hours ago

Ever had json.loads() explode halfway through an LLM stream? langdiff fixes that with a schema + callback approach.

Define your schema → attach callbacks → push streaming tokens → get structured events immediately.

maitrouble 12 hours ago

demo: https://globalaiplatform.github.io/langdiff/