Build pipelines that just work
stepkit is a lightweight, type-safe pipeline builder designed for TypeScript developers who want to create robust data processing workflows without the complexity of heavyweight frameworks. Each step receives a typed context, returns a plain object that gets merged forward, and benefits from automatic type inference throughout the pipeline.Quickstart
Get up and running in under 2 minutes with your first pipeline
Core Concepts
Learn about steps, context merging, and type safety
Examples
Real-world patterns including parallel execution, branching, and error handling
API Reference
Complete API documentation for all methods and types
Key Features
Type-Safe by Default
Types flow automatically through each step. No manual type annotations needed—TypeScript infers the context at every step based on what previous steps return.Parallel Execution
Run multiple operations concurrently within a single step. Results are automatically merged into the context.Conditional Branching
Route execution based on runtime conditions with full type safety across all branches.Composable Pipelines
Nest pipelines within pipelines or import reusable sub-pipelines from other files.Built-in Observability
Opt-in structured logging with per-step timing, performance summaries, and detailed execution traces.Output includes step-by-step progress, timing information, and a performance summary showing fastest/slowest steps and total execution time.
Error Handling & Retries
Control how failures propagate with flexible error handling strategies and automatic retry logic.Checkpoints & Resume
Save pipeline state at any step and resume execution later—perfect for human-in-the-loop workflows.Zero Dependencies
stepkit has no external dependencies. The entire library is minimal, focused, and easy to understand. You can read the source code in minutes.Why stepkit?
Most pipeline frameworks bring heavy abstractions, complex configuration, or tight coupling to specific platforms. stepkit takes a different approach:- Minimal API surface: Just
step,branchOn,transform,run, andrunCheckpoint - TypeScript-first: Types are not an afterthought—they’re the foundation
- Framework-agnostic: Works in Node.js, browsers, edge runtimes, and anywhere TypeScript runs
- Composable by design: Small, focused pipelines combine into larger workflows
- Observable by default: Structured logging and timing built in, enabled with one flag
Next Steps
Quickstart
Build your first pipeline in 2 minutes
Core Concepts
Understand how stepkit works