I wanted a intelligent library that pops the "Rate my app" question at the right time and is easy to set-up.
Well, this library at minimum requires no configuration at all and takes just a single line of code, because it reads your app's (bundle) ID from Ti.App.id
and looks up the App Store ID itself:
require('rate').plus();
Check out advanced.js
for all available options.
I personally like to add points at places where the user has positive interaction with the app, but wait to pop the question until he/she is finished doing that.