In A Row

Get your ducks there!

home :: development :: js :: tinydb

:: TinyDB, Toy Framework and jQuery Plugin

TinyDB is an interesting take on "cloud storage." Basically, you send some data via GET, they give you a URL, your data is stored in that URL. It's not private and it doesn't store a lot of information, but it has some interesting possibilities.

I think a good use for these sort of things, will be quick-built client-side only content dumpage. You go to "twitter-overload.com" type in a larger than 140 character message and hit save. JavaScript bundles up your data, stores it in TinyDB and hands you back a URL which will reload that data from TinyDB and display it. You take that url and post it to twitter. (Yes, I know that services like this exist, but the idea of doing it entirely client-side is interesting.)

TinyDB Toys is a simple proof of this concept. Here's a TinyDB Toy URL with some embedded data.

To facilitate this, I wrote a jQuery plugin, jQuery.tinydb. The two methods are documented within the source.

Drop me a comment if you hack up something cool with this.


Show Related Articles

Comments

Riley Smith :: Mon, 09 Jun 2008 20:43

Interesting, I wonder if you could post little snippets of processing could, and then hook in processing.js and have a little canvas drop.

Greg :: Wed, 07 Jan 2009 00:30

Hey, thanks for starting work on this plugin. I'm using it in an as-yet-unreleased client project. I needed to be able to append rows to an existing tinydb record as well (something they support in their api) so I added that facility. You didn't have a public repo for the code, so I stuck it in a gist here:

http://gist.github.com/44089

Greg :: Wed, 07 Jan 2009 01:02

I just added another feature that I needed in this same project: the ability to request all the rows that have been appended to a single tiny db entry (i.e. the inverse of the write append feature I added earlier). The usage of this looks like:

$.tinydb.read('myTinyDbID', function(data){ console.log(data); return false; }, {all : true});

that {all:true} opts object at the end there tells the plugin to request all the rows appended to the give tinydb record.

Also, the usage of the write case looks like this:

$.tinydb.write({result : resultName}, function(){return false;}, 'myTinyDbID');

The same as before, but with the id of the record to which you'd like to append the new rown added as the optional last arguement.

Both of these improvements should be backwards compatible with earlier uses of the plugin.

As before, the code is available here:

http://gist.github.com/44089

Kemp19Nicole :: Fri, 09 Apr 2010 16:09

Do you know that it is high time to receive the <a href="http://lowest-rate-loans.com/topics/business-loans">business loans</a>, which will help you.

buy custom essay papers :: Tue, 27 Apr 2010 15:09

Some students prefer to buy essay at the paper writing services close to this topic.

thesis writing service :: Tue, 04 May 2010 17:43

Your writing connected with this good post is superior and different scholars should take that for their dissertation publication. And some students permanently use the support of the buy thesis service.

buy term papers :: Fri, 14 May 2010 14:34

I agree with this investigation more than any I have seen until today on the internet. I like that it isn't written in snobby language. Thank you so much. I will certainly keep in touch, because I need buy term papers to solve all my problems.

buy essay :: Mon, 14 Jun 2010 10:51

Worth sharing this information. Good Work

custom admission essay :: Mon, 14 Jun 2010 10:52

Thanks for sharing. i really appreciate it that you shared with us such a informative post..

jude hill :: Tue, 15 Jun 2010 08:09

Your posting is very good and theme base for which it is liking to every people. Thanks a lot!!! <a href='http://www.thesisdom.co.uk/buy-thesis/'>Buy thesis</a> | <a href='http://www.courseworkdom.co.uk'>coursework</a>

Buy thesis :: Tue, 15 Jun 2010 08:10

I just want to emphasize the good work on this , has excellent views and a clear vision of what you are looking for

lacewigs :: Thu, 17 Jun 2010 07:55

I'm not experienced in serious JavaScript coding!

Add a Comment:
 
Name:
URL/Email: [http://... or mailto:you@wherever] (optional)
Comment:
Please verify that you are human, or a good AI/OCR combo:
  Add to Technorati Favorites   Copyright 2008, Chris Moyer