Skip to content

restackio/examples-typescript

Repository files navigation

Restack Examples for Typescript

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.

Quick Start

Start the Restack Engine and Web UI using Docker:

docker run -d --pull always --name restack -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

Autonomous AI Examples

  • posthog - Analyzes PostHog session recordings and creates Linear digests
  • voice - Voice processing with Deepgram and OpenAI

Find more autonomous examples

Examples of key Restack functionalities

  • child-workflows - Example of parent-child workflow orchestration
  • encryption - Example of encrypted data handling in workflows
  • human-loop - Example of human-in-the-loop workflows

Examples with Service Provider (OpenAI, Gemini & more)

Framework Examples

  • nextjs - Integration with Next.js applications
  • express - Basic Express server to schedule restack workflows
  • swagger - Express server with Swagger documentation to trigger restack workflow from Swagger UI

Documentation

For detailed documentation and guides, visit https://docs.restack.io/

Join our community on Discord for support and discussions.

Local Restack Components

Restack Engine

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

Restack Web Interface

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