# Oudwins/zog

Go with Zod inspired simple schema validation

Repository: https://github.com/Oudwins/zog
Canonical: https://ross.abutalabs.com/products/zog
Homepage: https://zog.dev
Language: Go
License: MIT
License Family: permissive
Topics: error-handling, golang, runtime-validation, schema-validation, templ, translation, validation
Last push: 2026-08-21T03:36:04+00:00

## Health v2 (maintenance only)
Score: 84/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 98, release rhythm 81, longevity 57
- inputs: {"age_days": 801, "days_push": 12, "days_rel": 130, "gap_med": 7.0, "n_releases_24m": 45}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1212, forks 40 (observed 2026-08-28T04:04:00.231937+00:00)

## What it is
Zog is a Zod-inspired schema builder for runtime value parsing and validation in Go, using method chaining to define expressive schemas with built-in coercion and rich error context. It ships helper packages for parsing HTTP requests, JSON, environment variables, and i18n error messages.

## Use cases
- validate http request bodies and forms in go
- parse and validate json payloads against a schema
- parse environment variables with validation
- coerce and validate form query params into structs
- validate struct data at runtime with detailed error messages
- build zod-like schemas in golang

## When to choose
- you want a Zod-like, expressive schema API in Go
- you need fast validation with rich, contextual errors
- you want built-in coercion and zero dependencies
- you parse HTTP forms, JSON, or env vars into structs

## When to avoid
- you need a fully stable v1 API (still pre-1.0 with possible minor breaking changes)
- you only need simple struct tag validation and prefer goplayground/validator
- you don't want schema keys tied to Go struct field names

## Facets
- artifact type: library
- maturity: active
- function: parser, error-handling, serialization, form-handling, internationalization
- domain: developer-tools, backend, web-development, apis
- platform: go, cli
- tags: schema-validation, runtime-validation, zod-inspired, data-coercion, zero-dependencies, http-forms, env-parsing, json-parsing, web-server

## Member repositories
- Oudwins/zog (main) score 84

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:00.231937+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:17:58.605297+00:00, confidence not recorded.
  - readme: https://github.com/Oudwins/zog (fetched 2026-08-28T04:04:00.231937+00:00, sha d016cfdc4f0b)
  - homepage: https://zog.dev (fetched 2026-08-29T12:25:41.936504+00:00, sha 7b2dd1139b46)
  - site_page: https://zog.dev/getting-started (fetched 2026-08-29T12:25:41.945264+00:00, sha 5e756af4d2be)
  - site_page: https://zog.dev/faq (fetched 2026-08-29T12:25:41.947312+00:00, sha 50d07b59fd03)
- Data as of 2026-08-30T08:39:29.467469+00:00.
