I have a simple question. Is there any documentation on how mining software works on Monero with NODEJS? Or how should I connect with the blockchain and get some data to process it. 

I've looked already on Google but I can't find anything solid. 


Thanks in advance

JPP