| Crates.io | vx-tool-bun |
| lib.rs | vx-tool-bun |
| version | 0.4.0 |
| created_at | 2025-06-19 10:55:44.066548+00 |
| updated_at | 2025-06-19 13:59:03.16714+00 |
| description | Bun package manager support for vx |
| homepage | https://github.com/loonghao/vx |
| repository | https://github.com/loonghao/vx |
| max_upload_size | |
| id | 1718191 |
| size | 32,711 |
Bun package manager and runtime support for the vx universal tool manager.
🚧 Under Development - This crate is currently under development and not yet implemented.
vx-pm-bun will provide Bun package manager and runtime support for vx, enabling ultra-fast JavaScript/TypeScript development with built-in bundling, testing, and package management through the vx interface.
# Execute JavaScript/TypeScript (planned)
vx bun run script.js
vx bun run script.ts
vx bun --version
# REPL (planned)
vx bun repl
# Install packages (planned)
vx bun install
vx bun add express
vx bun add --dev @types/node
vx bun remove express
# Update packages (planned)
vx bun update
vx bun outdated
# Development server (planned)
vx bun dev
vx bun --hot run server.ts
vx bun --watch run script.ts
# Build and bundle (planned)
vx bun build ./src/index.ts --outdir ./dist
vx bun build --minify --target browser
vx bun build --format esm --splitting
# Test runner (planned)
vx bun test
vx bun test --watch
vx bun test --coverage
This crate is currently in the planning phase. JavaScript/Node.js development is currently supported through:
vx-pm-npm - NPM package manager (available now)vx-tool-node - Node.js runtime| Feature | Node.js + NPM (Available) | Bun (Planned) |
|---|---|---|
| JavaScript Runtime | ✅ | 🚧 |
| TypeScript Support | ⚠️ (requires compilation) | 🚧 (native) |
| Package Manager | ✅ | 🚧 |
| Bundler | ❌ (external tools) | 🚧 (built-in) |
| Test Runner | ❌ (external tools) | 🚧 (built-in) |
| Hot Reloading | ❌ (external tools) | 🚧 (built-in) |
| Performance | ⚠️ | 🚧 (3x faster) |
This crate is not yet implemented. If you're interested in contributing to Bun support in vx, please:
While this crate is under development, consider these alternatives:
# Use Node.js and NPM for JavaScript development
vx npm install express
vx node server.js
vx npm run dev
# Use system Bun with vx
vx --use-system-path bun --version
vx --use-system-path bun install
vx --use-system-path bun run dev
# Planned configuration
[tools]
bun = "latest"
[bun]
auto_install = true
prefer_bun = true # Prefer bun over node for JS execution
# Planned Bun configuration integration
[install]
registry = "https://registry.npmjs.org/"
cache = "~/.bun/install/cache"
[run]
bun = true
hot = true
[test]
coverage = true
# Frontend + Backend with Bun (planned)
vx bun create next-app frontend
vx bun create hono-app backend
# Development
vx bun dev # Start dev server
vx bun test # Run tests
vx bun build # Build for production
# Native TypeScript execution (planned)
vx bun run server.ts # No compilation needed
vx bun test *.test.ts # Test TypeScript directly
vx bun build src/index.ts --outdir dist
# Library development (planned)
vx bun init
vx bun add --dev typescript
vx bun build --format esm,cjs
vx bun test
vx bun publish
# npm (current)
time vx npm install # ~30 seconds
# bun (planned)
time vx bun install # ~1.5 seconds (20x faster)
# Node.js (current)
time vx node server.js # baseline
# Bun (planned)
time vx bun run server.js # 3x faster startup
This project is licensed under the MIT License - see the LICENSE file for details.
vx-core - Core functionalityvx-cli - Command-line interfacevx-pm-npm - NPM package manager (available now)vx-tool-node - Node.js tool (available now)vx-pm-yarn - Yarn package manager (planned)vx-pm-pnpm - PNPM package manager (planned)