[READ-ONLY] Mirror of https://github.com/Schniz/js-playgrounds. Experimental editor agnostic in-line evaluation: like Swift playgrounds, only for JS!
0

Configure Feed

Select the types of activity you want to include in your feed.

JavaScript 96.6%
Less 2.1%
Shell 1.4%
29 1 0

Clone this repository

https://tangled.org/schlez.in/js-playgrounds https://tangled.org/did:plc:co5xsbsnqonxqx6pzimtkw4l
git@tangled.org:schlez.in/js-playgrounds git@tangled.org:did:plc:co5xsbsnqonxqx6pzimtkw4l

For self-hosted knots, clone URLs may differ based on your setup.



README.md

JS Playgrounds#

Experimental editor agnostic in-line evaluation: like Swift playgrounds, only for JS!

Demo in Atom Editor

Underneath, it's a combination of Babel plugin that wraps every expression in a function call so it would save the data. Then it runs it (using node), stores all the console information and returns a JSON result with data for the playground (inspection for each line) and the console. Should be awesome for live coding sessions in your favorite editor.

Eventually, I think the repo could be changed to plain "playgrounds": I want to make everything as agnostic as it can in terms of language, tools and editors.

Packages#

Things I hope to do in the future#

I will accept PRs from others, of course:

  • Vim plugin
  • Atom plugin
  • VSCode plugin
  • CodeSandbox integration (if VSCode isn't enough for that)
  • Reason file support using BuckleScript
  • Ruby? Python?

Development#

This repo uses Yarn Workspaces, so install yarn, and every library we use should hoist to the root of the repo 😸