@hyperpackai/cli
v0.3.0
Published
HyperPack CLI — hyperpack dev, build, preview commands.
Maintainers
Readme
HyperPack CLI
Modern frontend build tool and dev server with esbuild, HMR, and plugin API.
Features
- Fast Build — Powered by esbuild with native ESM
- Sub-ms HMR — Hot module replacement with state preservation
- Zero Config — Works out of the box with sensible defaults
- Plugin API — Extend build with custom plugins
- Development — Built-in dev server with file watching
- Production — Optimized builds with tree-shaking and code splitting
- Diagnostics —
doctorcommand checks project setup
Installation
npm i -D @hyperpackai/cliOr globally:
npm i -g @hyperpackai/cliQuick Start
# Create a new app
npx @hyperpackai/create-hyperpack my-app
cd my-app
npm install
# Start development server
npm run dev
# Build for production
npm run build
# Preview production build
npm run previewCommands
# Development server
hyperpack dev --open
# Production build
hyperpack build --analyze
# Preview production build
hyperpack preview --port 5000
# Check project setup
hyperpack doctor
# Show all package versions
hyperpack versions
# Inspect resolved config
hyperpack inspect --json
# Clean cache and dist
hyperpack clean --allConfiguration
Create hyperpack.config.ts:
export default {
entry: "src/main.tsx",
jsxImportSource: "@hyperpackai/hyperion",
plugins: [
// Custom plugins
],
};Plugins
Extend the build with plugins:
export default {
plugins: [
{
name: "my-plugin",
async resolveId(id) {
if (id === "virtual-module") return id;
},
async load(id) {
if (id === "virtual-module") return "export default {}";
},
},
],
};Documentation
License
MIT
