LangDiff is a Python library that facilitates the streaming of structured outputs from large language models (LLMs) to frontends, offering intelligent partial parsing and automatic JSON Patch generation for efficient synchronization. It allows developers to define schemas for streaming data, track changes with type-safe callbacks, and maintain independent evolution of backend and frontend components. This enables the creation of responsive AI applications that can adapt without breaking existing user interfaces.