Custom World implementations for the Workflow DevKit.
A World provides the infrastructure layer for Workflow DevKit, handling:
- Storage: Persisting workflow runs, steps, events, and hooks
- Queue: Message passing for async execution
- Streamer: Real-time output streaming
-
Copy the starter package:
cp -r packages/starter my-world cd my-world -
Update
package.jsonwith your package name -
Install dependencies and verify tests pass:
pnpm install pnpm build pnpm test -
Replace the in-memory implementations with your backend
| Package | Description | Status |
|---|---|---|
| @workflow-worlds/starter | In-memory World template for building custom implementations | ✅ Ready |
| @workflow-worlds/mongodb | MongoDB World using native driver | ✅ Ready |
| @workflow-worlds/redis | Redis World using BullMQ for queues, Redis Streams for output | ✅ Ready |
| @workflow-worlds/turso | Turso/libSQL World for embedded or remote SQLite databases | ✅ Ready |
- Introduction - What is a World and why it exists
- Interface Reference - Complete API documentation
- Implementation Guide - Step-by-step tutorial
- Patterns & Practices - Key patterns and gotchas
- Testing - Running the test suite
- Production Checklist - Production readiness
This repository is optimized for AI-assisted development:
- CLAUDE.md - Quick reference for AI agents
- llm/AGENTS.md - Detailed agent instructions
- llm/PROMPTS.md - Ready-to-use prompts
- llm/world-builder-agent.md - Comprehensive guide
# Install dependencies
pnpm install
# Build all packages
pnpm build
# Run tests
pnpm testMIT