Add Webview to any replit

I can use webview in the HTML replit, but in other replits this tool is missing. How can I add it? (I want it on ruby, to use Jekyll)

As soon as you start a website in that repl on 0.0.0.0 this will become available, if you haven’t made a webserver yet, it will only become available once you run it.

4 Likes

Yes. Once you run a Repl that generates a website, the webview should appear. This is the case with Repls made using JavaScript with HTML (as opposed to HTML with JavaScript), and with Python FLask Repls.

1 Like

Do you mean Node.js?

Actually, anything that opens a socket on 0.0.0.0 will work, so any language that works on replit can be hosted with webview

3 Likes

IDK what I mean but I used a template and that’s how https://replit.com/@CoderElijah/CoderElijah works. It is run by a JS file and that JS file uses HTML files which use a different JS file for normal stuff. IDK what it is but it works really well.

That is nodejs

That is normal, web-based js

4 Likes

What is the code? i do not have index.html.

What language are you using?

2 Likes