Bun Global Cache
How Bun stores and manages packages in its global cache
Install
npx skills add jarle/bun-skills --skill Bun Global cachegit 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-cachePersonal 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.Details
- Skill name
Bun Global cache- Repository
- jarle/bun-skills
- 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
Bun Archive
9jarle/bun-skills
Create and extract tar archives with Bun's fast native implementation
Bun Auto Install
9jarle/bun-skills
Bun's automatic package installation feature for standalone script execution
Bun Bun Add
9jarle/bun-skills
Add packages to your project with Bun's fast package manager
Bun Isolated Installs
9jarle/bun-skills
Strict dependency isolation similar to pnpm's approach
Bun Glob
9jarle/bun-skills
Use Bun's fast native implementation of file globbing
Bun JSON5
9jarle/bun-skills
Use Bun's built-in support for JSON5 files through both runtime APIs and bundler integration
Browse the most popular Claude skills, all other skills, or write your own with the skills generator.