Replicate now has a client library for Node.js. You can use it to run models and everything else you can do with the HTTP API.
Install it from npm:
Then, you can run predictions:
Follow our guide to running a model from Node.js or read the full documentation on GitHub.