A lightweight virtual machine management system built with Bun, React, and Vite.
- 🖥️ VM lifecycle management (create, start, stop, delete)
- 📊 Real-time VM status monitoring
- 🔌 WebSocket-based console access
- 🎨 Modern React frontend with Tailwind CSS
- ⚡ Fast development with Vite HMR
Backend:
- Bun - JavaScript runtime & package manager
- Drizzle ORM - TypeScript ORM
- SQLite - Database
Frontend:
- React 19 - UI library
- Vite - Build tool & dev server
- TanStack Query - Data fetching
- React Router - Routing
- Tailwind CSS - Styling
- Bun v1.3.6 or later
bun installStart the backend server:
bun run devStart the frontend dev server (with HMR):
bun run dev:clientInitialize the database:
bun run db:initGenerate migrations:
bun run db:generatebun run buildbun run previewvms/
├── src/
│ ├── client/ # React frontend
│ │ ├── components/ # Reusable UI components
│ │ ├── routes/ # Page components
│ │ ├── hooks/ # Custom React hooks
│ │ ├── lib/ # Utilities
│ │ └── styles/ # CSS styles
│ ├── server/ # Bun backend
│ │ ├── db/ # Database schema & migrations
│ │ ├── drivers/ # VM drivers (Cloud Hypervisor, Nomad)
│ │ ├── routes/ # API routes
│ │ ├── services/ # Business logic
│ │ └── middleware/ # HTTP middleware
│ └── shared/ # Shared types & config
├── docs/ # Documentation
└── vite.config.ts # Vite configuration
MIT