GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - LiaScript/share: The page behind liadev --share: a LiaScript DevServer with its AI chat, shared over WebRTC

BranchesTags
Open more actions menu

Latest commit

 

History

8 Commits
8 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
index.html
index.html
 
 
lia-rtc.mjs
lia-rtc.mjs
 
 
lia-share-relay.html
lia-share-relay.html
 
 
lia-share-relay.js
lia-share-relay.js
 
 
lia-share-sw.js
lia-share-sw.js
 
 
lia-share.js
lia-share.js
 
 

Repository files navigation

LiaScript Share

The page behind the links of liadev --share: it opens a LiaScript DevServer that runs on somebody else's machine, with its courses and its AI chat, over WebRTC.

https://liascript.github.io/share/#room=…&key=…

No server sees the content. The page finds the DevServer through the y-webrtc signalling servers of LiaScript (signaling.json, with TURN servers in ice.json for phones behind the NAT of their carrier), which only carry the handshake sealed with the key of the link; after that the data goes end to end encrypted (DTLS) between the two machines. Room and key are in the part of the link after #, which the browser never sends to a server.

How it works: index.html with lia-share.js dials the DevServer in the room and shows it in a frame; lia-rtc.mjs is the signalling and the framing of the data channel, the same module the DevServer uses. The service worker lia-share-sw.js hands every request of that frame to the page, which sends it over the data channel and streams the answer back. lia-share-relay.html does the same for web pages in the chat, under a second origin, so that a web page never reaches the chat. The UI of each tab lives below tab-<id>/, so two logins in one browser (liadev --users) never cross: the service worker asks every share tab, and the one with that id answers.

This is an experiment. The files are copied from share/ of the DevServer repository, change them there.

About

The page behind liadev --share: a LiaScript DevServer with its AI chat, shared over WebRTC

liascript.github.io/share/

Topics

liascriptoerwebrtc

Resources

Readme
MIT license
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.