A floating toolbar for AI agents to annotate, inspect, and provide feedback on web pages
npm install agent-feedbackA floating toolbar for AI agents to annotate, inspect, and provide feedback on web pages. Features accessibility audits, layout shift detection, screen reader preview, React component detection, and element annotation.
Add a single script tag to any page - no build step required. React is bundled, so no dependencies needed:
``html`
Or via jsDelivr:
`html`
The toolbar auto-mounts when the page loads and appears in the bottom-right corner. The styles are isolated so they won't conflict with your page's CSS.
Optional: Toggle with keyboard shortcut
`html`
src="https://unpkg.com/agent-feedback/dist/cdn.global.js"
data-options='{"activationKey":"Alt+t"}'
>
JavaScript API (CDN):
`javascript`
// Mount/unmount programmatically
window.AgentFeedback.mount()
window.AgentFeedback.unmount()
Bundle size: ~240 KB gzipped (includes React)
`bash`
npm install agent-feedback bippyor
bun add agent-feedback bippyor
yarn add agent-feedback bippy
Important: For React component detection to work, bippy must be imported before React in your application entry point.
`tsx
// src/main.tsx or src/index.tsx
import 'bippy' // MUST be first!
import React from 'react'
import { createRoot } from 'react-dom/client'
import { Toolbar } from 'agent-feedback'
import App from './App'
createRoot(document.getElementById('root')!).render(
)
`
Create an instrumentation file in your project root or src folder:
`ts`
// instrumentation-client.ts
import 'bippy'
Then add the toolbar to your layout:
`tsx
// app/layout.tsx
import { Toolbar } from 'agent-feedback'
export default function RootLayout({ children }) {
return (
Keyboard Shortcuts
| Shortcut | Action |
|----------|--------|
|
⌥S (Option+S) | Open toolbar & activate element selector |
| ⌥C (Option+C) | Copy all annotations to clipboard |
| Escape | Close current panel or collapse toolbar |Features
$3
Click the cursor icon (or press ⌥S) to enable element selection mode. Click any element to add annotations with comments. Copy all annotations with ⌥C for easy sharing.$3
When hovering over elements, the toolbar shows the React component name and hierarchy (e.g.,