npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

esnextbin

v1.0.0-alpha.3

Published

Prototype JavaScript programs in the browser with ESNext (a.k.a ES2015) syntax and features, using modules from NPM.

Downloads

33

Readme

ESNextbin

Create browser programs with ES2015's latest features and use modules from NPM directly in your browser.

How it works?

  • The code gets transpiled by Babel.js v6 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 ▶ Execute 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. http://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 ▶ Execute 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 ▶ Execute 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:

yarn
yarn start-dev
# visit http://localhost:9292/index-dev.html

or

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

References

Inspired by awesomeness of Babel.js REPL and Requirebin.

Support

We need your support to finish features that will bring the experience of prototyping Javascript apps to the next level:

  • [ ] our own browserify server in order to replace https://wzrd.in (fixes #5)
  • [ ] add console preview
  • [ ] add support for embedding sketches (medium blogs, third-party websites etc.)

And whatever you can imagine! Just create an issue with your suggestions.

Backers

Support us with a monthly donation and help us continue our activities. [Become a backer]

Sponsors

Become a sponsor and get your logo on our README on Github with a link to your site. [Become a sponsor]

build status donate

License

BSD-2-Clause