npm.io
1.0.26 • Published 4d ago

@elaraai/e3-ui

Licence
AGPL-3.0-or-later
Version
1.0.26
Deps
1
Size
1.4 MB
Vulns
0
Weekly
1.3K

East UI

UI component library for the East language

License Node Version

East UI provides typed UI component definitions for the East language. Components return data structures describing UI layouts rather than rendering directly, enabling portability across different rendering environments.

Packages

Package Description npm
@elaraai/east-ui Core UI component definitions npm
@elaraai/east-ui-components React rendering with Chakra UI npm
east-ui-preview VSCode extension for live preview Marketplace

Features

  • Layout - Box, Stack, Grid, Splitter, Separator
  • Typography - Text, Code, Heading, Link, Highlight, Mark, List, CodeBlock
  • Buttons - Button, IconButton with variants
  • Forms - Input, Select, Checkbox, Switch, Slider, Textarea, TagsInput, FileUpload
  • Collections - Table, DataList, TreeView
  • Charts - Area, Bar, Line, Pie, Radar, Scatter, Sparkline, BarList, BarSegment
  • Display - Badge, Tag, Avatar, Stat, Icon
  • Feedback - Alert, Progress
  • Disclosure - Accordion, Tabs, Carousel
  • Overlays - Dialog, Drawer, Popover, Tooltip, Menu, HoverCard, ToggleTip, ActionBar

Quick Start

npm install @elaraai/east-ui @elaraai/east
import { East } from "@elaraai/east";
import { Stack, Text, Button, UIComponentType } from "@elaraai/east-ui";

const MyComponent = East.function([], UIComponentType, () => {
    return Stack.Root([
        Text.Root("Hello, World!", { fontSize: "xl", fontWeight: "bold" }),
        Button.Root("Click Me", { variant: "solid", colorPalette: "blue" }),
    ], { gap: "4" });
});

Development

# Install dependencies
npm install

# Build all packages
npm run build

# Run tests
npm test

# Run linter
npm run lint

Claude Code plugin

The East ecosystem also ships a Claude Code plugin — East language skills, example search, and preemptive diagnostics for East code — installed separately from the elaraai marketplace:

# Inside Claude Code
/plugin marketplace add elaraai/east-workspace
/plugin install east@elaraai
# From a terminal
claude plugin marketplace add elaraai/east-workspace
claude plugin install east@elaraai

License

Dual-licensed:

Ecosystem
  • East: Statically typed, expression-based language with serializable IR. Run portable logic across TypeScript, Python, C, and other runtimes.

    • @elaraai/east: Core language SDK with type system, expressions, and reference JS compiler
  • East Node: Node.js platform functions for I/O, databases, and system operations.

  • East C: C11 native runtime for executing East IR. Distributed via npm (launcher + per-platform optional dependencies) and as tarballs on each GitHub Release.

    • @elaraai/east-c-cli: npm launcher — installs the matching native binary as an optional dependency
    • east-c: Core runtime — type system, IR interpreter, builtins, serialization (Beast2, JSON, CSV, East text)
    • east-c-std: Console, FileSystem, Fetch, Crypto, Time, Path, Random
    • east-c-cli: CLI for running East IR programs natively
  • East Python: Python runtime, standard platform, I/O, and data-science platform functions. Published to PyPI.

    • east-py: Core Python runtime — type system, IR compiler, 212+ builtins, Cython-accelerated hot paths
    • east-py-std: Console, FileSystem, Fetch, Crypto, Time, Path, Random
    • east-py-io: SQLite, PostgreSQL, MySQL, MongoDB, Redis, S3, FTP, SFTP, XLSX, XML, compression
    • east-py-cli: CLI for running East IR programs in Python
    • east-py-datascience (PyPI) + @elaraai/east-py-datascience (npm): Optimization (MADS, Optuna, ALNS, GoogleOR), ML (XGBoost, LightGBM, NGBoost, PyTorch, Lightning, GP), Bayesian inference (PyMC), explainability (SHAP), conformal prediction (MAPIE)
  • East UI: Typed UI component definitions and React renderer, plus VS Code preview.

  • e3 — East Execution Engine: Durable execution engine for running East pipelines at scale. Git-like content-addressable storage, automatic memoization, reactive dataflow, real-time monitoring.

About Elara

East is developed by Elara AI Pty Ltd, an AI-powered platform that creates economic digital twins of businesses that optimize performance. Elara combines business objectives, decisions and data to help organizations make data-driven decisions across operations, purchasing, sales and customer engagement, and project and investment planning. East powers the computational layer of Elara solutions, enabling the expression of complex business logic and data in a simple, type-safe and portable language.


Developed by Elara AI Pty Ltd.


Developed by Elara AI Pty Ltd - Powering the computational layer of AI-driven business optimization.

Keywords