koajs/ratelimit — pull request #8 by mikaelbr (2014-07-29 20:16:33+00:00)
Title: Adds callback for defining own comparator ID. Fixes #3

Had a stab at implementing callback support for ID as I need it for a project (to ratelimit based on user instead of ip). Hope something like this works. Let me know what you think.