Taffy DB : A JavaScript database for your browser
Download Taffy DB | Feedback/Bugs | Getting Started | FAQ  
Taffy DB is a free and opensource JavaScript library that acts as thin data layer inside Web 2.0 and Ajax applications.

What makes it cool:
  • Under 10K!
  • Simple, JavaScript Centric Syntax
  • Fast
  • Easy to include in any web application
  • Compatible with major Ajax libraries: YUI, JQuery, Dojo, Prototype, EXT, etc
  • CRUD Interface (Create, Read, Update, Delete)
  • Sorting
  • Looping
  • Advanced Queries

Think of it as a SQL database in your web browser.

 

Example #1:

Let's say you have a collection of products and you want to find every product that costs less $10 and is not a book. Simple, just write some JavaScript:

products.find({price:{lessthan:10},
              type:{not:"Book"}});


Example #2:

Let's say you want to update every product from XZYDesign and set the status to not available:

products.update({status:"NA"},
                {manufacturer:"XZYDesign"});


Example #3:

Let's say you want to sort your products based on type, price ascending, and quantity ascending:

products.orderBy(
   ["type",{"price":"asc"},{"quantity":"asc"}]
);


To see what else you can do and get a quick guide on how to use Taffy DB check out the Getting Started article.

 
Taffy DB was developed by Ian Smith. Special Thanks goes to Douglas Crockford, John Resig, and the YUI Team.