The primary role of NodeJs developers is to develop the backend of web applications by using JavaScript to write server-side scripts and creating server-side APIs (Application Programming Interfaces). They are also responsible for integrating the backend of web applications with the frontend, as well as working with databases to store and retrieve data.