Key features
The Modal TypeScript SDK comes with built-in TypeScript type definitions and supports:- Serverless sandboxes: Create isolated execution environments with custom images, volumes, and secrets
- Function calling: Invoke Modal Functions deployed with the Python SDK
- Resource management: Work with Apps, Volumes, Queues, Secrets, and other Modal resources
- Custom images: Build images from registries (Docker Hub, AWS ECR, GCP Artifact Registry) or with Dockerfile commands
- Telemetry and observability: Add custom gRPC middleware for tracing and monitoring
- Full TypeScript support: Type-safe APIs with comprehensive TypeScript definitions
What you can do
Run code in sandboxes
Create isolated execution environments on-demand:Call deployed functions
Invoke Modal Functions deployed with the Python SDK:Work with classes
Call methods on Modal class instances:Build custom images
Create images with Dockerfile commands and secrets:Runtime support
The Modal TypeScript SDK supports:- Node.js: Version 22 or later
- Module formats: ES Modules and CommonJS (both
importandrequire()) - Runtimes: Node.js, Deno, and Bun
Feature parity with Python SDK
The TypeScript SDK is approaching feature parity with the Modal Python SDK, with some notable exceptions:- Available: Sandboxes, Functions, Classes, Images, Volumes, Queues, Secrets, Proxies
- Not yet available: Defining Modal Functions, Volume filesystem API, some Image building APIs, Dicts
Next steps
Installation
Install the Modal TypeScript SDK
Basic usage
Learn basic patterns and workflows
Client configuration
Configure authentication and settings
API reference
Explore the full API documentation