August 6th, 2024

Slingcode – App platform in a single HTML file, QR-code transmittable apps

Slingcode is an offline personal computing platform enabling users to create, run, and share web applications without servers. It supports peer-to-peer sharing and aims to simplify coding for beginners.

Read original articleLink Icon
Slingcode – App platform in a single HTML file, QR-code transmittable apps

Slingcode is a personal computing platform encapsulated in a single HTML file, allowing users to create, run, and share web applications without the need for complex tools, servers, or hosting. It operates entirely offline, utilizing the web browser's local storage for app storage. Users can run Slingcode from various devices, including USB sticks and smartphones, and can easily access their applications by adding Slingcode to their home screen. The platform supports peer-to-peer sharing of apps via WebTorrent, ensuring user privacy by allowing selective sharing. Slingcode also enables users to export apps as zip files for transfer between different instances or to upload them to standard web hosting. The creator, Chris McCormick, aims to simplify coding and rekindle the joy of personal computing reminiscent of earlier eras, making it accessible for teaching coding to children. The platform is built using ClojureScript and incorporates various technologies for its functionality, including a web-based code editor and peer-to-peer communication tools. Slingcode is distributed under the MIT license, promoting open-source collaboration.

- Slingcode allows users to create and share web apps without servers or hosting.

- It operates offline, using local storage in web browsers.

- Users can share apps peer-to-peer and export them as zip files.

- The platform aims to simplify coding and make it accessible for beginners.

- Slingcode is built with ClojureScript and various supporting technologies.

Link Icon 9 comments
By @cuttysnark - 2 months
I'm in love, I didn't know I wanted this, and now here it is. With an explanation from the author that touched on things I was feeling but couldn't quite but into words. To ice the cake, saved the file to disk and ran it with WiFi off, just to see. Sure enough, it's all in there, self-contained with no fetched dependencies.

One caveat being that in the file:// protocol URL params don't work e.g. ?app=c53f8e9f-4b7a-4315-bb8a-f6557f6be30b

This is fixed by running a local webserver, which isn't a huge deal. I'd be happy to learn of an easier way.

Thanks for sharing this.

By @turnsout - 2 months
I've built many, many single-file HTML web apps over the years, mostly for internal use. So on that level, I love this!

However, not to be a buzzkill, but I feel like if you're spiritually aligned with this concept, you should just write self-contained vanilla JS. The Preact todo-list demo is not fully local—it downloads Preact from a CDN.

By @dang - 2 months
Related:

Show HN: Slingcode live-reloading web IDE to make, run, and share web apps P2P - https://news.ycombinator.com/item?id=23611505 - June 2020 (11 comments)

By @recursive - 2 months
I absolutely love this idea. The sample apps look cool, but I can't get a new app to work. When I click the '+' button to make a new app, the editor shows me a hello-world index.html. Clicking "Run" results in a blank white pane regardless of whether I target a new tab, or a side-by-side frame. I get the same behavior on a downloaded copy and online.

I'm running Firefox on Windows.

By @rippeltippel - 2 months
This is an awesome tool also for learning the basics of web development.

There's a very nice playlist of tutorials [1] that cover React, Vue, and several cool things that I didn't even think about.

Kudos to Chris for that!

[1] https://www.youtube.com/watch?v=0tONEHy-P7M&list=PL5dyN9XHel...

By @zrkrlc - 2 months
Apparently this was written in ClojureScript. I’m actually a bit surprised by that, since this kind of thing seems perfect for vanilla JS.
By @dmje - 2 months
Available on Yunohost[0] for those as lazy as me.

[0] https://yunohost.org/

By @Lord_Zero - 2 months
A little confused, this is basically a self hosted jsfiddle?
By @prophesi - 2 months
This is great! Is there a demo of how the peer-to-peer sharing works?