Modal SDKs for JavaScript and Go (Beta)
Modal also provides SDKs that enable using Modal Functions and Sandboxes from JavaScript/TypeScript and Go projects.
While Python is the primary language for building Modal applications and implementing Modal Functions, these SDKs enable use cases like:
- Using Sandboxes in JS/Go projects, to safely execute arbitrary commands, run untrusted user code, or as a safe environment for AI agents.
- Directly calling Modal Functions without having to go through a web endpoint.
- Interacting with Modal resources like Volumes, Secrets, Queues, etc. directly from JS/Go.
We’re working towards feature parity with the main Modal Python SDK, although defining Modal Functions will likely remain exclusive to Python.
Installation
For installation instructions, see the READMEs for JavaScript and Go on GitHub.
JavaScript/TypeScript
The modal package is distributed via npm. See the JS API reference documentation for details.
Simple JavaScript Example
There are many more examples available on GitHub.
Go
The modal-go package is installed via go get. See the Go API reference documentation for details.
Simple Go Example
There are many more examples available on GitHub.
Support
The JS and Go Modal SDKs are in active development, and we love to hear your feedback. If you have questions or suggestions, please reach out on the Modal Community Slack.