Skip to content

Installation

  • Node.js 22 or newer
  • An ESM TypeScript project
  • Effect 4.0.0-beta.105
Terminal window
npm install @byfungsi/sapa effect@4.0.0-beta.105

Or with pnpm:

Terminal window
pnpm add @byfungsi/sapa effect@4.0.0-beta.105

SAPA pins its Effect peer dependency exactly. Install the matching version so service tags, Layers, Schemas, and Effect values share one runtime.

Create a small ESM module:

verify-sapa.ts
import { Offer } from "@byfungsi/sapa";
console.log(typeof Offer.parse);

Run it with your TypeScript execution setup or compile it with your project. Only import consumer APIs from @byfungsi/sapa; package-private @sapa/* modules are implementation boundaries and are not supported consumer imports.

Define your first checked offer in the quickstart.