All recipes
Find a practical pattern for the work you need to run.
Runlane runs TypeScript tasks on workers you control. It provides durable runs, retries, queues, waits, and observability. Your app still provides its business data, libraries, credentials, and external services.
Choose a recipe to see the working pattern, ownership boundary, and production checks. Runlane APIs in recipe snippets are real; calls under MAKE YOUR API CALLS HERE are purpose-named pseudocode for your application or providers.
Set up and deploy
Hono
Return an accepted run from a Node.js or Lambda route, then execute it in a separate worker.
Run locally, then use Postgres and SQS
Build one application runtime, run it locally, then switch its lane for production.
Load environment variables for the CLI
Load dotenv files before the CLI constructs your application runtime.
AI and data
AI streaming
Show an AI answer word by word in your app while a worker generates it. Reloads and dropped connections lose nothing.
AI agents
Run a support agent that searches documentation and requires approval for sensitive tools.
Media generation
Generate structured content and an accompanying image.
Semantic search
Answer questions from a knowledge base with citations and sources.
Automation
Browser automation
Research a bounded set of pages and return findings with sources.
Email sequences
Send a personalized onboarding sequence over several days.
Marketing automation
Plan, create, and publish a bounded set of campaign content.
Media processing
Extract video highlights and format them for social platforms.
Run Python
Analyze data with Python and return structured results.
Workflow controls
Concurrency
Give each user a bounded share of AI request capacity.
Human-in-the-loop
Generate content, pause for approval, then publish or reject it.
Sagas
Undo completed steps after a failure, then stop the run.
Retries
Retry temporary enrichment failures with bounded exponential backoff.
Scheduled tasks
Generate and email a weekday analytics report on a cron schedule.