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.
See the documentation and examples on GitHub.
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.
Install the package with
npm install modal