Core workflow engine for SideButton - YAML-based browser and shell automation
npm install @sidebutton/coreCore workflow engine for SideButton - YAML-based browser and shell automation.


``bash`
npm install @sidebutton/core
This package provides the core workflow engine used by SideButton:
- Workflow Types - TypeScript definitions for workflows, steps, and execution context
- YAML Parser - Load and validate workflow definitions from YAML files
- Step Executors - Execute 20+ step types (browser, shell, LLM, control flow)
- Variable Interpolation - {{variable}} syntax for dynamic values
`typescript
import { parseWorkflow, executeWorkflow } from '@sidebutton/core';
// Parse a workflow from YAML
const workflow = parseWorkflow(
id: hello_world
title: Hello World
steps:
- type: shell.run
cmd: echo "Hello from SideButton!");
// Execute the workflow
const result = await executeWorkflow(workflow, context);
`
| Category | Steps |
|----------|-------|
| Browser | navigate, click, type, scroll, hover, wait, extract, extractAll, exists, key |shell.run
| Shell | , terminal.open, terminal.run |llm.classify
| LLM | , llm.generate |control.if
| Control | , control.retry, control.stop, workflow.call |data.first
| Data | |
- Full Documentation
- GitHub Repository
- Website
- @sidebutton/server` - MCP server with REST API and dashboard
Apache-2.0