Docs

Getting Started

Elena is an open-source library designed for modern web applications with a focus on performance and extensibility.

# First Steps

import { createApp } from '@elenebelo/core';
const app = createApp();
app.start();

Key Features:

  • Modular architecture
  • React-like API surface
  • Built-in internationalization

Installation

NPM

Use package manager of choice

npm install @elenebelo/core @elenebelo/ui

CDN

For quick prototyping

<script type="module" src="https://cdn.elenebelo.com/core/latest.js"></script>

Core Concepts

Core Principles

Declarative API

Describe what your application should look like at any point in time.

Component-Based

Build encapsulated components that manage their own state.

Flexible

Integrate with any build tool or framework.

Architecture Overview

Architecture overview diagram

API Reference

Core API Methods

Method Description Example
createApp() Initializes a new application instance const app = createApp();
render() Renders component to DOM render();
useState() Manages component state const [count, setCount] = useState(0);

Hooks

State hooks