Sapphire Documentation

Schema once, types and adapters everywhere. These docs walk you from a first install through every concept and adapter Sapphire ships with.

Getting Started

  • Getting Started β€” install, your first schema, parse/safeParse, plugging in an adapter.

Concepts

Adapters

Recipes

Meta

  • Architecture β€” the 3-layer model (DSL β†’ IR β†’ adapter) with a Mermaid diagram.
  • Design decisions β€” why the API looks the way it does.
  • Contributing β€” repo setup and how to write a third-party adapter.