---
title: "Code Exchange"
description: "A collection of code samples, example applications, and ideas to inspire you to create what's next."
canonical: "https://temporal.io/code-exchange.md"
source: "https://temporal.io/code-exchange"
---

# Code Exchange

A collection of code samples, example applications, and ideas to inspire you to create what's next.

- [Submit a Project](https://github.com/temporal-community/code-exchange/issues/new?template=code-exchange-submission.yml)
- [Suggest a Project](https://github.com/temporal-community/code-exchange/issues/new?template=code-exchange-suggestion.yml)

## Build invincible apps

Give your apps and services durable execution.

- [Set Up Your Local Environment](https://docs.temporal.io/quickstarts)
- [View the Temporal Repo](https://github.com/temporalio/temporal)
- [Learn More](https://learn.temporal.io/getting_started/)

## Projects

- [Order Processing with Temporal and Encore](https://temporal.io/code-exchange/order-processing-with-temporal-and-encore.md) — TypeScript: An order processing backend that combines Temporal’s durable workflows with Encore’s automatic API and infrastructure provisioning. A multi-step workflow with payment and shipping, plus a saga-style refund path when something fails downstream.
- [OpenAI Agents SDK Deep Research Demo](https://temporal.io/code-exchange/openai-agents-sdk-deep-research-demo.md) — Python: A deep research agent built with the OpenAI Agents SDK and Temporal's durable execution, featuring a web UI, multi-agent coordination with clarifying questions, and optional PDF report generation.
- [Stripe Ridesharing Demo](https://temporal.io/code-exchange/stripe-ridesharing-demo.md) — TypeScript: Ridesharing demo application that integrates with Stripe's usage-based billing and highlights Temporal's durability and support for external interactions.
- [AgentOfCode](https://temporal.io/code-exchange/agent-of-code.md) — Python: An "agentic" LLM solution uses various AI models to iteratively work through Advent of Code problems.
- [AI agent gateway with Temporal Nexus](https://temporal.io/code-exchange/ai-agent-gateway-with-temporal-nexus.md) — Python: An AI agent gateway built on Temporal: governed, durable MCP tool calls with human sign-off, shared across teams with Temporal Nexus.
- [CoMSES AgentSpace / Temporal Native End-to-End Agentic RAG](https://temporal.io/code-exchange/comses-agentspace-temporal-native-end-to-end-agentic-rag.md) — Python: Temporal-native agentic RAG system with deep frontend observability into the retrieval process. A Temporal Workflow orchestrates the agent loop while other Workflows orchestrate hybrid-search, query decomposition, HITL with event-sourced ag-ui streaming.
- [Durable Trivia](https://temporal.io/code-exchange/durable-trivia.md) — Rust: A 60-second competitive trivia game where Temporal Replay 2026 badges race to complete real Rust Temporal Activities.
- [Ziggy's Durable HITL Agents — Multi-Agent Demo with Google ADK, LangGraph + Temporal](https://temporal.io/code-exchange/ziggys-durable-hitl-agents-multi-agent-demo-with-google-adk-langgraph-temporal.md) — Python: Ziggy's Durable HITL Agents is a visual Python multi-agent demo integrating Temporal with Google ADK and LangGraph. It shows durable human-to-agent and agent-to-human workflows, Worker recovery, and cross-framework orchestration.
- [Tactors SDK - Typed actors on top of temporal](https://temporal.io/code-exchange/tactors-sdk-typed-actors-on-top-of-temporal.md) — Go: Typed, builder-first actor SDK for Go built on Temporal.io: describe stateful workflows, commands, queries, and activities with fluent APIs, then run them deterministically across Temporal workers and testsuite scenarios.
- [FlowShield: Temporal.io AI-Enhanced Authentication System](https://temporal.io/code-exchange/flowshield-authentication-system.md) — Python: Production-ready authentication system combining Temporal.io workflows with AI-powered fraud detection. Features JWT tokens, email verification, password reset flows, and intelligent security analysis using local AI models with graceful fallbacks.
- [eShopOnContainers + Temporal.io Workflows](https://temporal.io/code-exchange/eshoponcontainers-temporal-io-workflows.md) — .NET: Experiment reimplementing the reference project eShopOnContainers order saga with Temporal.io workflows and activities, showing Temporal users how centralized orchestration compares to event choreography in a , end-to-end order pipeline.
- [GPU Drop Reserver](https://temporal.io/code-exchange/gpu-drop-reserver.md) — Python: Temporal demo for flash sales: durable timers for checkout deadlines, signals when the buyer finishes, and compensation that puts stock back if they don’t. FastAPI + React UI—same idea as GPU drops or timed ticket holds, without fragile cron-only hacks.
- [Rust Confessional: a durable AI agent demo](https://temporal.io/code-exchange/rust-confessional.md) — Rust: A live Rust and Temporal demo where an AI agent judges audience programming confessions, and its progress survives a Worker crash mid-task.
- [temporal-workdir — Remote-backed workspace sync for Temporal activities](https://temporal.io/code-exchange/temporal-workdir.md) — Python: Syncs a local directory with remote storage (GCS, S3, Azure) before and after Temporal activity execution. Enables file-based activities to work across distributed workers where disk is not shared.
- [Aktilot – AI Document Chat using RAG with Durable Temporal Workflows](https://temporal.io/code-exchange/aktilot.md) — Python: Aktilot is an open-source, self-hosted AI document chat platform powered by Temporal. Document ingestion and chat run as durable workflows with retries, checkpointing, observability, and hybrid BM25 + vector retrieval.
- [Durable Research Fleet](https://temporal.io/code-exchange/durable-research-fleet.md) — Python: A deep-research agent that runs on Temporal Serverless Workers on Google Cloud Run.  Ask a question from your phone.  It splits into ~6 sub-questions, in parallel by a Cloud Run instance, then merged into one report. The pool scales 0 → N → 0 on its own.
- [AI enhanced e-commerce application](https://temporal.io/code-exchange/ai-enhanced-e-commerce-application.md) — .NET: WithLove is a sample e-commerce application that show how AI can be integrated into a web application. It includes a curated gift shop with hybrid search (full-text + vector), and an AI-powered chat shopping assistant.
- [D&D Voice Agents Demo](https://temporal.io/code-exchange/d-and-d-voice-agents-demo.md) — Python: Two AI voice agents play through a D&D one-shot adventure autonomously. They generate dialogue, roll dice, and advance the story, all spoken out loud to each other using native speech models. The entire session runs as a durable Temporal workflow.
- [InfinityFlow.Aspire.Temporal - .NET Aspire Integration for Temporal](https://temporal.io/code-exchange/infinityflow-aspire-temporal-net-aspire-integration-for-temporal.md) — .NET: Aspire extension to run the Temporal CLI dev server as a container resource, with a client library for automatic connection string resolution, OpenTelemetry integration, and health checks.
- [Temporal E-Commerce Demo](https://temporal.io/code-exchange/temporal-e-commerce-demo.md) — TypeScript: A full-stack e-commerce demo built entirely on Temporal durable execution: cart, checkout, orders, inventory, and fulfillment are TypeScript workflows — declarative state machines around pure, unit-tested deciders. Next.js + Cassandra + Elasticsearch.
- [Durable Wordle](https://temporal.io/code-exchange/durable-wordle.md) — Python: Wordle where each game is a Temporal Workflow, not a database row. Crash the server mid-game and your progress survives. A small, complete app demoing durable execution, Updates, Queries, and Activities, fully playable from the Temporal CLI or a web UI.
- [Durable Agentic Harness](https://temporal.io/code-exchange/durable-agentic-harness.md) — Python: An autonomous stock-trading agent (OpenAI Agents SDK) that reframes Temporal as the Durable OS for agentic AI: workers = scheduling, event history = autosave, signals = human-in-the-loop. Kill the worker mid-trade and the agent replays from the exact line.
- [duralang – Durable Stochastic AI Agents with One Decorator](https://temporal.io/code-exchange/duralang-durable-stochastic-ai-agents-with-one-decorator.md) — Python: duralang makes every LangChain LLM call, tool call, MCP call, and agent-to-agent call a Temporal Activity automatically — via a single @Dura decorator. No workflow DSL. No code rewrite. Fully stochastic agents, fully durable execution.
- [Temporal Sandbox Orchestration Harness](https://temporal.io/code-exchange/temporal-sandbox-orchestration-harness.md) — Go: A Sandbox Orchestration Harness is what connects sandbox compute runtimes to an agent's durable execution lifecycle.
- [Document Processing w/ AI](https://temporal.io/code-exchange/document-processing-w-ai.md) — Python: Temporal-powered mortgage underwriting demo that uses Gemini OCR, policy-grounded AI analysis, deterministic workflows, and a FastAPI review app to turn synthetic loan documents into structured decisions with human-in-the-loop oversight plus traceability.
- [Daily News Briefing Agent Demo (Vercel AI SDK)](https://temporal.io/code-exchange/daily-news-briefing-agent-demo-vercel-ai-sdk.md) — TypeScript: A demo comparing AI agent workflows with and without durable execution. Generates daily tech briefings via web search, summarization, and AI synthesis — showing how Temporal handles retries and crash recovery automatically.
- [Temporal CLI Tailscale Extension](https://temporal.io/code-exchange/temporal-cli-tailscale-extension.md) — Go: A Temporal CLI extension that exposes your local dev server on your Tailscale tailnet. Run `temporal ts-net` and your team can reach your dev server from any machine. No port forwarding, no VPN config, no infrastructure to manage.
- [Zeitlich - An opinionated AI agent implementation on top of Temporal](https://temporal.io/code-exchange/zeitlich-an-opinionated-ai-agent-implementation-on-top-of-temporal.md) — TypeScript: Zeitlich is a lightweight framework for building reliable, stateful AI agents. It provides the building blocks for creating multi-turn agents. Think OpenClaw, but durable, with long-term state, and enterprise-ready.
- [tokuSolutions](https://temporal.io/code-exchange/toku-solutions.md) — Python: OCR Translation with Temporal Workflows
- [Temporal MCP Server](https://temporal.io/code-exchange/temporal-mcp-server.md) — Python: Model Context Protocol (MCP) server that provides tools for interacting with Temporal workflow orchestration. It enables AI assistants and other MCP clients to manage Temporal workflows, schedules, and workflow executions through a standardized interface.
- [Haskell SDK](https://temporal.io/code-exchange/haskell-sdk.md) — Unofficial SDK: Unofficial SDK for authoring Temporal workflows and activities in the Haskell programming language.
- [Temporal Benchmark](https://temporal.io/code-exchange/temporal-benchmark.md): A benchmarking tool to measure the latency and throughput details of a Temporal cluster
- [Temporal ML Ops Examples](https://temporal.io/code-exchange/temporal-ml-ops-examples.md) — Python: Durable ML ops, not fragile scripts: shows Temporal-orchestrated BERT fine-tuning with checkpointed training, resumable inference, and hyperparameter sweeps—workflow code that survives crashes and keeps experiments moving. Built for real-world MLOps
- [Benchmark Workers](https://temporal.io/code-exchange/benchmark-temporal-workers.md) — Go: Workers and a runner tool containing pre-written workflows and activities useful for benchmarking Temporal.
- [Reinsurance AI Assistant](https://temporal.io/code-exchange/reinsurance-ai-assistant.md) — Python: A multi-agent system that uses Temporal to durably orchestrate AI agents and human-in-the-loop interaction for catastrophe data processing in the reinsurance industry.
- [End-To-End Deep Research Agent with Temporal](https://temporal.io/code-exchange/end-to-end-ai-durable-deep-research-agent-with-temporal.md) — Python: Learn how to ingest YouTube transcripts reliably, index them in Elasticsearch, and run multi-stage AI research workflows that survive failures and retries.
- [Durable Stateful Agents with Mistral + Temporal + MCP](https://temporal.io/code-exchange/durable-stateful-agents-with-mistral-temporal-mcp.md) — Python: Mistral Agent API manages conversation state server-side; Temporal orchestrates durable execution with automatic retries MCP provides standardized tool interfaces; Logfire instruments the entire request path for production observability
- [temporal-opentelemetry: Native OpenTelemetry Usage](https://temporal.io/code-exchange/native-opentelemetry-usage.md) — Java: Add native OpenTelemetry integration for Temporal Java SDK
- [Temporal Swift SDK](https://temporal.io/code-exchange/temporal-swift-sdk.md) — Unofficial SDK: The Temporal Swift SDK provides a package for building distributed, durable workflows and activities using Swift's modern concurrency features.
- [Temporal + Spring AI Integration Framework](https://temporal.io/code-exchange/temporal-spring-ai-integration-framework.md) — Java: A library and sample application showing how the Temporal Java SDK can be used to power AI applications with Spring AI.
- [Loan Origination Demo](https://temporal.io/code-exchange/loan-origination-demo.md) — Go: End-to-end loan origination demo built with Temporal, showing how to orchestrate multi-step approval workflows with human tasks, external systems, and SLAs.
- [Temporal DSL](https://temporal.io/code-exchange/temporal-dsl.md) — Go · Ruby · .NET · PHP · Java · TypeScript · Python: Temporal DSL lets you define Temporal workflows in a simple, declarative YAML format, making them easier to read, share, and maintain. It lowers the barrier for new users while giving experts faster iteration and clearer workflow design.
- [MCP + Temporal Durable Agents](https://temporal.io/code-exchange/mcp-temporal-durable-agents.md) — Python: Durable AI agents that combine OpenAI Agents (runtime/coordination), Temporal (durable workflows), MCP, and Pydantic Logfire for tracing. Includes a financial-research agent, persisted steps, retries/timeouts, and Temporal workflow orchestration.
- [Temporal Ruby + OpenTelemetry](https://temporal.io/code-exchange/temporal-ruby-opentelemetry.md) — Ruby: Demonstrate Temporal Ruby SDK OpenTelemetry support for observability of workflow executions. Includes a simple workflow adapted from the Ruby SDK quickstart with support for logging traces to stdout with the console exporter or sending to Honeycomb.
- [Temporal Clojure SDK](https://temporal.io/code-exchange/temporal-clojure-sdk.md) — Unofficial SDK: An unofficial SDK for authoring Temporal Workflows and Activities in the Clojure programming language.
- [Temporal Workflow Replay Debugger](https://temporal.io/code-exchange/temporal-workflow-replay-debugger.md) — Go · TypeScript · Python · Java: A polyglot debugger for Temporal workflows, provides the ability to debug based on history events for Temporal workflow written in many SDK languages
- [temporalgraph / graph-based orchestration](https://temporal.io/code-exchange/temporalgraph-graph-based-orchestration.md) — Go: temporalgraph is a Go library to compose Temporal workflows as DAGs with typed I/O, branching, and merge semantics. It compiles graph definitions into deterministic activities/workflows, simplifying orchestration, reuse, and error handling.
- [Temporal + OpenTelemetry](https://temporal.io/code-exchange/temporal-opentelemetry.md) — Python: Demonstrate Temporal OpenTelemetry integration featuring complete observability for workflow executions. Includes instrumented HTTP Workflows, OpenTelemetry Collector, + deployment options: open-source stack (Jaeger, Prometheus, Elasticsearch) or Dynatrace
- [Temporal AI Question Planetarium](https://temporal.io/code-exchange/ai-question-planetarium.md) — Python: This is an example implementation of running a hugging face model using Temporal activities and workers. Our page is using WebSockets to communicate updates back and forth between our flask server, and our client browser.
- [OpenAI Agents Python SDK Demos](https://temporal.io/code-exchange/openai-agents-python-sdk-demos.md) — Python: This repository contains four standalone demos showcasing the OpenAI Agents Python SDK integrated with Temporal's durable execution.
- [Temporal + Browserbase Stagehand Integration](https://temporal.io/code-exchange/temporal-stagehand-integration.md) — TypeScript: A best practices example showing how Temporal handles browser automation failures with automatic retries using atomic, idempotent activities.
- [Local Reinforcement Learning Example](https://temporal.io/code-exchange/local-reinforcement-learning-example.md) — Python: This project demonstrates how to orchestrate a reinforcement learning (RL) training pipeline using Temporal and Ray RLlib. The system simulates a job scheduling environment and trains a PPO policy to optimize job placement in a cluster.
- [Temporal Cloud Terraform Starter](https://temporal.io/code-exchange/temporal-cloud-terraform-starter.md): A practical example of using Terraform to configure Temporal Cloud.
- [CustomDataStore for Yugabyte YCQL](https://temporal.io/code-exchange/customdatastore-for-yugabyte-ycql.md) — Go: Performance-sensitive Temporal users running self-hosted instances can leverage Yugabyte YCQL as their primary data store as an alternative to Apache Cassandra.
- [User Metadata Demo](https://temporal.io/code-exchange/user-metadata-demo.md) — Java: Shows how the new user metadata tools can level-up the visibility of your workflows and activity in Temporal-powered projects.
- [Temporal Minesweeper](https://temporal.io/code-exchange/temporal-minesweeper.md) — TypeScript: A modern Minesweeper game powered by Temporal Workflows. Each game instance is managed as a Temporal workflow, providing durable state management, real-time gameplay, and a stateless REST API backend with a responsive Web UI.
- [Temporal Invoice Processor (MCP + Claude + Human-In-The-Loop)](https://temporal.io/code-exchange/temporal-invoice-processor-mcp-claude-human-in-the-loop.md) — Python: This demo illustrates a human‑in‑the‑loop invoice processor built on Temporal and Anthropic’s MCP. You can kick off workflows with sample invoices, then approve or reject them via MCP tools while monitoring real‑time status.
- [One-Time Schedule-Based Workflow Triggering](https://temporal.io/code-exchange/one-time-schedule-based-workflow-triggering.md) — TypeScript: A Temporal TypeScript project to create and manage one-time schedules that trigger workflows with custom inputs and clean up after execution.
- [Temporal + Spring AI RAG Example](https://temporal.io/code-exchange/temporal-spring-ai-rag-example.md) — Java: This is a demo application showcasing the use of Spring AI with Temporal for Retrieval-Augmented Generation (RAG).
- [Temporal Flow](https://temporal.io/code-exchange/temporal-flow.md) — TypeScript: Temporal Flow is a lightweight UI overlay for Temporal that renders your workflows and activities as an interactive flow diagram, streamlines navigation between parent and child workflows, and provides an easy search.
- [Using Temporal with Anthropic's Message Batches API](https://temporal.io/code-exchange/using-temporal-with-anthropics-message-batches-api.md) — TypeScript: Leveraging Temporal to take advantage of Anthropic's Message Batches API for bulk processing prompts.
- [Analyze Workflow History with Gemini](https://temporal.io/code-exchange/analyze-workflow-history-with-gemini.md) — Python: Leverages Google Gemini to analyze Temporal Workflow Histories. Supports JSON format downloaded from the Temporal UX and protobuf format that have been exported to an external bucket.
- [Temporal Based Zendesk Add-on for Ticket and Organization Summary](https://temporal.io/code-exchange/temporal-based-zendesk-add-on-for-ticket-and-organization-summary.md) — Go: This Zendesk Add-on uses LLMs (OpenAI, Google Gemini, or Anthropic) to generate ticket summaries and organization-level insights, making it easier for support teams to manage customer issues efficiently while ensuring fault-tolerance and scalability.
- [.NET/C# Logistics Process Manager Example](https://temporal.io/code-exchange/net-c-logistics-process-manager-example.md) — .NET: Simple example of a process manager dealing with the logistics domain. Implemented in .NET/C# and hosted in Docker Compose.
- [kairos-cli](https://temporal.io/code-exchange/kairos-cli.md) — Go: kairos-cli is a snappy cli application that allows you to maintain your flow state while allowing you to open a workflow in the cloud for a richer experience and deeper analysis.
- [AI Agent execution using Temporal](https://temporal.io/code-exchange/ai-agent-execution-using-temporal.md) — Python: This demo shows a multi-turn conversation with an AI agent running inside a Temporal workflow.
- [Rojak](https://temporal.io/code-exchange/rojak.md) — Python: A library for building highly durable and scalable multi-agent orchestrations.
- [Go Code Generation with Temporal & Protobufs](https://temporal.io/code-exchange/go-code-generation-with-temporal-and-protobufs.md) — Go: Generates code for Temporal workflows from Protobuf definitions, automating client and worker creation. It simplifies development by converting structured workflow definitions into runnable code, reducing manual effort and ensuring consistency.
- [Indeed Workflow Framework (iWF)](https://temporal.io/code-exchange/indeed-workflow-framework-iwf.md) — Go · Java · Python: iWF (Indeed Workflow Framework) is a framework built on top of Temporal that simplifies the development, management, and orchestration of long-running, asynchronous workflows. It provides clear abstractions so you can focus on business logic.
- [ProjectX](https://temporal.io/code-exchange/projectx.md) — TypeScript: A comprehensive full-stack template designed to simplify the development of scalable and resilient applications using React and Temporal.
- [Shadow Shop Sample](https://temporal.io/code-exchange/shadow-shop-sample.md) — .NET: A sample application that adds integration with Stripe for payment processing and Temporal for Durable Execution.
- [Cross-Language Data Processing Service with Temporal](https://temporal.io/code-exchange/cross-language-data-processing-service-with-temporal.md) — Go · Python · TypeScript: A practical demonstration of building a robust, scalable, and language-agnostic data processing pipeline using Temporal. Seamlessly orchestrates workflows across Go, Python, and TypeScript—perfectly suited for polyglot development teams.
- [Temporal for Java/Spring Boot Microservices](https://temporal.io/code-exchange/temporal-for-java-spring-boot-microservices.md) — Java: This project experiments with applying Temporal to the implementation of Java/Spring Boot microservices.
- [Batch Orchestra](https://temporal.io/code-exchange/batch-orchestra.md) — Python: An easy-to-use library for reliably and scalably performing many like operations such as DB migrations and periodic batch jobs.
- [Temporalio.Graphs](https://temporal.io/code-exchange/temporalio-graphs.md) — .NET: Visualize entire Temporal workflows regardless of how far the execution has progressed.
- [Order Management System](https://temporal.io/code-exchange/order-management-system.md) — Go: A reference application that demonstrates one way to approach the design and implementation of an order processing system based on Temporal Workflows.
- [Insurance Workflow with Temporal](https://temporal.io/code-exchange/insurance-workflow-with-temporal.md) — .NET: A simplified insurance application built with multiple services, using Temporal to manage complex workflows.
- [Quarkus Temporal](https://temporal.io/code-exchange/quarkus-temporal.md) — Java: A Quarkus extension that lets you utilize Temporal, orchestrating both mission-critical and mainstream workloads.
- [Temporal samples for the Symfony framework](https://temporal.io/code-exchange/temporal-samples-for-the-symfony-framework.md) — PHP: Provides sample applications and a Docker Compose config to easily get started with Temporal and the Symfony framework.
- [Temporal Diagram Generator](https://temporal.io/code-exchange/temporal-diagram-generator.md) — Python: Generate visual sequence diagrams from your Temporal workflows—automatically! Useful for debugging, documentation, and onboarding.
- [Role-Based Authentication for Self-Hosted Temporal](https://temporal.io/code-exchange/role-based-authentication-for-self-hosted-temporal.md) — Go: Learn how to implement role-based authentication for self-hosted Temporal. Use custom claim mappers and authorizers to enhance security and access control for your workflows.
- [Temporal Trivia](https://temporal.io/code-exchange/temporal-trivia.md) — Go: An incredibly durable game of multi-player trivia, powered by Temporal. Showcases a human-in-the-loop workflow that uses GenAI for trivia Q&A generation, and workflows to maintain and control the state of the game.
- [Slack ReminderBot (Clojure)](https://temporal.io/code-exchange/slack-reminderbot-clojure.md) — Unofficial SDK: This project implements a Bot for Slack that adds a /remindme command. This command enables you to schedule a future reminder that will be posted back to yourself at a specific time as a Direct Message (DM), showcasing Temporal's durable execution features
