github1s icon indicating copy to clipboard operation
github1s copied to clipboard

How does this work?

Open notpushkin opened this issue 5 years ago • 5 comments

Thank you for the project, it is really neat!

I assume it is quite different from things like https://github.com/cdr/code-server or gitpod.io, and that it works entirely in the browser – am I correct? If so, how is it done?

notpushkin avatar Feb 10 '21 13:02 notpushkin

Would like to know more as well.

pratik-chakravorty avatar Feb 10 '21 13:02 pratik-chakravorty

Also, who pays for the servers?

Samuel-Martineau avatar Feb 10 '21 15:02 Samuel-Martineau

Replace "github" with "github1s" in a public repo URL to get access to a read only vscode viewer. Lots of people clone a repo just to look through it with vscode, so this makes it possible in browser. It does not have editing capabilities, it's just a read only viewer.

It differs from the likes of gitpod (and github workspaces) because gitpod allows editing and committing.

sigaloid avatar Feb 10 '21 15:02 sigaloid

It is a static web application that is served via the Fastly CDN from a Varnish cache. Your browser is making direct API calls to Github for listing and viewing files.

simukka avatar Feb 10 '21 15:02 simukka

There is a dedicated doc to discuss how it works https://github.com/conwnet/github1s/blob/master/docs/guide.md

Thank you all for bringing up the question and answers!

xcv58 avatar Feb 11 '21 18:02 xcv58