Bun Global Cache

How Bun stores and manages packages in its global cache

9 stars 1 forksOther

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add jarle/bun-skills --skill Bun Global cache
Manual install
git clone --depth 1 https://github.com/jarle/bun-skills.git /tmp/bun-skills
mkdir -p ~/.claude/skills
cp -r /tmp/bun-skills/skills/bun-pm-global-cache ~/.claude/skills/Bun-Global-cache

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# Global cache

> How Bun stores and manages packages in its global cache

All packages downloaded from the registry are stored in a global cache at `~/.bun/install/cache`, or the path defined by the environment variable `BUN_INSTALL_CACHE_DIR`. They are stored in subdirectories named like `${name}@${version}`, so multiple versions of a package can be cached.

<Accordion title="Configuring cache behavior">
  ```toml bunfig.toml icon="settings" theme={"theme":{"light":"github-light","dark":"dracula"}}
  [install.cache]
  # the directory to use for the cache
  dir = "~/.bun/install/cache"

  # when true, don't load from the global cache.
  # Bun may still write to node_modules/.cache
  disable = false

  # when true, always resolve the latest versions from the registry
  disableManifest = false
  ```
</Accordion>

***

## Minimizing re-downloads

Bun strives to avoid re-downloading packages multiple times. When installing a package, if the cache already contains a version in the range specified by `package.json`, Bun will use the cached package instead of downloading it again.

<Accordion title="Installation details">
  If the semver version has pre-release suffix (`1.0.0-beta.0`) or a build suffix (`1.0.0+20220101`), it is replaced with a hash of that value instead, to reduce the chances of errors associated with long file paths.
Read the full skill on GitHub

Details

Skill name
Bun Global cache
Path
skills/bun-pm-global-cache/SKILL.md
License
MIT
Repo updated
24 February 2026

FAQ

What does the Bun Global Cache skill do?

How Bun stores and manages packages in its global cache

How do I install the Bun Global Cache skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add jarle/bun-skills --skill Bun Global cache. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Bun Global Cache popular?

It lives in jarle/bun-skills, which has 9 GitHub stars and 1 forks.

Related skills

Browse the most popular Claude skills, all other skills, or write your own with the skills generator.