Publishing VibeTunnel to npm
This guide helps the repository owner publish VibeTunnel to npm as a standalone package.Prerequisites
- npm account with publish access to
vibetunnel - Node.js 22+ installed
- Docker installed (for Linux builds)
Publishing Checklist
1. Update Version
2. Build for npm
3. Test Locally
4. Publish to npm
5. Verify Publication
Package Configuration
The package is configured with:- Name:
vibetunnel(unscoped) - Main:
lib/cli.js(entry point) - Bin:
vibetunnelcommand - Platforms: macOS (x64, arm64) and Linux (x64, arm64)
- Node: Requires Node.js 22+
What Gets Published
The npm package includes:- ✅ Compiled JavaScript (
lib/) - ✅ Web UI files (
public/) - ✅ CLI binary (
bin/vibetunnel) - ✅ Prebuilt native binaries (
prebuilds/) - ✅ README files (README.md, README.npm.md, README.standalone.md)
- ✅ Dockerfile for containerization
- ✅ Postinstall scripts
- ❌ Source TypeScript files
- ❌ Test files
- ❌ Development configs
- ❌ Mac/iOS app code
Version Management
Follow semantic versioning:- Patch (1.0.x): Bug fixes, small improvements
- Minor (1.x.0): New features, backward compatible
- Major (x.0.0): Breaking changes
1.0.0-beta.Xfor beta releases1.0.0for first stable release
Troubleshooting
Build Fails
Missing Prebuilds
Permission Denied
Already Published Version
Post-Publishing
After successful publication:- Test with npx:
npx vibetunnel --version - Update documentation: Add npm badge to main README
- Create GitHub release: Tag the version
- Announce: Twitter, Discord, etc.
Automation (Future)
Consider setting up GitHub Actions:Support
For issues with publishing, check:- npm documentation
- GitHub issues
- npm support: support@npmjs.com