Installation
Install the Hypen CLI and set up your development environment
Installation
The fastest way to get started with Hypen is using the CLI.
Install the CLI
# Using Bun (recommended)
bun install -g @hypen-space/cli
# Using npm
npm install -g @hypen-space/cliCreate a New Project
hypen init my-app
cd my-appThis creates a new Hypen project with:
- A starter component with state and actions
- TypeScript configuration
- A
hypen.config.tsconfiguration file
Start Development Server
hypen devThis starts a hot-reloading development server at http://localhost:3000.
Preview Your App
Hypen Studio
Hypen Studio is a full in-browser IDE for building Hypen apps. It includes a code editor with LSP support, live preview, file browser, and powerful debugging tools — state inspector, action log, time-travel debugging, console, and an integrated terminal.
hypen studioStudio opens at http://localhost:5173. See the Studio documentation for the full feature reference.
Preview on Android and iOS
You can preview your app on a physical device or simulator directly from the CLI:
# Android (requires adb)
hypen run android
# iOS Simulator (requires Xcode)
hypen run iosThe CLI downloads a runner app, detects connected devices, and launches your app with hot reload. Add --studio to open Hypen Studio alongside the device runner — edit in the browser, see changes on the device in real time:
hypen run android --studio
hypen run ios --studioProject Structure
The CLI creates this structure:
my-app/
├── src/
│ └── components/
│ └── App/
│ ├── component.hypen # UI template
│ └── component.ts # Module logic
├── hypen.config.ts # Project configuration
├── package.json
└── tsconfig.jsonCLI Commands
| Command | Description |
|---|---|
hypen init <name> | Create a new Hypen project |
hypen dev | Start development server with hot reload |
hypen build | Build for production |
hypen generate | Generate component imports |
hypen studio | Open Hypen Studio IDE |
hypen run android | Install and launch on Android device/emulator |
hypen run ios | Install and launch on iOS Simulator |
Manual Setup (Alternative)
If you prefer to set up manually:
Web
mkdir my-hypen-app
cd my-hypen-app
npm init -y
npm install @hypen-space/core @hypen-space/web @hypen-space/web-engineSee the Web Adapter docs for detailed web setup.
Android
Add to your build.gradle.kts:
dependencies {
implementation("space.hypen:hypen-android:0.1.0")
}See the Android Adapter docs for detailed Android setup.
iOS
See the iOS Adapter docs for iOS setup.
Requirements
- Node.js 18+ or Bun 1.0+
- Modern browser with WASM support (Chrome, Firefox, Safari, Edge)
IDE Setup
For the best development experience, install the Hypen Language Server:
VS Code / Cursor
- Download the
.vsixfrom releases - Extensions → Install from VSIX
- Select the file and reload
See LSP Documentation for more details.
Verify Installation
hypen --versionYou should see the version number printed.
Next Steps
- Your First App - Build a counter app step by step
- Basics Guide - Learn the Hypen syntax