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 🙏

© 2026 – Pkg Stats / Ryan Hefner

nimble-elements

v0.1.53

Published

Lightweight Web Application Framework - 2015.11.02

Readme

An easy to use web application compiler

* easy <custom-tags></custom-tags>

* standard npm packages

* newer javascript features (ES6)

* a single index.html distributable

install

sudo npm i -g nimble-elements

setup

> mkdir myproject
> cd myproject

> nimble --bootstrap

compile/run

> nimble 

view your application by browsing to _build/index.html

tip:

npm i -g live-server
live-server --wait=350 _build

About Nimble Elements

Nimble Elements is fortified with

- babelify
- browserify
- directory based custom elements

Bringing to your browser based application

- new javascript features
- npm packages
- <custom-tags></custom-tags>

Bundled into a single index.html file

From a collection of element files and objects (files and folders)

+ [myproject]


	+ [display-box]         ( <display-box></display-box> )
		| body.html
		| created.js
		| left.html
		| right.html


	+ [hello-widget]        ( <hello-widget></hello-widget> )
		| body.html
		| created.js


	+ [x-main]              ( <x-main></x-main> )
		| body.html
		| created.js


	- index.html

Each sub-directory automatically generates a shadom dom based custom html element which can be used anywhere in your project

 for example the hello-widget directory generates a <hello-widget></hello-widget> element

element sub-directory contents

	- created.js -- called each time an instance of it's element is created. 
	- *.html file content is provided to created.js as a this[*] / this.* property.  (e.g. body.html > this['body'])

created.js sample code

// created.js code is called each time an instance of it's element is created. 

// "this" is the instance of the created element.
// var dom = the element's shadow dom object.  (defaults to body.html)

var $ = require('jquery')       // include npm packages
var _ = require('underscore')

// *.html file content maps to this.* / this['*']
var l = this.left    // left.html contents
var b = this.body    // body.html contents
var r = this.right   // right.html contents

dom.innerHTML = l+b+r  // provide content

// when an instance is attached or detatched from the dom
this.attached = function(){ console.log('hi!') }
this.detached = function(){ console.log('bye!') }

this.onclick = e=>{ console.log('poke.') }

var x = this.getAttribute('x')

$('h1',dom).textContent(x)

body.html sample code

<style>
	:host {display: block}
</style>

Hello World!

index.html - Your app begins with a single index.html file in your project root.

<!doctype html>
<html>
	<head>
		<title>My Project</title>
	</head>
	<body>
		<x-main></x-main>
	</body>
</html>

npm packages

Many standard npm packages can be added to your application

npm i --save package-name

And included using require

var p = require('package-name')

application requirements

Applications use relatively new html features

That run natively in supporting browsers (as of Oct 2015)

  • Chrome
  • Opera
  • (Firefox - with a flag setting)

try it out! - sample code (run from an empty directory)

nimble --bootstrap myproject

learn more

nimble --help

final words, notes & suggestions

Nimble elements goes well with electron

Currently under early development... questions, comments, requests welcome.

Thanks for using nimble-elements!