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 owljs with all npm packages installed. Try it out:

var owljs = require("owljs")

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

owljs v0.8.32

Backbone-like frontend library

owl.js

Backbone-like frontend library

Build Status Coverage Status Stories in Ready

Ask a question in gitter.

Install

Bower

bower install owl.js

npm

npm install owl.js

Features

Languages: ES5, ES6, TypeScript.

Modules: CommonJS, amd.

Libraries: React.

Examples

To start examples server

cd examples
npm start

Concept

owl.js is simple library similar to backbone.js, without dependency on underscore.js and jQuery. If you know backbone.js you mostly know owl.js.

The library uses MVC as main pattern. owl.Model is responsible for representing data from server based on REST architecture.

owl.View is responsible for rendering view it can use any template engine to do it or generate DOM manually. You can use React or any other UI library insted of owl.View.

owl.Controller is responsible for business logic.

Also there is few classes out of the main pattern.

owl.Router is created to manage pages based on URL. It contains records named routes. Each route contains path and a controller that will be called for specified path.

owl.Collection is an array of owl.Models it is created to represent model sets.

Development

Run unit tests

karma start

or

npm test
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