bearcat

Magic, self-described javaScript objects build up elastic, maintainable front-backend javaScript applications

Get bearcat Source on GitHub

10 Seconds Example

var Car = function() {
    this.$id = "car";
    this.$engine = null;
}

Car.prototype.run = function() { 
    this.$engine.run(); 
    console.log('run car...');
}

bearcat.module(Car, typeof module !== 'undefined' ? module : {});
var Engine = function() {
    this.$id = "engine";
}

Engine.prototype.run = function() {
    console.log('run engine...');
}

bearcat.module(Engine, typeof module !== 'undefined' ? module : {});

engine will be automatically loaded and injected into car

car is ready to run just for you to invoke

Simple

Write simple plain old javaScript objects, that's it.

Efficient

Dependency injection with asynchronous loading(frontend), no need to use define, require, or a bundle file.

Reuseable

Simple javaScript objects can be used for frontend and backend(node.js) without any modifications.

Easy

Easy to use, all javaScript objects will be scaned ready for you, no need to write extra complex, messy configuration files.

Powerful

Powered by dependency injection, AOP based declarative middleware services.

Moduler

You just use only those parts that you need.