The Betterflow Chrome Extension bridges your browser tabs and the Betterflow editor in a single click. This page walks you through installing the extension, making sure your instance is ready to receive uploads, and recording your first clip. A troubleshooting section at the bottom covers the most common issues you may encounter.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/betterspacx/app/llms.txt
Use this file to discover all available pages before exploring further.
Installation and First Recording
Install the Chrome Extension
Open the Chrome Web Store, search for Better Flow, and click Add to Chrome. Confirm the permissions prompt to complete installation.
Configure R2 Storage on Your Betterflow Instance
Automatic upload requires Cloudflare R2 credentials. Make sure the following environment variables are set on your Betterflow deployment before recording:See the Storage Configuration page for the full setup guide.
If these variables are missing or incorrect, the
/api/upload-video endpoint will return an error and your recording will not be saved.Click the Extension Icon
Navigate to any webpage you want to record, then click the Better Flow icon in your Chrome toolbar. If you do not see it, pin it from the Chrome extensions menu (see Troubleshooting below).
Select a Capture Mode
The extension popup presents two modes:
Choose the mode that best frames your content and start the recording.
| Mode | What it captures |
|---|---|
| Full Page | The entire scrollable document |
| Visible Area | Only the portion of the page currently visible in the viewport |
Recording Uploads Automatically
When you stop recording, the extension base64-encodes the WebM file and POSTs it to your Betterflow instance at
/api/upload-video. The video is stored in your R2 bucket under backgrounds/videos/ and the public CDN URL is returned to the extension.API Reference
The extension relies on two API routes. Refer to their reference pages for request/response schemas and error codes:/api/upload-video— Receives a base64-encoded WebM payload and writes it to R2./api/upload-url— Generates a presigned R2 URL (expires in 5 minutes) for direct client uploads.
Troubleshooting
Recording doesn't upload automatically
Recording doesn't upload automatically
The upload step calls
/api/upload-video on your Betterflow server. Check the following:- Confirm
CLOUDFLARE_ACCOUNT_ID,R2_BUCKET_NAME,R2_API_TOKEN, andNEXT_PUBLIC_CDN_URLare set in your deployment environment. - Verify the extension is pointed at the correct Betterflow origin.
- Open your browser’s DevTools Network tab, trigger a recording, and inspect the response from
/api/upload-videofor a specific error message.
Video appears blank in the editor
Video appears blank in the editor
A blank or broken video in the editor usually means the browser cannot load the file from R2 due to a CORS policy mismatch.
- Open your Cloudflare R2 bucket settings and add a CORS rule that allows
GETrequests from your Betterflow domain. - Make sure
NEXT_PUBLIC_CDN_URLpoints to a public-facing CDN or custom domain, not an internal R2 API endpoint. - If you are using a custom domain in front of R2, confirm the domain’s SSL certificate is valid and the CDN is forwarding the
Content-Type: video/webmheader.
Extension icon is not visible in the toolbar
Extension icon is not visible in the toolbar
Chrome may collapse the extension into the hidden extensions menu after installation.
- Click the puzzle-piece icon (Extensions) in the top-right corner of Chrome.
- Find Better Flow in the list.
- Click the pin icon next to it.