This repository has been archived on 2025-08-27 . You can view files and clone it, but cannot push or open issues or pull requests.
5283f383b3b8936570df2630d3b3b7573e27a476
Base Object and Actor Backend
Hero is a program that runs scripts in contexts on behalf of a peer. Hero aims to support a language sufficient to support all of one's digital actions. As such, hero can become a tool of digital sovereignty, allowing people and groups to own their own structured data and functionality to act on it.
Terminology
Term | Definition |
---|---|
Hero | A program that runs scripts in various contexts on behalf of a peer. |
Heroscript | A script that runs in a confined environment on behalf of a peer. |
Rhai | A scripting language integrated into the Hero environment for script execution. |
Core
In its core, a supervisor dispatches jobs to execute scripts to workers over redis. Workers spawn appropriate engine instances to execute scripts within the defined confines of the job.
Components
Supervisor
Component responsible for distributing jobs to workers over Redis.
Engine
A process that runs a script in a confined environment.
Job
A unit of work that executes a Rhai or Hero script.
Worker
An entity that processes jobs dispatched by the supervisor.
Interfaces
Websocket
Unix
Description
Languages
Rust
95.4%
Shell
2.1%
Python
1.6%
HTML
0.5%
V
0.2%
Other
0.2%