Modal JavaScript Library
The Modal JavaScript SDK allows you to run Modal Functions and Sandboxes from server-side JavaScript applications.
It comes with built-in TypeScript type definitions.
Documentation
See the documentation and examples on GitHub.
Requirements
Node 22 or higher. We bundle both ES Modules and CommonJS formats, so you can load the package with either import
or require()
in any project.
Installation
Install the package with
npm install modal