How to make a Node.js backend (not Agent) join a LiveKit room and handle audio

This question originally came up in our Slack community and the thread has been consolidated here for long-term reference.

How can I make a Node.js backend (not Agent) join a LiveKit room, listen for audio, and publish audio?

Use the livekit-rtc package from the Node.js SDK: