JavaScript Workflow Tooling For Web

Mod.js is a task-basedworkflow 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 Gruntplugins, with literally hundreds of plugins to choose from


Mod.jsis 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 servertask.    


Mod is an open-source project by Tencentwhich 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 MITlicense.





  • tmodjs-syd

    Template Compiler TmodJS 项目停止维护:由于作者停更,导致node升级后出现一些问题,所以在源代码基础上做了一点修改,如下: (1) 升级到高版本的node后,path...

    1 年前
  • tmodjs

    Template Compiler TmodJS 项目停止维护 TmodJS(原名 atc)是一个简单易用的前端模板预编译工具。它通过预编译技术让前端模板突破浏览器限制,实现后端模板一样的同...

    8 个月前
  • gmodjs

    Template Compiler GmodJS 声明:此工具是在 TmodJS( 基础上修改而来,详细用法请参考 TmodJS(h...

    1 年前
  • alan-tmodjs

    Template Compiler TmodJS alan修改地方 1. 支持namespace 2. use strict 模式支持 3. 支持cmd/amd模式下合并代码 Tm...

    9 个月前


扫码加入 JavaScript 社区