Hacker GitHub

← All repos

ar-nelson/spartan-schema

View on GitHub ↗ ★ 437 TypeScript

Ultra-minimal JSON schemas with Typescript inference

4 mentions on Hacker News by 2 people: 2 stories, 2 comments · first 2022-07-19 · latest 2025-05-19

Mentions per year 4 mentions · busiest year 2022 (3)
20082026
  1. …but much more minimal schema validation at runtime, with a JSON representation, try Spartan Schema: https://github.com/ar-nelson/spartan-schema
    comment by ar-nelson · 2025-05-19 · in Zod 4
  2. In the same vein, shameless plug for my own library, Spartan Schema: https://github.com/ar-nelson/spartan-schema It does the same thing as Zod, but is much smaller/simpler and its types always have a JSON representation.
  3. ▲ 103
    Ultra-minimal JSON schemas with TypeScript inference
    story by codewithcheese · 2022-07-28 · 44 comments
  4. ▲ 3
    Show HN: Spartan Schema - Ultra-minimal JSON schemas with Typescript inference
    story by ar-nelson · 2022-07-19 · 0 comments