hookpunch.js

beat some state into Knockout.js

This library will add tracking to observable Knockout.js objects and update their internal state based on whether they have changed. It also provides helper functions for filtering out only the objects that have changed from observableCollections. This is useful when working with serialized server objects on the client side, or when you only want to send updated objects back to the server.

Easy to Use

Designed to be easy to use and quick to implement. The idea is to provide a complete set of functionality that makes working with stateful server side objects on the client easy and efficient.

Demo

So far we've only got a single demo, hang tight, we are working on a few more...

Show me

Coming Features

  • Generic change and revert events.
  • Custom state maps.
  • Better logging
  • Knockout.js observable history.
  • Knockout.js stacked undo.
  • observableArray filters for modified and new objects.

View Changelog

Saves you Time

hookpunch.js does all of the work for you; you only have to hook into the change and revert callbacks and check the state of the object, which is automagically updated when a field on the object changes.

Code

Check out the code on GitHub. Feel free to update the code and send the changes through if you have some cool ideas!

Take me to github!