Note: FuseJS is currently in alpha. This means that the API is incomplete, buggy, and not intended for production use.
FuseJS is the first framework to use cross-browser sandboxed natives. This allows the extension of
RegExp core objects, without polluting the native objects of the host environment.
FuseJS emphasizes browser capability testing, method forking, and lazy method definition for maintainability and performance. Modules and adapters are designed to allow customized builds, including one of eight supported CSS selector engines1. FuseJS also follows ECMA 2.62 (5th edition) specifications, supports minification, and plans to add inline documentation.
Additionally, FuseJS will feature framework emulation2 by creating a shell of the target framework and mapping all API calls to the FuseJS core. As support for more frameworks is added, the code base will gain numerous bug fixes and features, which, in turn, will be shared among all emulated frameworks. Because the FuseJS core is highly optimized, each emulated framework should, holistically, perform better than its official counterpart. The implications are manifold: developers could simply replace a supported client-side framework with
FuseJS + Emulation Layer and receive instant performance and stability gains, while continuing to use their familiar framework's API.
- Microsoft Internet Explorer for Windows, 6.0 and higher
- Mozilla Firefox 1.5 and higher
- Google Chrome 1.0 and higher
- Apple Safari 2.0.0 and higher
- Opera 9.25 and higher
- Konqueror 4.2.2 and higher
- SeaMonkey 1.0 and higher
Getting and Building FuseJS
$ git clone git://github.com/jdalton/fusejs.git $ cd fusejs $ git submodule update --init
To build FuseJS, you'll need Ruby 1.8.2 or higher. From the repo's root directory, run
ruby Build.rb to automatically concatenate the source files, generate the composite in
dist/fuse.js, and build the legacy unit tests in
Once you fork FuseJS on GitHub and commit your changes, you may also send a pull request if you'd like your feature or bug fix to be considered for the next release.
Please make sure to update all unit tests in the
test/ directory as well.
Discuss all things FuseJS in the #fusejs IRC channel on irc.freenode.net.
Use the FuseJS issue tracker to report a bug or share an awesome enhancement. Before posting, please read the Lighthouse text formatting guide. Additionally, Lighthouse lacks the GUI to edit comments; however, you may install this Greasemonkey script or use this bookmarklet to insert the missing
Firefox 3.6 changed the default value for
true. You may need to change this value to
falseto run the unit tests locally.
$ git submodule update --initfails, try deleting the contents of the
vendorfolder and running the command again.