This commit is contained in:
Timur Gordon
2025-08-01 00:01:08 +02:00
parent 32c2cbe0cc
commit 8ed40ce99c
57 changed files with 2047 additions and 4113 deletions

View File

@@ -1,4 +1,4 @@
# Hero
# 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.
@@ -12,11 +12,11 @@ Hero is a program that runs scripts in contexts on behalf of a peer. Hero aims t
## Core
In its core, a [dispatcher](#dispatcher) dispatches jobs to execute scripts to [workers](#worker) over redis. Workers spawn appropriate engine instances to execute scripts within the defined [confines]() of the job.
In its core, a [supervisor](#supervisor) dispatches jobs to execute scripts to [workers](#worker) over redis. Workers spawn appropriate engine instances to execute scripts within the defined [confines]() of the job.
### Components
#### [Dispatcher](./core/dispatcher)
#### [Supervisor](./core/supervisor)
Component responsible for distributing jobs to workers over Redis.
@@ -30,7 +30,7 @@ A unit of work that executes a Rhai or Hero script.
#### [Worker](./core/worker)
An entity that processes jobs dispatched by the dispatcher.
An entity that processes jobs dispatched by the supervisor.
## Interfaces