xrforge-v2/README.md

64 lines
2.1 KiB
Markdown
Raw Normal View History

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
2026-07-23 21:34:09 +02:00
* fuzzy search: https://github.com/ssimonp/FuzzySearch-Roblox
2026-07-23 10:01:34 +02:00
* 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
## Developing
```bash
$ source .env # not needed if your system has autoenv
$ build # fast: repeatable build
$ rebuild # faster: lua-repeatable build
$ nix-build # slow: reproducable nix build (for experts)
```
Then run with debug flag to see output of `trace()` calls
```bash
$ DEBUG=1 result/bin/xrforge.com
```
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.