vx-pm-bun
Bun package manager and runtime support for the vx universal tool manager.
Status
🚧 Under Development - This crate is currently under development and not yet implemented.
Overview
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.
Planned Features
- Bun Runtime: Fast JavaScript/TypeScript runtime
- Package Manager: Lightning-fast package installation
- Built-in Bundler: Zero-configuration bundling
- Test Runner: Built-in test runner with Jest compatibility
- TypeScript Support: Native TypeScript execution
- Hot Reloading: Fast development server with hot reloading
- Web APIs: Node.js and Web API compatibility
Planned Commands
Runtime
# Execute JavaScript/TypeScript (planned)
# REPL (planned)
Package Management
# Install packages (planned)
# Update packages (planned)
Development Server
# Development server (planned)
Bundling
# Build and bundle (planned)
Testing
# Test runner (planned)
Current Status
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
Development Roadmap
- Phase 1: Basic Bun runtime and package manager
- Phase 2: Development server and hot reloading
- Phase 3: Built-in bundler and build tools
- Phase 4: Test runner and advanced features
Bun Advantages (Planned)
Performance
- 3x faster than Node.js for many workloads
- 20x faster package installation than npm
- Native bundling without external tools
- Fast startup with optimized runtime
Developer Experience
- Zero configuration: Works out of the box
- TypeScript native: No compilation step needed
- Hot reloading: Instant feedback during development
- All-in-one: Runtime, package manager, bundler, and test runner
Compatibility
- Node.js APIs: Drop-in replacement for most Node.js code
- npm packages: Compatible with existing npm ecosystem
- Web APIs: Fetch, WebSocket, and other Web APIs built-in
Feature Comparison
| 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) |
Contributing
This crate is not yet implemented. If you're interested in contributing to Bun support in vx, please:
- Check the main project issues
- Join the discussion about Bun runtime and package manager support
- See the contributing guidelines
Alternative Solutions
While this crate is under development, consider these alternatives:
Node.js + NPM (Available Now)
# Use Node.js and NPM for JavaScript development
System Bun
# Use system Bun with vx
Configuration (Planned)
Project Configuration (.vx.toml)
# Planned configuration
[]
= "latest"
[]
= true
= true # Prefer bun over node for JS execution
Bun Configuration (bunfig.toml)
# Planned Bun configuration integration
[]
= "https://registry.npmjs.org/"
= "~/.bun/install/cache"
[]
= true
= true
[]
= true
Use Cases (Planned)
Full-Stack Development
# Frontend + Backend with Bun (planned)
# Development
TypeScript Development
# Native TypeScript execution (planned)
Package Development
# Library development (planned)
Performance Benchmarks (Expected)
Package Installation
# npm (current)
# bun (planned)
Runtime Performance
# Node.js (current)
# Bun (planned)
License
This project is licensed under the MIT License - see the LICENSE file for details.
Related Crates
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)