Build a self-hosted session replay tool for a low-traffic site you own, with privacy as the primary design constraint rather than an afterthought. Recorder. Use rrweb, loaded only after the host page sets an explicit consent flag; with no consent, the script must not run at all. Configure it in the strictest safe direction and document each choice in the README: - mask all input values by default, opting fields into visibility one by one rather than the reverse - block any element carrying a data-noreplay attribute, and every iframe - mask all text inside elements matching a configurable selector list, defaulting to anything that looks like an account or payment area - record no network payloads at all Sample sessions: record a configurable percentage, defaulting to 10 percent, and stop recording a session after a hard cap of 10 minutes. Ingest and storage. Batch events every few seconds, compress them, and store them in PostgreSQL keyed by session, with a hard retention job that deletes recordings older than a configurable number of days, defaulting to 14. Make deletion of a single session by ID a one-click action, because that is what a data request looks like in practice. Player. Replay the session with a scrub bar, playback speed, and skip-inactivity. Above the bar, plot a friction timeline: rage clicks (three or more clicks on the same element inside a second), dead clicks (a click on a non-interactive element with no subsequent DOM change), and rapid back-navigation. Let the user jump straight to each marker, because nobody watches a full session. List view: sessions filterable by page, device, duration and friction marker count. Out of scope: heatmaps, funnels, surveys, and any cross-site identification. Put a plain warning at the top of the README that this build stores recordings of real people, that the operator is the data controller for them, and that the masking configuration must be tested against a real form before it goes live.