Skip to content

SAPA documentation

Exact-money checkout, subscriptions, access, metering, seats, credits, downloads, licensing, and fulfillment—composed with Effect.

Guide

Install @byfungsi/sapa, define a validated offer, and choose the next capability for your integration.

Docs

Learn SAPA’s domain language, immutable definition model, runtime boundary, and typed failure conventions.

API reference

Browse reference pages generated from the public exports of @byfungsi/sapa.

SAPA parses untrusted input into branded values, keeps monetary amounts in exact minor units, and represents expected failures in Effect error channels. The framework does not silently select a database, payment provider, mail transport, or deployment runtime for your application.

Version 0.1.x is pre-1.0. Public APIs are usable, but may change between minor versions while SAPA is hardened with external adopters.