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
Example pipe continued (#1546)
Matthew Diakonov8a675c3ad4c3
diff --git a/pipes/example-pipe/README.md b/pipes/example-pipe/README.mdindex 81cddf3b3..366edf63f 100644--- a/pipes/example-pipe/README.md+++ b/pipes/example-pipe/README.md@@ -4,6 +4,15 @@ a flexible playground for displaying, testing, and exploring components with the<!-- <img width="1312" alt="screenshot of component playground" src="https://github.com/user-attachments/assets/3e5abd07-0a3c-4c3b-8351-5107beb4fb10"> -->+## components listed++- health status check+- latest UI record+- latest OCR record+- latest audio transcription+- screen streaming+- audio streaming+## features- **interactive component display**: view rendered components in actiondiff --git a/pipes/example-pipe/app/page.tsx b/pipes/example-pipe/app/page.tsxindex b7abdb884..be7b74728 100644--- a/pipes/example-pipe/app/page.tsx+++ b/pipes/example-pipe/app/page.tsx@@ -7,7 +7,7 @@ import { LastUiRecord } from "@/components/ready-to-use-examples/last-ui-record"import { PlaygroundCard } from "@/components/playground-card";import { ClientOnly } from "@/lib/client-only";import { Inter } from "next/font/google";-import healthStatusContent from '../content/health-status-card.json';+import componentsList from '../content/components-list.json';import { useEffect, useState } from "react";const inter = Inter({@@ -50,7 +50,7 @@ export default function Page() {<div className={`flex flex-col gap-6 items-center justify-center h-full mt-12 px-4 pb-12 ${inter.className}`}><h1 className="text-2xl font-bold mb-0">example app (pipe) for developers</h1><p className="text-gray-600 mb-2 -mt-5">ready-to-use components for engineers building apps with screenpipe</p>- {healthStatusContent.map((cardContent, index) => (+ {componentsList.map((cardContent, index) => (<PlaygroundCard key={index} content={cardContent} />))}diff --git a/pipes/example-pipe/components/playground-card.tsx b/pipes/example-pipe/components/playground-card.tsxindex 88ffaaed8..a25fa8845 100644--- a/pipes/example-pipe/components/playground-card.tsx+++ b/pipes/example-pipe/components/playground-card.tsx@@ -8,8 +8,6 @@ import { parseHtmlContent } from '../lib/html-content-parser';import { Copy, ChevronDown, ChevronUp } from "lucide-react";import { Button } from "@/components/ui/button";-// Import the JSON data-import healthStatusCardData from '../content/health-status-card.json';// Create a component registry that will be properly typedconst COMPONENT_REGISTRY: Record<string, any> = {};diff --git a/pipes/example-pipe/content/health-status-card.json b/pipes/example-pipe/content/components-list.jsonsimilarity index 93%rename from pipes/example-pipe/content/health-status-card.jsonrename to pipes/example-pipe/content/components-list.jsonindex d0e624ce5..49a4490d0 100644--- a/pipes/example-pipe/content/health-status-card.json+++ b/pipes/example-pipe/content/components-list.json@@ -5,12 +5,12 @@"llmModel": "claude-3.7-sonnet","llmUserPrompt": "can we have another component to call screenpipe health endpoint and render raw json output? can we display the output more user friendly, with some animation (framer motion), etc., keep code short","llmContextUrl": "https://docs.screenpi.pe/docs/api-reference",- "title": "Health Status"+ "title": "health status check"},{"componentPath": "/pipes/example-pipe/components/ready-to-use-examples/last-ui-record.tsx","endpoint_optional": "SDK: pipe.queryScreenpipe",- "title": "Latest UI Record",+ "title": "latest UI record","llmModel": "claude-3.7-sonnet","llmUserPrompt": "create a component that fetches and displays the latest UI_monitoring record from screenpipe, showing details like app name, window name, timestamp, and text content","llmContextUrl": "https://docs.screenpi.pe/docs/sdk-reference"@@ -18,7 +18,7 @@{"componentPath": "/pipes/example-pipe/components/ready-to-use-examples/last-ocr-image.tsx","endpoint_optional": "SDK: pipe.queryScreenpipe",- "title": "Latest OCR Image",+ "title": "latest OCR record","llmModel": "claude-3.7-sonnet","llmUserPrompt": "create a component that fetches and displays the latest OCR image from screenpipe, showing the image along with any extracted text and metadata","llmContextUrl": "https://docs.screenpi.pe/docs/sdk-reference"@@ -26,7 +26,7 @@{"componentPath": "/pipes/example-pipe/components/ready-to-use-examples/last-audio-transcription.tsx","endpoint_optional": "SDK: pipe.queryScreenpipe",- "title": "Latest Audio Transcription",+ "title": "latest audio transcription","llmModel": "claude-3.7-sonnet","llmUserPrompt": "create a component that fetches and displays the latest audio transcription from screenpipe, showing the transcription text along with metadata like device name, timestamp, and speaker information","llmContextUrl": "https://docs.screenpi.pe/docs/sdk-reference"@@ -34,7 +34,7 @@{"componentPath": "/pipes/example-pipe/components/ready-to-use-examples/realtime-screen.tsx","endpoint_optional": "SDK: pipe.streamVision",- "title": "Realtime Screen",+ "title": "screen streaming","llmModel": "claude-3.7-sonnet","llmUserPrompt": "create a component that streams real-time screen captures with OCR text using the pipe.streamVision API, showing both the screen image and extracted text with appropriate controls to start/stop streaming","llmContextUrl": "https://docs.screenpi.pe/docs/sdk-reference"@@ -42,7 +42,7 @@{"componentPath": "/pipes/example-pipe/components/ready-to-use-examples/realtime-audio.tsx","endpoint_optional": "SDK: pipe.streamTranscriptions",- "title": "Realtime Audio",+ "title": "audio streaming","llmModel": "claude-3.7-sonnet","llmUserPrompt": "create a component that streams real-time audio transcriptions using the pipe.streamTranscriptions API, showing both the current transcription and history with appropriate controls to start/stop streaming","llmContextUrl": "https://docs.screenpi.pe/docs/sdk-reference"diff --git a/pipes/example-pipe/package.json b/pipes/example-pipe/package.jsonindex 7e0801d8f..e231af0d6 100644--- a/pipes/example-pipe/package.json+++ b/pipes/example-pipe/package.json@@ -1,6 +1,6 @@{"name": "example-pipe",- "version": "0.0.2",+ "version": "0.0.4","private": false,"scripts": {"dev": "next dev",