xrforge-v2/README.md

55 lines
1.9 KiB
Markdown
Raw Normal View History

2026-05-15 13:22:33 +02:00
```
$ source .env # not needed if your system has autoenv
2026-07-21 19:19:52 +02:00
$ util/xrforge.sh build # fast: repeatable build
2026-05-15 13:22:33 +02:00
$ nix-build # slow: reproducable nix build (for experts)
```
2026-05-15 23:57:23 +02:00
NOTES:
```
/admin.lua <--- define other instances..for CORS allow / mount http
configure in-zip or filesystem-cache
opendirectory.lua <--- mount other instances over http (via xrforge or rclone)
2026-07-23 10:01:34 +02:00
.xrforge/hook/scandir <-- event to hook
2026-05-15 23:57:23 +02:00
scan files
---------- middleware/xrexperience.lua
| events: ---------------------
+ file type: sidecarfile
+ sidecarfiles ---> regex = {"\.glb", "\.png", "\.vtt"}
| regex_minmatch = 2
+ folder viewer = /view/janusweb/#janus.url=${file}.glb
template = [[
<div class="tile"> ... </div>
]]
```
2026-07-21 19:19:52 +02:00
2026-07-23 10:01:34 +02:00
## Ideas
* landingpage = /about
* scan functions in xrforge.lua / .xrforge
* video-hover: https://codepen.io/coderofsalvation/pen/YPNOyqx
2026-07-21 19:19:52 +02:00
## Scan manyfold
-------------
```
manual scan (via cli?)
curl -L -X 'GET' 'http://xrforge.isvery.ninja/models?page=1&order=name' -H 'accept: application/vnd.manyfold.v0+json'
curl -L -X 'GET' 'http://xrforge.isvery.ninja/models?page=1&order=recent' -H 'accept: application/vnd.manyfold.v0+json'
```
2026-07-22 18:36:02 +02:00
## Permacomputing Spirit
* developed on [Dillo](https://dillo-browser.github.io/) as lowest common denominator / compatibility
2026-07-23 10:01:34 +02:00
* does not use javascript (WebXR viewer being the exception)
* gracefully degrades to admin/filebrowser for &gt;noscript&gt;/potato-browsers
2026-07-22 18:36:02 +02:00
* server is using lua-scripting via cosmopolitan libc's [redbean](https://redbean.dev)
2026-07-23 10:01:34 +02:00
> So yes, the codebase/html/css is intentionally 90-ish: that's **exactly why it works** on potato-devices AND modern devices.