Replay Node
Replay Node is an alpha Node.js runtime that records scripts so they can be replayed and inspected the same way as browser recordings.

Replay Node is built on Node 16 and is not under active development. It works for scripts that run on that version, but newer Node releases are not supported.
Basics
Replay Node applies the same recording approach as Replay Browser to Node.js. Recordings upload with the Replay CLI and open in Replay DevTools or through Replay MCP like any other recording.
1
2
Record your script
Use replay-node in the same way that you would use node to run your script:
Terminalreplay-node <script>
3
4
View your replay
The CLI will upload your replays and provide you with a link to view them.
TerminalThe following recording(s) will be uploaded:8a5ab266… test.js Now 31.0ms RecordedUploaded recordings✔ 8a5ab266… test.js Now 31.0ms (uploaded)View recording at:https://app.replay.io/recording/8a5ab266-96ec-47d5-a56a-2b49fa2b999b
FAQ
How do I use Replay Node with TypeScript?
Replay Node supports an --exec flag that lets you execute Node scripts like ts-node.
Terminalreplay-node --exec ts-node <script>