Installation
Requirements
Section titled “Requirements”- Node.js 22 or newer
- An ESM TypeScript project
- Effect
4.0.0-beta.105
Install
Section titled “Install”npm install @byfungsi/sapa effect@4.0.0-beta.105Or with pnpm:
pnpm add @byfungsi/sapa effect@4.0.0-beta.105SAPA pins its Effect peer dependency exactly. Install the matching version so service tags, Layers, Schemas, and Effect values share one runtime.
Verify the package boundary
Section titled “Verify the package boundary”Create a small ESM module:
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.
Continue
Section titled “Continue”Define your first checked offer in the quickstart.