Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chr15m/slingcode
personal computing platform
https://github.com/chr15m/slingcode
clojurescript editor html ide javascript pwa text-editor web-app web-ide webide webtorrent
Last synced: 3 days ago
JSON representation
personal computing platform
- Host: GitHub
- URL: https://github.com/chr15m/slingcode
- Owner: chr15m
- License: mit
- Created: 2020-03-15T12:34:31.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-08-27T01:23:04.000Z (about 4 years ago)
- Last Synced: 2024-08-04T02:10:16.543Z (3 months ago)
- Topics: clojurescript, editor, html, ide, javascript, pwa, text-editor, web-app, web-ide, webide, webtorrent
- Language: Clojure
- Homepage: https://slingcode.net
- Size: 1.26 MB
- Stars: 374
- Watchers: 15
- Forks: 24
- Open Issues: 30
-
Metadata Files:
- Readme: README.md
- License: license.txt
Awesome Lists containing this project
README
Slingcode is a **personal computing platform** in a [single html file](https://slingcode.net/slingcode.html).
* You can **make, run, and share web apps** with it.
* You don't need any complicated tools to use it, **just a web browser**.
* You don't need a server, hosting, or an SSL certificate to run the web apps.
* You can put Slingcode on a web site, run it from a USB stick, laptop, or phone, and it doesn't need an internet connection to work.
* You can "**add to home screen**" in your phone's browser to easily access your library of programs on the go.
* You can **share apps peer-to-peer** over WebTorrent.
* **It's private**. You only share what you choose.## Try it: [slingcode.html](https://slingcode.net/slingcode.html)
Or right-click on [`slingcode.html`](https://slingcode.net/slingcode.html) and "save link as" to download the HTML file onto your own computer.
### Video
You can find more [screencasts here](https://slingcode.net/screencasts.html).
### About
There is no server component for Slingcode. The apps are stored in the web browser's local storage, completely offline. You can move apps between browsers by using the peer-to-peer send and receive feature. You can also export an app as a zip file and import it into another Slingcode instance, or upload your app onto regular web hosting to deploy it online.
> Your computer. Your software. Your data.
### Nostalgia
Remember when computers were fun? When a kid could type out a BASIC listing from a magazine and make magic with light and sound. When your computer belonged to you and you could understand the software running on it.
![Apple IIe](./public/img/appleIIe.jpg)
I'm trying to recreate that magic with Slingcode. To get rid of all the tooling and dependencies and hosting problems, and make coding fun again. To help you bridge the gap between your idea and running code.
I built it so I can teach my kids to code without all the complex setup you need these days. I'm trying to re-create the simple environment I had when I learned to code with my Mum on an Apple IIe back in the 80s.
### Who
Hi, 👋 I'm Chris and I made this.
You can find me online here:
* [@mccrmx](https://twitter.com/mccrmx)
* [mccormick.cx](https://mccormick.cx/)### Hack & contribute
Slingcode is built with [ClojureScript](https://clojurescript.org/). To get started contributing to Slingcode itself, [check out the codebase](https://github.com/chr15m/slingcode) and run `make`. You'll need Node and Java installed.
### Inspiration
> ...situated software. This is software designed in and for a particular social situation or context. ...a "small pieces, loosely joined" way of making software... Situated software isn't a technological strategy so much as an attitude about closeness of fit between software and its group of users, and a refusal to embrace scale, generality or completeness as unqualified virtues.
-- Clay Shirky, [Situated Software](https://web.archive.org/web/20040411202042/http://www.shirky.com/writings/situated_software.html)
> ...in the original visions of many personal computing pioneers... the PC was intended as personal property – the owner would have total control (and understanding) of the software running on the PC, including the ability to copy bits on the PC at will. Software complexity, Internet connectivity, and unresolved incentive mismatches between software publishers and users (PC owners) have substantially eroded the reality of the personal computer as personal property.
-- Nick Szabo, [Trusted Third Parties are Security Holes](https://nakamotoinstitute.org/trusted-third-parties/)
> The trick is to fix the problem you have, rather than the problem you want.
-- Bram Cohen
> Kakehashi had no musical training, and wanted musical instruments to be accessible for professionals as well as amateurs like himself. He also wanted them to be inexpensive, intuitive, small, and simple.
-- [Wikipedia, Ikutaro Kakehashi](https://en.wikipedia.org/wiki/Ikutaro_Kakehashi)
> ...alternative to the MVP: Simple, Lovable and Complete (SLC)... A skateboard is a SLC product. It’s faster than walking, it’s simple, many people love it, and it’s a complete product that doesn’t need additions to be fun or practical.
-- Jason Cohen, [Make it SLC instead](https://blog.asmartbear.com/slc.html)
### Credits
Thanks to [Crispin](https://twitter.com/epic_castle) and Joel for testing and giving brilliant feedback on early versions.
Some technology and libraries that Slingcode uses:
* ClojureScript and Clojure.
* CodeMirror for the web based code editor component.
* React + Reagent for the rendering of the user interface.
* Jszip for wrangling zip files.
* WebTorrent for peer-to-peer file transfer.
* Niceware for turning hex into phrases.
* bugout for peer-to-peer communication (I wrote this library).
* Tweetnacl.js for cryptography.
* bs58 for managing base 58 addresses.
* localforage for browser side storage.
* zxing for QR code scanning.
* mime-types for managing content types.
* url-search-params for managing query strings.
* shadow-cljs for making the compilation phase simple.
* npm for managing dependencies.
* fontawesome for icons.Thanks!
### Copyright
Slingcode is Copyright Chris McCormick, 2020.
Distributed under the MIT software license. See [license.txt](./license.txt) for details.