Documentation Index
Fetch the complete documentation index at: https://docs.therefrain.ai/llms.txt
Use this file to discover all available pages before exploring further.
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
Next steps
Local Execution
Refrain class, configuration, and execution options.
Type Reference
All exported types organized by category.
Examples
Practical examples for common use cases.