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

dropin-js

v1.0.1

Published

DropinJS ========

Downloads

2

Readme

DropinJS

Babel? WebPack? No, no more compiling, just drop the damn files into browser make it run.

Motive

The web front end is now conquered by future hi-techs. Developers will be considered not modern if not using babel to do transpiling. Awesome stuff such as React would be hard to use without transpiling.

Transpiling is slow and I'm wasting lots of time each time I need to start or restart webpack. I'm also totally tired with the configuring every time I decieded that I want to use React.

But look, JavaScript ES6 is now supported natively in Chrome which is the only browser I'd care when doing some personal stuff. We've got the cool kids in town, living with generators, arrow functions and template strings are amazing already.

So now, I'm creating this library/toolset to make it even better to work directly in browser.

What you can do with this library

Install the DropinJS developers tool (not required) with npm install dropin-js.

Define module as a generator function in which you may write asynchronous logic as synchronous code by yielding Promises (Just as how you would do in co).

Get a require function to refer to other modules. This require returns a promise so you may use yield to achieve synchronous-like require.

Install npm module or url as a DropinJS module, so you may refer to them in your project.

Just put your files together and open your html file with a modern es6 capable browser directly, no compiling, no packaging, everything just works.

How to work with React

React and other popular modules may be installed to your project using dropin install react or so.

In order to be easily blessed by the JSX syntax, I prepared a modified version of t7.js. Install it with dropin install t7-react.

A full working example can be found in the examples directory within this repo.