The Betterflow Chrome Extension lets you capture your screen without leaving your browser. Once a recording is complete, it is automatically uploaded to your Betterflow instance and opened in the editor — no manual file handling required. The extension works from any browser tab and supports two capture modes so you can frame exactly what you need.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.
Key Capabilities
One-Click Recording
Click the extension icon on any tab to start capturing immediately — no extra steps or pop-up flows required.
Flexible Capture Modes
Choose between full page capture (the entire scrollable document) or visible area capture (only the current viewport).
Automatic Upload
Recordings are base64-encoded in the extension and POSTed to
/api/upload-video, which stores the file in Cloudflare R2.Seamless Editor Integration
After upload, the public CDN URL is passed to the Betterflow editor, so your recording opens ready to edit without any copy-and-paste.
How It Works
The upload flow connects the extension directly to your Betterflow instance and Cloudflare R2 storage:/api/upload-video
The extension sends a POST request with a JSON body:
videoBase64 is required. fileName is optional and defaults to recording-<timestamp>.webm when omitted.
The server decodes the payload, uploads the binary buffer to R2 via the Cloudflare API, and returns:
backgrounds/videos/<timestamp>-<fileName> inside your R2 bucket.
/api/upload-url
For alternative upload flows, /api/upload-url generates a presigned R2 URL that expires in 5 minutes. The extension (or any client) can then PUT the video binary directly to R2 without proxying through the Next.js server.
Both fileName and contentType are required fields.
Request:
The presigned URL endpoint is provided for advanced integration scenarios. The Chrome Extension uses
/api/upload-video by default.Requirements
| Requirement | Details |
|---|---|
| Browser | Google Chrome (the extension uses Chrome Extension APIs) |
Cloudflare R2 — /api/upload-video | CLOUDFLARE_ACCOUNT_ID, R2_BUCKET_NAME, R2_API_TOKEN, and NEXT_PUBLIC_CDN_URL must be set for automatic upload to work |
Cloudflare R2 — /api/upload-url | R2_ACCESS_KEY_ID, R2_SECRET_ACCESS_KEY, R2_BUCKET_NAME, and NEXT_PUBLIC_CDN_URL must be set to generate presigned URLs |
| Betterflow instance | The extension must point to a running Betterflow deployment with the API routes accessible |