Show HN: langdiff – Stream valid JSON from LLMs with type-safe callbacks
github.comEver 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.
demo: https://globalaiplatform.github.io/langdiff/