HypenHypen
Getting Started

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/cli

Create a New Project

hypen init my-app
cd my-app

This creates a new Hypen project with:

  • A starter component with state and actions
  • TypeScript configuration
  • A hypen.config.ts configuration file

Start Development Server

hypen dev

This 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 studio

Studio 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 ios

The 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 --studio

Project 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.json

CLI Commands

CommandDescription
hypen init <name>Create a new Hypen project
hypen devStart development server with hot reload
hypen buildBuild for production
hypen generateGenerate component imports
hypen studioOpen Hypen Studio IDE
hypen run androidInstall and launch on Android device/emulator
hypen run iosInstall 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-engine

See 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

  1. Download the .vsix from releases
  2. Extensions → Install from VSIX
  3. Select the file and reload

See LSP Documentation for more details.

Verify Installation

hypen --version

You should see the version number printed.

Next Steps