Esnextbin
:bento: Prototype apps in the browser with next generation JavaScript and NPM modules
Install / Use
/learn @voronianski/EsnextbinREADME
esnextb.in
<a href="https://www.buymeacoffee.com/voronianski" target="_blank"><img src="https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png" height="20" alt="Buy Me A Coffee" style="height: auto !important;width: auto !important;" ></a>
Prototype JavaScript apps in the browser with ES2015's latest features and importing modules directly from NPM.
<img src="esnextbin-beta-demo.gif" width="650" />
How it works?
- The code gets transpiled by latest standalone version of Babel.js with
stage-0,es2015andreactpresets 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
- ESNextbin interface consists of 2 main sections - "Editor" on the left side and "HTML Preview" on the right side
- There are 3 editor tabs - "Code" (for Javascript), "HTML" (for html layout) and "Package" (
package.jsonthat gets updated automatically when you're executing the code which imports library from npm). Switch editors to manage specific part of your program - Write program in "Code" tab and after you are ready hit
▶ Run Codebutton to see the result - If you have HTML layout or you're manipulating the DOM in your code you'll see the result in "HTML Preview".
- 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?)
Actionsmenu 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 Codebutton) - "Clean session" resets all editors and unauthorizes your GitHub account (if it was connected)
- 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.
- "Editor" section uses default Ace shortcuts
- There are additional shorcuts as well:
Cmd/Ctrl + S- hotkeys for save your code as public gist actionCmd/Ctrl + E- hotkeys for▶ Run CodebuttonCtrl + Alt + F- hotkeys forRun Prettierbutton
Demos
There are several examples for you to play with:
- React Starter App
- Random Star Wars Names
- React Soundcloud Player
- Preact FRP
- Async/await Functions
- React + Redux
- Generators
- D3
- Vue 2.0 + Vuex
- Pixi.js Basic Example
- JSX to document.createElement
- Reactive view with Proxies and virtual-dom
- Unidirectional dataflow with Barracks and virtual-dom
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
<a href="https://www.buymeacoffee.com/voronianski" target="_blank"><img src="https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png" width="150" alt="Buy Me A Coffee" style="height: auto !important;width: auto !important;" ></a>
MIT Licensed
Related Skills
node-connect
342.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
342.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.7kCommit, push, and open a PR
