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

granlecoja

v0.2.1

Published

RAD build framework for web applications

Readme

granlecoja: opinionated RAD build environment for single page web apps

It integrates several web technologies and methodologies together to accelerate web development.

  • Grunt: build tool
  • Angularjs: MVC framework
  • Less: CSS preprocessor
  • Coffee-script: Javascript language
  • Jade: template engine
  • Bootstrap: css framework
  • require.js: for lazy loading and plug-in system
  • bower: js library

Grunt is a nice and generic tool for creating build system. Its available plug-ins are evolving fast so each time a new plug-in is changing the game you have to update all your projects in order to use it.

Granlecoja is made to solve this problem. just make your web app depend on "latest" version of Granlecoja, and the greatest build tools will automatically be synchronized.

In order to make this promise, Granlecoja needs to make some decision for you. This is why it defines the languages and framework you use, and the organization of your project.

yo

Well known tool Yeoman has similar goals, but it does not provide automatic update of the tools. Only templates and boilerplate generation is done, with no way of upgrading your project.

yo templates using Granlecoja maybe created in the future

Why the name granlecoja

Because it sounds much better than grunt-angular-less-coffee-jade

Configuration

Make your package.js depend on "granlecoja" == "latest"

create a Gruntfile.coffee with only two following lines:

module.exports = (grunt) ->
    require("granlecoja")(grunt, "grunt")

create a "grunt/config.coffee" with the configuration variables:

### ###############################################################################################
#
#   This module contains all configuration for the build process
#
### ###############################################################################################
module.exports =

    ### ###########################################################################################
    #   Directories
    ### ###########################################################################################
    dir:
        # The build folder is where the app resides once it's completely built
        build: 'buildbot_www'

    ### ###########################################################################################
    #   This is a collection of file patterns
    ### ###########################################################################################
    files:
        # Library files
        library:

            # JavaScript libraries. Which javascript files to include, from the
            # one downloaded by bower
            js: [
                'src/libs/jquery/dist/jquery.js'
                'src/libs/angular/angular.js'
                'src/libs/requirejs/require.js'

                'src/libs/angular-animate/angular-animate.js'
                'src/libs/angular-bootstrap/ui-bootstrap-tpls.js'
                'src/libs/angular-ui-router/release/angular-ui-router.js'
                'src/libs/angular-recursion/angular-recursion.js'

                'src/libs/lodash/dist/lodash.js'
                'src/libs/moment/moment.js'
                'src/libs/underscore.string/lib/underscore.string.js'
                'src/libs/restangular/dist/restangular.js'
            ]

You can override more file patterns. See the defaultconfig.coffee for list of patterns available. Normally, only the Javascript libraries are needed to configure.

create a ".bowerrc" with the configuration variables:

{"directory": "src/libs"}

so that your bower dependencies are stored on side of your source code. You also want to configure ".gitignore", to ignore this directory.

Use bower.json as usual to describe your javascript libraries dependancies. You at least need angular.js > 1.2, bootstrap 3.0 and jquery.

Usage

3 grunt targets are created:

  • grunt dev: Use this for development. It will use require.js to load all the modules separatly. It will compile your coffeescript on the fly as you save them. This task only ends when you hit CTRL-C.

  • grunt prod: Use this for production. It will generate a ready for prod build of your application, with all the javascript concatenated and minified.

  • grunt ci: Use this for continuous integration testing. It runs the unit tests in dev and prod mode in a row.

Examples

Granlecoja methodology has been built for the buildbot project, but is very generic, and can be used for any projects.

You can see it in action at https://github.com/buildbot/buildbot/tree/nine/www