Skip to main content
Bun’s package manager can install any publicly available tarball URL as a dependency of your project.
terminal

Running this command will download, extract, and install the tarball to your project’s node_modules directory. It will also add the following line to your package.json:
package.json

The package "zod" can now be imported as usual.

See Docs > Package manager for complete documentation of Bun’s package manager.