YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
feat: add browser extension tile to connections page
Louis Beaumontf61721dd7727
diff --git a/apps/screenpipe-app-tauri/components/settings/connections-section.tsx b/apps/screenpipe-app-tauri/components/settings/connections-section.tsxindex 1682c211f..afc098762 100644--- a/apps/screenpipe-app-tauri/components/settings/connections-section.tsx+++ b/apps/screenpipe-app-tauri/components/settings/connections-section.tsx@@ -237,6 +237,11 @@ function IntegrationIcon({ icon }: { icon: string }) {ntfy: <img src="/images/ntfy.png" alt="ntfy" className="w-5 h-5 rounded" />,toggl: <img src="/images/toggl.png" alt="Toggl" className="w-5 h-5 rounded" />,"browser-url": <img src="/images/browser-url.svg" alt="Browser URL" className="w-5 h-5 rounded" />,+ "browser-extension": (+ <svg viewBox="0 0 24 24" className="w-5 h-5" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">+ <path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" /><polyline points="15 3 21 3 21 9" /><line x1="10" y1="14" x2="21" y2="3" />+ </svg>+ ),"voice-memos": <img src="/images/voice-memos.svg" alt="Voice Memos" className="w-5 h-5 rounded" />,};return (@@ -611,6 +616,87 @@ function LMStudioPanel() {);}+function BrowserExtensionPanel({ connected, onRefresh }: { connected: boolean; onRefresh: () => void }) {+ const [testing, setTesting] = useState(false);+ const [testResult, setTestResult] = useState<string | null>(null);++ const handleTest = async () => {+ setTesting(true);+ setTestResult(null);+ try {+ const r = await fetch("http://localhost:3030/browser/eval", {+ method: "POST",+ headers: { "Content-Type": "application/json" },+ body: JSON.stringify({ code: "return document.title" }),+ });+ const d = await r.json();+ if (d.success) {+ setTestResult(`connected — active tab: "${d.result}"`);+ } else {+ setTestResult(`error: ${d.error}`);+ }+ } catch (e: any) {+ setTestResult(`failed: ${e.message}`);+ } finally {+ setTesting(false);+ onRefresh();+ }+ };++ return (+ <div className="space-y-4">+ <div>+ <h3 className="text-sm font-medium mb-1">browser extension</h3>+ <p className="text-xs text-muted-foreground">+ connects your browser to screenpipe so pipes can read data from authenticated pages+ (ChatGPT history, Claude conversations, dashboards, etc.)+ </p>+ </div>++ <div className="flex items-center gap-2">+ <div className={`w-2 h-2 rounded-full ${connected ? "bg-green-500" : "bg-muted-foreground/30"}`} />+ <span className="text-sm">{connected ? "connected" : "not connected"}</span>+ </div>++ {!connected && (+ <div className="space-y-2">+ <p className="text-xs text-muted-foreground">+ install the extension, then it auto-connects when screenpipe is running.+ </p>+ <div className="flex gap-2">+ <Button+ variant="outline"+ size="sm"+ onClick={() => openUrl("https://chromewebstore.google.com/detail/screenpipe-browser-bridge/bgiepgcbfoiikehdnkfffdkgpdhlijeh")}+ >+ chrome web store <ExternalLink className="w-3 h-3 ml-1" />+ </Button>+ <Button+ variant="outline"+ size="sm"+ onClick={() => openUrl("https://github.com/screenpipe/screenpipe/tree/main/packages/browser-extension")}+ >+ manual install <ExternalLink className="w-3 h-3 ml-1" />+ </Button>+ </div>+ </div>+ )}++ {connected && (+ <div className="space-y-2">+ <Button variant="outline" size="sm" onClick={handleTest} disabled={testing}>+ {testing ? <Loader2 className="h-3 w-3 animate-spin mr-1" /> : <Check className="h-3 w-3 mr-1" />}+ test connection+ </Button>+ {testResult && (+ <p className="text-xs text-muted-foreground">{testResult}</p>+ )}+ </div>+ )}+ </div>+ );+}+function WhatsAppPanel() {const [status, setStatus] = useState<"idle" | "pairing" | "connected" | "error">("idle");const [qr, setQr] = useState<string | null>(null);@@ -981,6 +1067,7 @@ export function ConnectionsSection() {const [claudeInstalled, setClaudeInstalled] = useState(false);const [cursorInstalled, setCursorInstalled] = useState(false);const [chatgptConnected, setChatgptConnected] = useState(false);+ const [browserExtConnected, setBrowserExtConnected] = useState(false);const refreshStatus = useCallback(() => {getInstalledMcpVersion().then(v => {@@ -993,6 +1080,10 @@ export function ConnectionsSection() {commands.chatgptOauthStatus().then(res => {setChatgptConnected(res.status === "ok" && res.data.logged_in);}).catch(() => {});+ fetch("http://localhost:3030/browser/status")+ .then(r => r.json())+ .then(d => setBrowserExtConnected(d.connected === true))+ .catch(() => setBrowserExtConnected(false));}, []);useEffect(() => { refreshStatus(); }, [selected, refreshStatus]);@@ -1032,6 +1123,7 @@ export function ConnectionsSection() {{ id: "cursor", name: "Cursor", icon: "cursor", connected: cursorInstalled },{ id: "claude-code", name: "Claude Code", icon: "claude-code", connected: false },{ id: "chatgpt", name: "ChatGPT", icon: "chatgpt", connected: chatgptConnected },+ { id: "browser-extension", name: "Browser Extension", icon: "browser-extension", connected: browserExtConnected },...(os === "macos" ? [{ id: "browser-url", name: "Browser URL Capture", icon: "browser-url", connected: false },{ id: "voice-memos", name: "Voice Memos", icon: "voice-memos", connected: false },@@ -1062,7 +1154,7 @@ export function ConnectionsSection() {if (api) h.connected = api.connected;}return [...hardcoded, ...apiTiles];- }, [os, claudeInstalled, cursorInstalled, chatgptConnected, integrations]);+ }, [os, claudeInstalled, cursorInstalled, chatgptConnected, browserExtConnected, integrations]);const filtered = useMemo(() => {if (!search.trim()) return allTiles;@@ -1079,6 +1171,7 @@ export function ConnectionsSection() {case "cursor": return <CursorPanel />;case "claude-code": return <ClaudeCodePanel />;case "chatgpt": return <ChatGptPanel />;+ case "browser-extension": return <BrowserExtensionPanel connected={browserExtConnected} onRefresh={refreshStatus} />;case "browser-url": return <BrowserUrlCard />;case "voice-memos": return <VoiceMemosCard />;case "apple-intelligence": return <AppleIntelligenceCard />;