Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Eirene

Eirene is a simple development server and build tool for Aitne applications. It handles project configuration, asset serving, development workflows, and Hot Module Reloading (HMR), providing a streamlined environment for local development and production builds.

Configuration

Eirene uses a TOML-based configuration file to describe application settings.

The configuration is divided into several sections:

  • app — application metadata and runtime mode
  • build — build targets and output settings
  • server — local development server configuration
  • assets — static resources and script injection

Development Server

Eirene includes a built-in HTTP development server.

When running in development mode, the server serves the generated application bundle directly from the output directory and automatically provides SPA routing fallback behavior. The development server is designed specifically for Aitne applications and integrates tightly with the build pipeline and HMR system.

Hot Module Reloading

When HMR is enabled, Eirene starts a file watcher and a WebSocket endpoint. The watcher monitors project files and automatically rebuilds the application whenever supported source files change.

When a change is detected, Eirene rebuilds the project and notifies all connected browser clients through WebSocket messages. The browser then automatically reloads the application.

This provides a fast development feedback loop without requiring manual page refreshes.