Overview
The Refrain SDK provides programmatic access to runbook execution from your TypeScript/JavaScript applications. It never readsprocess.env — all configuration is passed explicitly.
Install
Quick start
Key exports
| Export | Type | Description |
|---|---|---|
Refrain | class | Main client for local execution |
loadRunbook | function | Load and parse a runbook YAML file |
Design principles
- Zero
process.env— All configuration passed explicitly via constructor and method arguments - Non-interactive — No user prompts; unresolved required variables throw errors
- Plan-aware — Features silently disabled if not available in your plan tier
- Comprehensive diagnostics — Step results include retry counts, resolve methods, and failure categories