Skip to content
🍱 Prototype apps in the browser with next generation JavaScript and NPM modules
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
public add small screens support Nov 19, 2018
src return back to wzrd.now.sh May 3, 2019
.babelrc update babel configuration and webpack Nov 13, 2018
.editorconfig fix lint May 15, 2017
.eslintrc use wzrd.now.sh for now Nov 14, 2018
.gitignore change structure Nov 14, 2018
.prettierignore add prettierignore Nov 14, 2018
.travis.yml
README.md readme Nov 21, 2018
devServer.js change structure Nov 14, 2018
esnextbin-beta-demo.gif fix gif May 15, 2017
favicon.ico ico Jan 30, 2016
package-lock.json update dependencies Apr 24, 2019
package.json update dependencies Apr 24, 2019
postcss.config.js add custom gist description, safety key bindings and more Nov 14, 2018
webpack.config.js containers rewrite Nov 15, 2018

README.md

esnextb.in

GitHub Tags Buy Me A Coffee

Prototype JavaScript apps in the browser with ES2015's latest features and importing modules directly from NPM.

How it works?

  • The code gets transpiled by latest standalone version of Babel.js with stage-0, es2015 and react presets enabled
  • Browserify-CDN is responsible for importing npm modules and browserifying them on the fly
  • Github Gists are used for saving and sharing code sketches

Under the hood it's pure client-side application which is hosted on GitHub pages and is built upon React.js.

Usage

Explore latest JavaScript features with the help of several useful npm modules and when you're ready just save the result and share the link with your team mates or community.

Guide

  1. ESNextbin interface consists of 2 main sections - "Editor" on the left side and "HTML Preview" on the right side
  2. There are 3 editor tabs - "Code" (for Javascript), "HTML" (for html layout) and "Package" (package.json that gets updated automatically when you're executing the code which imports library from npm). Switch editors to manage specific part of your program
  3. Write program in "Code" tab and after you are ready hit ▶ Run Code button to see the result
  4. If you have HTML layout or you're manipulating the DOM in your code you'll see the result in "HTML Preview".
  5. But all logging, errors and warnings that appear in runtime could be seen ONLY in your browser's console (maybe it's necessary to add "Console" tab?)
  6. Actions menu provides:
    • saving your code as public and private gists which can be easily shared by copy/pasting link that contains gist id as query param, e.g. https://esnextb.in?gist=<ID> (please notice that these actions require GitHub account authorization)
    • "Enable/Disable Autorun" toggles autorunning feature (when it's enabled, the code will be executed after 1s every time when you stop typing without pressing ▶ Run Code button)
    • "Clean session" resets all editors and unauthorizes your GitHub account (if it was connected)
  7. "Editor" section uses default Ace shortcuts
  8. There are additional shorcuts as well:
    • Cmd/Ctrl + S - hotkeys for save your code as public gist action
    • Cmd/Ctrl + E - hotkeys for ▶ Run Code button
    • Ctrl + Alt + F - hotkeys for Run Prettier button

Demos

There are several examples for you to play with:

Contributing

Please suggest what can be improved, report a bug or ask for a missed features while raising an issue.

Development

Clone this repo and run these commands inside it:

npm i
npm run dev
# visit http://localhost:9292/index-dev.html

References

Inspired by awesomeness of Babel.js REPL and Requirebin.

Support

Buy Me A Coffee


MIT Licensed

You can’t perform that action at this time.