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

tyke

v1.2.2

Published

Tycode CoffeeScript build utility

Downloads

8

Readme

Instant CoffeeScript build utility. No Cakefiles required!

Install via npm

$ npm -g install tyke

Build any package in working directory

$ tyke build

Clean any package in working directory

$ tyke clean

Yes, it builds itself

So you can upgrade by doing:

$ git clone git://github.com/tycode/tyke.git
$ cd tyke
$ tyke build

and then copying/symlinking lib/main.js wherever you need it.

Prerequisites

If you want to use Tyke, you'll need to stick to a simple directory structure:

  • /package.json - must be a valid JSON file and include a valid version number
  • /src - your .coffee files
  • /lib - generated .js files go here, don't put anything here yourself or it'll be deleted
  • /bin - symlinks to executable .js files, again, don't put anything here yourself

To make a .js file executable and appear in /bin, use chmod to set the execute bit on the corresponding .coffee file.

Including more .js files

Put something like this on a line by itself (and not the first line of the file):

#~=(tyke include /path/to/package/lib/file.js)=~#

the path must be absolute and should point to a .js file in a lib/ directory. Maybe in future, relative paths will work.

Building lots of packages at once

Just put all your packages in another parent directory, and put the following in a package.json file in that parent directory:

{
  "x_tyke_mp": true
}

Then run tyke build or tyke clean from that parent directory as required. You can even nest them!

Generating files by running arbitrary commands

Put something like this in your package.json:

"x_tyke": {
  "tasks": [{
    "postbuild": {
      "target": "lib/hello.txt",
      "generator": "echo Hello, World! > %target%"
    }
  }, {
    "build": {
      "tasks": ["build", "postbuild"]
    }
  }, {
    "postbuild": false
  }]
},

This makes sure that whenever you run tyke build, it creates lib/hello.txt by running the specified command.

In more detail, it works by first creating a task called "postbuild" which actually does that, then recreates the task "build" to do the original build followed by postbuild, then deletes the postbuild task so you can't just run it with "tyke postbuild".

You can actually create any tasks you like this way, run them before instead of after, and so on.

Dependencies

Tyke will pay attention to the dependencies: key in your package.json and make sure they get built first, if they're in the same directory. This won't work with nested mp directories yet, though.

It'll also ensure that if you include a .js file from the same package, the file to be included gets compiled before the file that includes it.

It'll even do the clean operation in the reverse order! Even though this isn't yet really necessary...

License

3-clause BSD.