deepankarm/godantic
Validation, JSON & OpenAPI Schema for Go with Union support. Inspired by Pydantic & FastAPI.
This tool helps Go developers define and validate the structure of JSON data for their applications, especially when working with AI models or web APIs. Developers define the expected data format once using Go structs and methods. It then generates JSON schemas, validates incoming data, and can even parse incomplete JSON as it streams in, ensuring their applications only process valid data and provide real-time updates.
Use this if you are a Go developer building applications that need to rigorously validate JSON inputs or outputs, particularly when interacting with Large Language Models (LLMs) or generating OpenAPI documentation.
Not ideal if you are not a Go developer or if your project doesn't heavily involve JSON data validation, schema generation, or streaming LLM responses.
Stars
25
Forks
—
Language
Go
License
Apache-2.0
Category
Last pushed
Mar 11, 2026
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/llm-tools/deepankarm/godantic"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Higher-rated alternatives
mangiucugna/json_repair
A python module to repair invalid JSON from LLMs
antfu/shiki-stream
Streaming highlighting with Shiki. Useful for highlighting text streams like LLM outputs.
yokingma/fetch-sse
An easy API for making Event Source requests, with all the features of fetch(), Supports...
iw4p/partialjson
+1M Downloads! Repair invalid LLM JSON, commonly used to parse the output of LLMs — Parsing...
kaptinlin/jsonrepair
A high-performance Golang library for easily repairing invalid JSON documents. Designed to fix...