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

rubricjs

v0.2.6

Published

An es6 component, entity, system, framework with a minimal core.

Downloads

24

Readme

Rubric.js

Rubric Underpins Better Reusability In Components

An es6 component, entity, system, framework with a minimal core. Rubric was designed with a verbose syntax and naming scheme that focuses on ease of use and clarity. This standpoint was largely inspired by Douglas Crockford's comment to the effect that code is meant to be "read by humans and incidentally run by machines".

It relies on powertrain for its' engine and uses babel and mocha in dev.

Example

There is a barebones 🍖 code example here. The is a running demo of it here, which is pretty boring visually.

Docs

There is a small jsdoc site here.

Better documentation will be coming to the readme very soon. 4/4/17

// Examples to follow shortly

Config File

module.exports = {
    // A useful way to pass things in to input adapters and other utilities
    // In the example implementation mentioned above these keys will have preventDefault() called when they are pressed
    preventKeys: ['up', 'down', 'space', 'left', 'right'],
    // These options will all be passed to Rubric's core engine, Powertrain
    engine: {
        playspeed: 1,
        fps: 60,
    },
    // More on this coming soon 4/4/17
};

Testing Rubric

Testing is done with mocha and chai.

$ npm run test

All tests are written against babel compiled output in the /dist directory.

Code coverage with nyc.

$ npm run coverage

Quick lcov.info generation for line highlighting in your editor via cowboy-hat.

$ npm run cowboy-hat

This will watch for file changes and generate lcovs against /src for relatively fast coverage line highlighting updates.

Feedback ✉️

It is greatly appreciated! 🎉 Please hit me up, I'd love to hear what you have to say!

[email protected]

https://github.com/limeandcoconut

@limeandcoconut

Cheers!

TODO:

  • [ ] Proxy powertrain pause and stop methods through Rubric
  • [ ] Normalize type capitalization in docblocks
  • [ ] Normalize punctuation in errors
  • [ ] Cover the Single responsibility principle in readme

Canceled:

Plugins in general

  • [ ] Consider changing plugin identifiers to uid rather than constructor name
  • [ ] Allow plugins to register for multiple hooks
  • [ ] Switch to dt in engine. This takes advantage of extra renders

Usage Stats

NPM

License

MIT, see LICENSE.md for details.