I've made a site for socially developing OSs to run in the browser. I just built a chat demo app to show what it can do.

1    31 Dec 2018 13:44 by u/fusir

The goal is ultimately bring multiple projects built on the site into one more comprehensive software, called JSos. But for now I launched an almost pure front end chat application.

Go to https://js.lifelist.pw

Edit build and add chat to one line.
The edit init and add startChat(); to one line.

Then run it. All of what you see is something you can make just by editing the global item, and anyone can incorporate it. No back end development. You could build anything. A youtube, a Voat. Anyone can edit any application just by re-declaring one function and adding their username to the build.

I couldn't censor you if I wanted to because not only can I not control what data is on an application, I can't even control what kind of applications are on it and how you rebuild them.

4 comments

0

I need to make it easier for users to read each other's code though, because that's kind of the point.

Here is the chat client's code, for reference if you want to change any function in your globals:
https://pastebin.com/Q5gynyUT
Here is the chat server's code (run's front end):
https://pastebin.com/W06L3J6y

It could be built far more serverless (no front end server peers) but this is what I wrote in two hours as a demo.

If it doesn't run the server probably needs to be run.
user:chat-server
pass:chat-server
and run it. I have the code backed up in case someone fucks with it.

0

The obvious thing to edit is the appearance. Go ahead and give it a try.

Just rewrite init_chat_ui and then include your username in the build and run it.

Bonus points if you split apart the css and html in your version.

0

That's really cool. Lately I got really interested in programming. Accidently found a Clockwise Software application development company's blog, read a few articles and after that started taking Udemy cources, hanging out more with my friends who are invilved in IT and the whole thing is fascinating to me. I'd love to become a developer some day but sadly, it won't be soon. I see how much info I need to consume and how many things I need to learn and it seems nearly impossible at this point.

0

Well I've definitely made some improvements. There is now an #import statement. The key is to not mind using more than one user.

I just need to set it up so you can browse other user's code. If you check back in a bit there will be a links panel to the left that will help you find things to import from and faq and other things. Right now the getscript user is good to pull from. It allows you to pull any script off the web and include it in your project with a callback once it's loaded.

#import getscript
function start () {
 //Import pdf.js
 getscript('https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.0.943/pdf.min.js',()=>{
  //some code
 });
}

Also getscripts takes an array of urls and is inside the getscript user.

The monaco user lets you insert a highly capable text editor into the browser.

You can see it at work by putting notebook in your build and running startNotebook() in the init.

Also monaco is the text editor you see when you edit code.