Skip to content

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

list of pipes

matthew-heartful4bdf0561f9dd
diff --git a/pipes/example-pipe/app/page.tsx b/pipes/example-pipe/app/page.tsx
index dc7094184..b7abdb884 100644
--- a/pipes/example-pipe/app/page.tsx
+++ b/pipes/example-pipe/app/page.tsx
@@ -8,6 +8,7 @@ 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 { useEffect, useState } from "react";
const inter = Inter({
subsets: ['latin'],
@@ -15,7 +16,34 @@ const inter = Inter({
variable: '--font-inter',
});
+interface Pipe {
+ id: string;
+ name: string;
+ description: string;
+}
+
export default function Page() {
+ const [pipes, setPipes] = useState<Pipe[]>([]);
+ const [loading, setLoading] = useState(true);
+
+ useEffect(() => {
+ fetch("https://screenpi.pe/api/plugins/registry")
+ .then((res) => res.json())
+ .then((data) => {
+ const transformedPipes = data.map((pipe: any) => ({
+ id: pipe.id,
+ name: pipe.name,
+ description: pipe.description?.split('\n')[0] || ''
+ }));
+ setPipes(transformedPipes);
+ setLoading(false);
+ })
+ .catch((error) => {
+ console.error("Error fetching pipes:", error);
+ setLoading(false);
+ });
+ }, []);
+
return (
<SettingsProvider>
<ClientOnly>
@@ -25,6 +53,26 @@ export default function Page() {
{healthStatusContent.map((cardContent, index) => (
<PlaygroundCard key={index} content={cardContent} />
))}
+
+ <div className="w-full max-w-4xl mt-8 font-mono">
+ <h2 className="text-xl font-semibold mb-4 text-left">open source pipes</h2>
+ <p className="mb-6 text-left text-gray-600">
+ # All pipes are open source and you can directly fork or reuse pipes or components.
+ # Source: <a href="https://github.com/mediar-ai/screenpipe/tree/main/pipes" className="text-blue-500 underline">https://github.com/mediar-ai/screenpipe/tree/main/pipes</a>
+ </p>
+
+ {loading ? (
+ <p className="text-gray-500">Loading available pipes...</p>
+ ) : (
+ <div className="bg-gray-100 p-4 rounded w-full max-w-4xl text-sm border border-gray-200">
+ {pipes.map((pipe, index) => (
+ <div key={index} className="mb-2 last:mb-0">
+ <span className="font-medium">[{index}]</span> <span className="font-semibold">{pipe.name}</span> - {pipe.description}
+ </div>
+ ))}
+ </div>
+ )}
+ </div>
</div>
</ClientOnly>
</SettingsProvider>