rembrembdocs

Skip to main content

Bun home pagelight logodark logo

[Runtime

](../../../index.md)[Package Manager

](../../../pm/cli/install/index.md)[Bundler

](../../../bundler/index.md)[Test Runner

](../../../test/index.md)[Guides

](../../index.md)[Reference

](https://bun.com/reference)[Blog

](https://bun.com/blog)[Feedback

](../../../feedback/index.md)

Bun’s package manager can install any publicly available tarball URL as a dependency of your project.

terminal

bun add zod@https://registry.npmjs.org/zod/-/zod-3.21.4.tgz

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

{
  "dependencies": {
    "zod": "https://registry.npmjs.org/zod/-/zod-3.21.4.tgz"
  }
}

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

import { z } from "zod";

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

Was this page helpful?

Suggest editsRaise issue

[

Add a Git dependency

Previous

](../add-git/index.md)[

Install a package under a different name

Next

](../npm-alias/index.md)