Compare commits
8 Commits
reverse-pr
...
master
Author | SHA1 | Date |
---|---|---|
Fabien Benetou | 2eedef5398 | 11 months ago |
Fabien Benetou | 3e7aa01e34 | 11 months ago |
Fabien Benetou | f8443bd342 | 1 year ago |
Fabien Benetou | 0712c4e2b5 | 1 year ago |
Fabien Benetou | aabd112c16 | 1 year ago |
Fabien Benetou | a1fc2458c0 | 1 year ago |
Fabien Benetou | e4a27f273d | 1 year ago |
Fabien Benetou | 67460f125d | 1 year ago |
@ -0,0 +1,43 @@ |
||||
# Offtopus, offline-octopus |
||||
|
||||
## Goal |
||||
Provide a way to connect local machines to work and tinker with efficiently, building prototypes with resilience in mind. |
||||
|
||||
## Demo |
||||
|
||||
5min recorded demo video https://video.benetou.fr/w/sHE39WSZkQgfPNDdiypfog |
||||
|
||||
Note that XR is optional. Original extract from https://youtu.be/BRjohy0ruAg?t=2061 for Future of Text demo day. |
||||
|
||||
## How does it work |
||||
It provides a Web server with endpoints for different functions, including listing machines joining that network, make functions available to that new network of machines, sharing files, etc. Note that the point is to build on top of it, consequently functions as endpoints here are solely examples. |
||||
|
||||
## How to install |
||||
1. clone repository |
||||
1. install dependancies (no package.json yet) but mostly express missing, i.e `npm i express` |
||||
1. run e.g `node .` |
||||
1. connect to it locally first, e.g https://localhost:8082 (assumes existing SSL certificates) or https://localhost:8082/routes |
||||
|
||||
Note that the cloudinit file is an example on a brand new machine. |
||||
|
||||
### tested on |
||||
- Linux machines, e.g Ubuntu on desktop, RPi Zero |
||||
- Android devices using Termux, e.g Quest 1 |
||||
- iOS via iSH |
||||
Most likely partially works on Windows with Linux subsystem. System commands, e.g shutdown, xrandr, etc must be adapted. |
||||
|
||||
### Developing and debugging |
||||
- See the console REPL, starting with help() |
||||
- see `/routes/json` to connect to all services |
||||
|
||||
## Digging deeper |
||||
- Future of Text WebXR demo with shared filesystems https://video.benetou.fr/w/h291CfZiezenY1t46cQQo5 extract from https://www.youtube.com/results?search_query=demo+prototype+session |
||||
- hour long video discussion https://video.benetou.fr/w/aR81WVHg6H3E93GPG4jYUg |
||||
- self hosting AI notes https://fabien.benetou.fr/Content/SelfHostingArtificialIntelligence |
||||
- self hosting subreddit https://old.reddit.com/r/selfhosted/ |
||||
- small Web https://ar.al/2020/08/07/what-is-the-small-web/ |
||||
- DWeb https://en.wikipedia.org/wiki/Decentralized_web |
||||
|
||||
### Inspiration |
||||
- Designing for serendipity: supporting end-user configuration of ubiquitous computing environments, Xerox PARC 2002 |
||||
- Providing an Integrated User Experience of Networked Media, Devices, and Services through End-User Composition, 2008 |
@ -0,0 +1,29 @@ |
||||
<!DOCTYPE html> |
||||
<html lang="en"> |
||||
<head> |
||||
|
||||
<meta charset="utf-8" /> |
||||
<meta name="viewport" content="width=device-width, initial-scale=1" /> |
||||
<link rel="icon" href="https://glitch.com/favicon.ico" /> |
||||
<title>offtopus events</title> |
||||
|
||||
</head> |
||||
<body> |
||||
<div id="content"></div> |
||||
<hr> |
||||
<div id="events"></div> |
||||
|
||||
<script> |
||||
const source = new EventSource('/events'); |
||||
|
||||
source.addEventListener('message', message => { |
||||
console.log('Got', message); |
||||
|
||||
// Display the event data in the `content` div |
||||
document.querySelector('#events').innerHTML = event.data; |
||||
}) |
||||
|
||||
</script> |
||||
|
||||
</body> |
||||
</html> |
Loading…
Reference in new issue