Skip to content


Repository files navigation


An implementation of CommonJS modules system for browsers.

This is alpha-version

The library provides an environment for CommonJS modules. Tries to achieve compatibility with the basic mechanisms of Node.js.

The library is not engaged in assembling the project. See, for example, axy-define-asm.


The library does not require any dependencies.


IE 9+ and normal browsers. IE 8 with es5-shim. IE 7 with json-js.

Developed on Node.js 0.12.


  1. Include a single file on the page. axy-define.js or compressed version.
<script src="axy-define.min.js"></script>
  1. PROFIT.

Synchronous / Asynchronous

The browser it is not server. Unlike node.js it can not just take a file from the local file system.

By default, it works as follows. All required modules and data statically included on the page load stage. The library creates the virtual file system and modules work with it as with a local FS.

If you need the dynamic loading of modules, you can define the asynchronous loader.


In addition: