News for hackers. Stuff that matters.
Re:Show HN: A simple IP address API by apierre on Friday February 14, 2014 @12:09PM (#7239555)
Ingredients: Node, Connect, Express on Nginx. *

* Courtesy of Wappalyzer

Re:Show HN: A simple IP address API by coderholic on Friday February 14, 2014 @12:26PM (#7239665)
Yeah, exactly that! I'll have to check out Wappalyzer.

The code is written in coffeescript, and some key npm modules are:

- https://github.com/caolan/async

- https://github.com/brycebaril/node-tokenthrottle-redis

- https://github.com/rs/node-netmask

I was at one point using https://github.com/tjfontaine/node-dns for the hostname lookups, but it was significantly slower that the built in dns module, so I ended up wrapping that with my own timeout logic.