Restack is an open source framework for building autonomous AI applications in TypeScript. It helps developers build resilient, autonomous AI workflows that can execute logic and API calls reliably, maintain state over weeks or months, and self-improve over time. The examples in this repository demonstrate how to build TypeScript applications using Restack's features.
Start the Restack Engine and Web UI using Docker:
docker run -d --pull always --name studio -p 5233:5233 -p 6233:6233 -p 7233:7233 ghcr.io/restackio/engine:main
Or using Docker Compose:
docker compose up -d --build --pull always
The Restack Web UI will be available at http://localhost:5233
- examples/posthog - Analyzes PostHog session recordings and creates Linear digests
- examples/voice - Voice processing with Deepgram and OpenAI
- examples/openai - Basic OpenAI integration example
- examples/gemini - Example using Google's Gemini model
- examples/composio - Calendar event creation with AI
- examples/expresss-together-llamaindex - Together AI and LlamaIndex integration with Express
- examples/nextjs-together-llamaindex - Together AI and LlamaIndex integration with Next.js
- examples/get-started - Basic starter template
- examples/nextjs - Integration with Next.js applications
- examples/express - Basic Express server to schedule restack workflows
- examples/swagger - Express server with Swagger documentation to trigger restack workflow from Swagger UI
- examples/human-loop - Example of human-in-the-loop workflows
- examples/gotohuman - Human-in-the-loop example using gotoHuman
For detailed documentation and guides, visit https://docs.restack.io/
Join our community on Discord for support and discussions.
The Restack Engine uses Temporal to reliably run and manage AI workflows. It handles all the complex orchestration behind the scenes, including:
- Long-running workflows that maintain state for days or months
- Detailed workflow replay and debugging
- Automated event processing and handling
- Scheduled and recurring job execution
- Smart API rate limiting
- Persistent memory and state management
The web-based dashboard lets you:
- Track and troubleshoot running workflows
- Step through and replay workflow executions
- Test and validate individual functions
- Create and manage workflow schedules
- Access complete execution logs and history