east-node

内容来源:README.md(说明文档) · 原始地址 · 查看安装指南

原始内容

East Node

Node.js platform integration for the East language

License Node Version

East Node provides Node.js platform functions for the East language. It enables East programs to interact with the filesystem, network, databases, and other I/O operations in Node.js environments.

Packages

Package Description npm
@elaraai/east-node-std Core platform functions (filesystem, console, fetch, crypto, etc.) npm
@elaraai/east-node-io I/O platform functions (SQL, NoSQL, S3, FTP, etc.) npm

Features

east-node-std:

  • FileSystem - Read/write files, manage directories
  • Console - stdout/stderr output, stdin input
  • Fetch - HTTP requests with modern Fetch API
  • Crypto - Random bytes, SHA-256, UUID generation
  • Random - 14 statistical distributions (uniform, normal, poisson, etc.)
  • Time - Timestamps and sleep
  • Path - Cross-platform path manipulation
  • Test - Built-in testing utilities

east-node-io:

  • SQL - SQLite, PostgreSQL, MySQL
  • NoSQL - MongoDB, Redis
  • Storage - S3 and S3-compatible object storage
  • Transfer - FTP and SFTP file transfers
  • Formats - CSV, XML, XLSX parsing

Quick Start

npm install @elaraai/east-node-std @elaraai/east
import { East } from "@elaraai/east";
import { Console, FileSystem, NodePlatform } from "@elaraai/east-node-std";

const MyProgram = East.function([], NullType, ($) => {
    // Write to console
    $(Console.log("Hello from East!"));

    // Read a file
    const content = $.let(FileSystem.readFile("./data.txt"));
    $(Console.log(content));
});

// Execute the program
await NodePlatform(MyProgram, []);

Development

npm install        # Install all workspace dependencies
npm run build      # Build all packages
npm run test       # Run tests for all packages
npm run lint       # Lint all packages

License

Dual-licensed:

Ecosystem

  • East Node: Node.js platform functions for I/O, databases, and system operations. Connect East programs to filesystems, SQL/NoSQL databases, cloud storage, and network services.

  • East Python: Python runtime and platform functions for data science and machine learning. Execute East programs with access to optimization solvers, gradient boosting, neural networks, and model explainability.

  • East UI: East types and expressions for building dashboards and interactive layouts. Define UIs as data structures that render consistently across React, web, and other environments.

  • e3 - East Execution Engine: Durable execution engine for running East pipelines at scale. Features Git-like content-addressable storage, automatic memoization, task queuing, and real-time monitoring.

Links

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