Knockout makes it easier to create rich, responsive UIs with JavaScript



Knockout is a JavaScript MVVM (a modern variant of MVC) library that makes it easier to create rich, desktop-like user interfaces with JavaScript and HTML. It usesobservers to make your UI automatically stay in sync with an underlying data model, along with a powerful and extensible set of declarative bindings to enable productive development.

Getting started

Join the chat at

Totally new to Knockout? The most fun place to start is the online interactive tutorials.

For more details, see

Documentation on the project's website

Downloading Knockout

You can download released versions of Knockout from the project's website.

For Node.js developers, Knockout is also available from npm - just runnpm install knockout.

Building Knockout from sources

If you prefer to build the library yourself:

1. Clone the repo from GitHub

  1. ```sh
  2.    git clone
  3.    cd knockout
  4. ```

2. Acquire build dependencies.

   Make sure you have Node.js and Java installed on your workstation. These are only needed to _build_ Knockout from sources. Knockout itself has no dependency on Node.js or Java once it is built (it works with any server technology or none). Now run:

  1. ```sh
  2.    npm install
  3. ```

3. Run the build tool

  1. ```sh
  2.    npm run grunt
  3. ```
   Now you'll find the built files in build/output/.

   To run a single task, use --

  1. ```sh
  2.    npm run grunt -- build:debug
  3. ```

Running the tests

If you have phantomjs installed, then thegrunt script will automatically run the specification suite and report its results.

Or, if you want to run the specs in a browser (e.g., for debugging), simply open spec/runner.html in your browser.