· Guides· Privacy
Open-source session replay, without cookies or servers to run
How session replay works, what it should never record, and how FlarePanel records sessions with rrweb, masks text and inputs by default and stores replays in Cloudflare R2.
By FlarePanel team
A funnel tells you that 40% of people leave on the pricing step. It cannot tell you why. Watching five of those sessions usually can: a button below the fold, a form that rejects a valid postcode, a plan table that does not fit on a phone.
That is what session replay is for. It is also the feature most likely to collect something it should not, so how it is built matters as much as whether you have it.
How session replay works
Replay is not video. A small recorder (FlarePanel uses the open-source rrweb) takes a snapshot of the page’s structure, then records changes: elements added or removed, scrolls, clicks, mouse movement, window size. The player rebuilds the page from those records. That keeps recordings small and lets you skip idle time, but it also means the recorder sees every piece of text on the page, which is why masking has to be the default.
Private by default
With FlarePanel the recorder starts from “show nothing”:
- Every input is masked, so typed passwords, emails and card numbers never leave the browser.
- All text is masked and replaced with asterisks. You still see the layout, clicks and scrolls; you just cannot read the content.
- Hidden inputs are blocked, so CSRF tokens and similar values are never recorded.
- Blocked elements: anything with
data-openpanel-replay-blockis replaced by an empty box of the same size.
When text is safe to show (navigation, headings, button labels), opt it back in with unmaskTextSelector. And like the rest of FlarePanel, replay sets no cookies.
Turning it on
One option in the web SDK:
import { FlarePanel } from '@flarepanel/web';
export const op = new FlarePanel({
clientId: 'YOUR_CLIENT_ID',
trackScreenViews: true,
sessionReplay: {
enabled: true,
sampleRate: 0.5, // record half of all sessions
unmaskTextSelector: 'nav, h1, h2, button',
},
});sampleRate records a share of sessions, which is the easiest way to stay inside your monthly replay allowance on a busy site. The script-tag build loads the recorder only when replay is on, so sites that do not use it do not download it.
Where replays live
The recorder sends a chunk about every ten seconds of activity. Each chunk is stored gzip-compressed as one object in Cloudflare R2, and the project’s Durable Object marks the session so the Sessions page shows Watch replay. Chunks for sessions the project never saw are refused. Replays are removed after 30 days.
Because a replay belongs to a normal FlarePanel session, the player shows the session’s events next to the recording, so you can jump straight to the moment someone added to cart or hit an error.
How much you can record
- FlarePanel Cloud: replay is on every plan, with one recorded session per 100 plan events (from 1,000 up to 100,000 a month). The free trial records 500 a month.
- Self-hosted on Cloudflare: 10,000 recorded sessions a month per organization by default. You can raise it, set it to unlimited, or switch replay off per organization; the Sessions page warns at 80% and at the limit, so nobody’s Cloudflare bill grows by surprise.
Open-source replay options, briefly
If you are comparing tools, the open-source field is small:
- OpenReplay is replay-first, built for debugging, with DevTools data alongside each session.
- PostHog is a broad platform: analytics, replay, feature flags and experiments. FlarePanel vs PostHog.
- OpenPanel is product analytics with replay, running on ClickHouse, Postgres and Redis. FlarePanel is a fork of it rebuilt for Cloudflare. FlarePanel vs OpenPanel.
- FlarePanel fits when you want analytics first (events, funnels, retention, AI traffic) with replay attached, no cookies, and the option to self-host on Cloudflare without any database servers.
To try it, create a project; the first 30 days are free. Self-hosting is covered in the deploy guide.
Questions
- Which open-source product analytics tools include session replay?
- OpenReplay, PostHog, OpenPanel and FlarePanel all include session replay with their analytics. FlarePanel (AGPL-3.0) records with rrweb, masks every input and all text by default, and stores replays in Cloudflare R2, so you can self-host it on your own Cloudflare account without ClickHouse, Postgres or Redis.
- Does session replay record passwords and personal data?
- It should not. In FlarePanel every input is masked and all text is replaced with asterisks by default, hidden inputs are never recorded, and you can block whole elements with a data attribute. You opt specific elements back in, not out.
- How long are session replays kept?
- In FlarePanel, 30 days. Each replay is stored as compressed chunks in R2 and removed by a lifecycle rule after that.