Why double-back when you can capture it the first time? Playback and share exactly what happened with Replayable's desktop replay buffer.
This package allows you to control the Replayable desktop application from the CLI or SDK.
You can easily embed desktop replays within git commits, pull requests, bug reports, jira tickets, and even within log files.
Desktop replays are a great way to share context behind problems and document the application state within logs, tickets and more.
Capture bugs with replayable. - Watch Video

First, install Replayable Desktop. Replayable Desktop runs in the background giving you access to a buffer of video.
npm install replayable -g
$ replayable
https://replayable.io/replay/123?share=xyz
$ replayable --md
[](https://replayable.io/replay/123?share=xyz)
Watch [Replayable - New Replay](https://replayable.io/replay/123?share=xyz) on Replayable
$ replayable -t "My New Title"
$ history -20 | replayable
This will attach the mac system log to the replay.
$ cat /var/log/system.log | replayable
The following examples depend on having the GitHub CLI installed.
$ gh issue create -w -t "Title" -b "`replayable --md`"
This is where it gets really cool. For example, this single command will create a GitHub issue with a video replay and the mac system logs.
gh issue create -w -t "Title" -b "`cat /var/log/system.log | replayable --md`"
$ gh pr create -w -t "Title" -b "`replayable --md`"
$ git commit -am "`replayable`"
const replayable = require("replayable");
process.on("uncaughtException", async (err) => {
let replay = await replayable.createReplay({
title: "uncaughtException",
description: err,
});
console.log("Replayable", replay);
});
setTimeout(() => {
throw new Error("Throw makes it go boom!");
}, 3000);
Note that this example does not require any library to be installed as the app exposes the protocol natively.
window.onerror = function myErrorHandler() {
window.open("replayable://replay/create", "_blank");
};
setTimeout(() => {
throw new Error("Throw makes it go boom!");
}, 3000);
Usage: replayable create [options]
Create a replay and output the resulting url or markdown. Will launch desktop app for local editing before publishing.
Options:
-t, --title <string> Title of the replay. Automatically generated if not supplied.
-d, --description [text] Replay markdown body. This may also be piped in: `cat README.md | replayable create`
--md Returns code for a rich markdown image link.
-h, --help display help for command
It would be possible to string this along in a git hook to publish with every commit.