DailyJS

Databound, Typist

Alex R. Young

Subscribe

@dailyjs

Facebook

Google+

libraries ui ajax dom http rest

Databound, Typist

Posted by Alex R. Young on .
Featured

libraries ui ajax dom http rest

Databound, Typist

Posted by Alex R. Young on .

Databound

Databound

If you use Ruby on Rails, then you might like this Rails REST library wrapped: Databound (GitHub: Nedomas/databound, License: MIT, npm: databound, Bower: databound) by Domas Bitvinskas. The API looks a bit like the Rails syntax for database models:

User = new Databound('/users')

User.where({ name: 'John' }).then(function(users) {  
  alert('Users called John');
});

User.find(15).then(function(user) {  
  print('User no. 15: ' + user.name);
});

User.create({ name: 'Peter' }).then(function(user) {  
  print('I am ' + user.name + ' from database');
});

Install it with npm, Bower, or as part of a Rails asset pipeline. The author also notes that you can use it with Angular as an alternative to ngResource.

Typist

Typist (GitHub: positionly/Typist, License: MIT, Bower: Typist) by Oskar Krawczyk is a small library for animating text as if it's being typed. It can work with responsive layouts, and the author claims it has improved click-through-rates on a commercial homepage.

It doesn't have any dependencies, and is invoked by a constructor that accepts options for the animation intervals. The required markup should specify the text to be typed in the data-typist and data-typist-suffix attributes.