Node-language-detect is a project mainly written in C++ and C, it's free.
Node extension wrapping the chromium small language detector