A framework for writing testable, lightweight JavaScript in your Rails application.

The UnFramework

As dumb as it is for me to have created yet another JavaScript framework, I contend that JSkit fits in the sweet spot between jQuery soup and full blown fat-client, single-page-app framework. The goal of JSkit is to be a simple, easy-to-use structure for when you need solid, testable JavaScript without the overhead of trying to solve harder problems.

Why Rails JSKit?

Rails JSKit takes the guesswork out of how to structure the JavaScript in your Rails app. It also provides a simple way to write JavaScript that's easy to read, write, and test. No more dumping blobs of JavaScript into templates or grabbing magic global data available to your scripts.

Lightweight

At under 250 lines of code in total (minus comments), JSKit is an extremely lightweight framework. Not only lightweight in size, JSKit aims to provide a basic structure and nothing more. JSKit sets you up for success, however you choose to build your application.

Decoupled Coordination

Rails JSKit uses an event system to provide a minimal seam between your Rails app and the client-side code. JSKit controllers map 1-to-1 to Rails controllers, allowing you to coordinate execution of JavaScript at key points in the response cycle. Seamlessly pass data to your JSKit controllers directly from your Rails controllers, avoiding global variables dumped into templates.