Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including modjs with all npm packages installed. Try it out:

var modjs = require("modjs")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

modjs v0.4.8

JavaScript Workflow Tooling For Web


NPM version Build Status

Mod.js is a task-based workflow tooling for web, it helps developers quickly build robust and high-performance HTML5 applications.

Why Mod.js?

  • Focus on the workflow of web development
  • Much built-in tasks, most pleasant out-of-the-box experience
    • Built-in source minify: JS, CSS, HTML
    • Built-in modular JS compile: AMD, CMD (will support ES6 Module, CommonJS Module soon)
    • Built-in CSS @import file combination
    • Built-in source stripping, automatically remove debugging code
    • Built-in basic file operation: cat, rm, mv, mkdir, cp, rev
    • Built-in file watcher, trigger custom tasks when file change
  • More simplicity plugin mechanism, auto-install plugins
  • Configuration less(even zero), do more
    • Build by html: mod build index.html
  • Compatible with Grunt plugins, with literally hundreds of plugins to choose from


Mod.js is installed using NPM(Node Package Manager)

$ npm install modjs -g



Quick Build Demo

Built-in Task Examples

Plugins Examples

IDE Support

Platform Support

Mod support Windows, OS X, Linux...

Issue Submission

Submit a new issue.

Release History

  • 2014-02-28 v0.4.6 Fix r.js build error.
  • 2014-02-20 v0.4.5 Remove built-in server task.


Mod is an open-source project by Tencent which builds on top of Node.js. We utilize a number of useful open-source solutions including:

  • UglifyJS
  • CleanCSS
  • HTMLMinifiler
  • RequireJS

Used by people within (JOIN US)



Mod.js is released under a MIT license.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free