mercuria 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +34 -3
- package/app/app.js +699 -0
- package/app/data/world.json +118288 -0
- package/app/favicon.svg +5 -0
- package/app/index.html +120 -0
- package/app/styles.css +514 -0
- package/bin/mercuria.js +8 -0
- package/netlify.toml +10 -0
- package/package.json +47 -10
- package/scripts/build-nhfn-range.mjs +11 -0
- package/src/cli.mjs +73 -0
- package/src/harness.mjs +183 -0
- package/src/index.mjs +3 -0
- package/src/shared/commands.mjs +247 -0
- package/src/shared/world.mjs +450 -0
- package/index.js +0 -4
package/README.md
CHANGED
|
@@ -1,5 +1,36 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Mercuria
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Mercuria is a world engine: a minimal static shell, a low-friction Node harness, and a CLI that can transform structured ranges into a live terrain for operational intelligence.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## What ships
|
|
6
|
+
|
|
7
|
+
- `mercuria build` compacts an NHFN-style range into a smaller world file for the static app.
|
|
8
|
+
- `mercuria harness` serves the app and exposes a local API and event stream from one VPS-friendly process.
|
|
9
|
+
- `app/` is the static Netlify shell.
|
|
10
|
+
- `src/harness.mjs` is the embeddable runtime surface exported by the package.
|
|
11
|
+
|
|
12
|
+
## Quickstart
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
npm install -g mercuria
|
|
16
|
+
mercuria harness --world ./app/data/world.json --site-dir ./app --port 4177
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Build a world file
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
mercuria build \
|
|
23
|
+
--source /root/first-nations-dashboard-netlify/web/data/compiled/dashboard_dataset.json \
|
|
24
|
+
--out ./app/data/world.json
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Commands
|
|
28
|
+
|
|
29
|
+
- `mercuria build`
|
|
30
|
+
- `mercuria harness`
|
|
31
|
+
- `mercuria serve`
|
|
32
|
+
- `mercuria command "show food gaps"`
|
|
33
|
+
|
|
34
|
+
## Deploy
|
|
35
|
+
|
|
36
|
+
The repository is set up as a static Netlify site with `app/` as the publish directory.
|