RepositoryTypeScript
temporalio

temporalio/sdk-typescript

Temporal TypeScript SDK

955stars
264forks
145issues
3views

Featured achievements

The project's latest awards

2
TINIX TRENDING·Topic: temporal-sdk

#2 Repository of the week

6
TINIX TRENDING·Topic: durable-execution

#6 Repository of the week

2
TINIX TRENDING·Topic: temporal-sdk

#2 Repository of the week

Temporal TypeScript SDK

Node 20 | 22 | 24 MIT NPM

Temporal is a distributed, scalable, durable, and highly available orchestration engine used to execute asynchronous, long-running business logic in a scalable and resilient way.

Temporal TypeScript SDK is the framework for authoring workflows and activities using either the TypeScript or JavaScript programming languages.

For documentation and samples, see:

Quick Start

Installation

To add Temporal TypeScript SDK packages to an existing JavaScript project, run:

(for client-level features, e.g. starting or interracting with Workflows)

# Or `pnpm add` or `yarn add`
npm install --save \
    @temporalio/client \
    @temporalio/common

(for worker-level features, including running Workflows, Activities and Nexus Operations)

# Or `pnpm add` or `yarn add`
npm install --save \
    @temporalio/worker \
    @temporalio/workflow \
    @temporalio/activity \
    @temporalio/common

All @temporalio/* packages in a project must have the same version number. This requirement is generally enforced by peer dependencies of the Temporal packages, but it may sometime require extra cares in complex monorepos.

Requirements

[!NOTE] The following requirements apply to the current git branch, and not necessarily what's released on NPM.

Node.js

The Temporal TypeScript SDK is officially supported on Node 20, 22, and 24.

In line with Node.js' release policy, we recommend that production applications only use Node's Active LTS or Maintenance LTS releases.

Other JavaScript runtime environments

The @temporalio/client package is believed to work properly on most server-side JavaScript environments, including Bun, Deno, and Cloudflare Workers. Note however that we do not run regular tests of the SDK on any other JavaScript runtime environments, and therefore can't provide official support for such execution environments. Use at your own risk!

Worker-level features (i.e. running Workflows, Activities, and Nexus Operations) of the Temporal TypeScript SDK rely extensively on several Node-specific features, including:

  • Node-API native modules - Required to load the Core SDK native library.
  • Node's worker_threads module - Required to offload Workflow Tasks execution to a separate thread.
  • Node's vm modules - Required to create isolated execution environments for Workflow Tasks (i.e. the "Workflow Sandbox").
  • Node's AsyncLocalStorage API - Required to track the context of the currently executing Workflow, Activity, or Nexus Operation tasks.
  • Node's async_hooks module - Required to track stack traces and catch unhandled promise rejections inside of Workflows.

Some Node-compatible runtimes provide partial support for these APIs, and some users have reported anecdotal success in running Worker-level features of the Temporal TypeScript SDK in such environments. However, given the lack of maturity of those compatibility layers, we strongly discourage running Temporal Workers in anything except authentic Node.js at this time.

Be assured that we will continue to monitor evolution of those alternative runtimes, and will consider extending support to more environments as their respective compatibility layers mature.

SDK Development

Refer to our contributing guide for details on build and testing procedures.

Repository Structure

This monorepo contains the following packages:

SubfolderPackage
packages/client/@temporalio/client
packages/worker/@temporalio/worker
packages/workflow/@temporalio/workflow
packages/activity/@temporalio/activity
packages/testing/@temporalio/testing
packages/common/@temporalio/common
packages/proto/@temporalio/proto
packages/test/SDK internal tests
packages/create-project/@temporalio/create
packages/docs/API docs
packages/core-bridge/@temporalio/core-bridge
packages/envconfig/@temporalio/envconfig
packages/nyc-test-coverage/@temporalio/nyc-test-coverage
packages/plugin/@temporalio/plugin
packages/nexus/@temporalio/nexus
contrib/interceptors-opentelemetry/@temporalio/interceptors-opentelemetry
contrib/ai-sdk/@temporalio/ai-sdk

Contributing

We welcome issues and pull requests!

Please read our contributing guide to learn about our development process, and how to propose bugfixes and improvements.

Thank you to everyone who has contributed to the Temporal TypeScript SDK 😃🙌

Similar Projects

Discover other similar projects and AI models.

RepositoryTypeScript
n8n-io/n8n

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

212.9k
Dec 2, 2026
RepositoryTypeScript
microsoft/vscode

Visual Studio Code

195.9k
Nov 30, 2026
RepositoryTypeScript
nestjs/nest

A progressive TypeScript framework for Node.js backends: from a small API in one file to efficient, scalable, enterprise-grade systems 🚀

77.2k
Nov 30, 2026
RepositoryRust
spacedriveapp/spacedrive

Spacedrive is an open source cross-platform file explorer, powered by a virtual distributed filesystem written in Rust.

39.6k
Nov 25, 2026
RepositoryTypeScript
morluto/rea

Reverse engineer anything with agents, from app behavior down to native binaries.

487.0k
Dec 2, 2026
RepositoryRust
farion1231/cc-switch

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode,DeepSeek Harness and more. Only official website: ccswitch.io

158.7k
Dec 2, 2026
RepositoryTypeScript
calcom/cal.diy

Scheduling infrastructure for absolutely everyone.

50.5k
Nov 13, 2026
RepositoryTypeScript
gitroomhq/postiz-app

📨 The ultimate agentic social media scheduling tool 🤖

42.9k
Dec 2, 2026
RepositoryTypeScript
CopilotKit/CopilotKit

The Frontend Stack for Agents & Generative UI. React, Angular, Mobile, Slack, and more. Makers of the AG-UI Protocol

39.1k
Dec 1, 2026