Integrate rocket chat backend in Nodejs application

Hello, I already have my chat front-end app, but I want to integrate only the back-end APIs or codebase of rocket chat in my Nodejs application with my own database to store chat messages and user data.
is that possible? if yes which part of docs explains that?
thank you