A minimal Next.js app with the blocfeed widget fully integrated. Clone, add your key, and see it working in under a minute.
git clone https://github.com/mihir-kanzariya/blocfeed-example.git
cd blocfeed-example
npm installCreate a .env.local file with your blocfeed ID:
cp .env.example .env.localEdit .env.local and replace bf_your_project_id_here with your actual blocfeed_id from blocfeed.com/dashboard.
npm run devOpen http://localhost:3000 — click the green dot in the bottom-right corner to try the widget.
- Sign up at blocfeed.com
- Create a project in the dashboard
- Copy the
blocfeed_id(starts withbf_)
- Element picking — click any element to select it, captures component name and test ID
- Element screenshots — automatic screenshot of the selected element
- Screen recording — record a video clip showing bug reproduction steps
- Click tracking — captures every click during recording with timestamps
- Voice feedback — speak feedback, auto-transcribed with Whisper
- Console & network capture — errors and failed requests attached automatically
- Secret leak detection — warns if API keys are exposed in client-side code
- Feedback categories — bug, feature, UX, general pill selector
- Keyboard shortcut —
Cmd+Shift+F(Mac) /Ctrl+Shift+F(Windows) to toggle - Dark mode — widget follows dark theme by default
- User identity — user ID, email, and name attached to every submission
- Offline queue — failed submissions retry automatically
- Custom trigger style — animated "dot" trigger with hover expand
data-blocfeed-component— shows how to tag components for triagedata-testid— captured in the feedback payload for QA workflows
The entire integration lives in src/app/layout.tsx:
import { BlocFeedWidget } from "blocfeed";
// Inside your layout:
<BlocFeedWidget
blocfeed_id={process.env.NEXT_PUBLIC_BLOCFEED_ID!}
config={{
ui: { position: "bottom-right", triggerStyle: "dot" },
diagnostics: { console: true, network: true },
recording: { enabled: true },
voice: { enabled: true },
security: { secretScan: true },
}}
/>blocfeed-example/
src/app/
layout.tsx ← blocFeed widget added here
page.tsx ← demo landing page with interactive elements
globals.css ← minimal styles
.env.example ← copy to .env.local and add your key
package.json
- Next.js 15 (App Router)
- React 19
- blocfeed SDK
- framer-motion (for animated trigger styles)
- blocfeed.com — Dashboard
- npm — SDK package
- SDK docs — Full configuration reference
MIT