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

update docs

Louis Beaumontb126cf433bc3
diff --git a/examples/typescript/README.md b/examples/typescript/README.md
index cbda06693..a4ea90a60 100644
--- a/examples/typescript/README.md
+++ b/examples/typescript/README.md
@@ -14,9 +14,9 @@ Below is a table of the available examples:
| Example | Description | Type | Link |
|---------|-------------|------|------|
-| TypeScript Pipe Tagging Activity | Automatically tag activities using AI | Pipe | [Pipe Tagging Activity](./pipe-tagging-activity) |
-| TypeScript Pipe Stream OCR Text | Stream OCR text from screen data | Pipe | [Pipe Stream OCR Text](./pipe-stream-ocr-text) |
-| TypeScript Pipe Activity Topic Tracker | Track and summarize activities | Pipe | [Pipe Activity Topic Tracker](./pipe-activity-topic-tracker) |
+| TypeScript Pipe Tagging Activity | Automatically tag activities using AI | Pipe v1 | [Pipe Tagging Activity](./pipe-tagging-activity) |
+| TypeScript Pipe Stream OCR Text | Stream OCR text from screen data | Pipe v2 | [Pipe Stream OCR Text](./pipe-stream-ocr-text) |
+| TypeScript Pipe Activity Topic Tracker | Track and summarize activities | Pipe v1 | [Pipe Activity Topic Tracker](./pipe-activity-topic-tracker) |
| TypeScript Daily Log | A daily activity logger using screenpipe | Standalone Script | [Daily Log](./daily-log) |
| TypeScript Daily Tracker | An AI-powered daily activity tracker | Standalone Script | [Daily Tracker](./daily-tracker) |
| TypeScript RAG Over Your Life in Obsidian | Retrieval-Augmented Generation for personal knowledge management | Standalone Script | [RAG in Obsidian](./rag-over-your-life-in-obsidian) |
diff --git a/examples/typescript/pipe-stream-ocr-text/README.md b/examples/typescript/pipe-stream-ocr-text/README.md
index eee41b780..b8f3e8d6c 100644
--- a/examples/typescript/pipe-stream-ocr-text/README.md
+++ b/examples/typescript/pipe-stream-ocr-text/README.md
@@ -1,5 +1,4 @@
-
in screenpipe we have a plugin system called "pipe store" or "pipes"
think of it like this:
@@ -30,12 +29,10 @@ this is an experimental, but official pipe, that will stream OCR text from your
this is how you run it through the app:
-add the url of this pipe in the input and click "add" and install
+add the url of this pipe
`https://github.com/mediar-ai/screenpipe/tree/main/examples/typescript/pipe-stream-ocr-text`
-wait a few minutes then look at the markdown file
-
### tech details
we run deno runtime (a JS/TS engine) within the rust code, which host your pipes, its 99.9% similar to normal JS code
@@ -45,22 +42,16 @@ we run deno runtime (a JS/TS engine) within the rust code, which host your pipes
if you're in dev mode you can run the cli like this:
```bash
-screenpipe --pipe https://github.com/mediar-ai/screenpipe/edit/main/examples/typescript/pipe-stream-ocr-text/main.js
-```
-
-or dev your own pipe:
-
-```bash
-screenpipe --pipe myPipe.js
+curl -X POST "http://localhost:3030/pipes/download" \
+ -H "Content-Type: application/json" \
+ -d '{"url": "https://github.com/mediar-ai/screenpipe/tree/main/examples/typescript/pipe-stream-ocr-text"}' | jq
```
-please look at the code, it's 99% normal JS but there are limitations currently:
-- you cannot use dependencies (yet)
-- untested with typescript (but will make pipes TS first soon)
+this would download the pip in your local files
-i recommend you copy paste the current main.js file into AI and ask some changes for whatever you want to do, make sure to run an infinite loop also
+check `server.rs` to see how it works (copy paste in AI and ask questions)
-get featured in the pipe store:
+### get featured in the pipe store
<img width="1312" alt="Screenshot 2024-08-27 at 17 06 45" src="https://github.com/user-attachments/assets/b6856bf4-2cfd-4888-be11-ee7baae6b84b">
diff --git a/screenpipe-server/src/server.rs b/screenpipe-server/src/server.rs
index b85f5a181..602a3afd3 100644
--- a/screenpipe-server/src/server.rs
+++ b/screenpipe-server/src/server.rs
@@ -981,6 +981,12 @@ curl -X POST "http://localhost:3030/pipes/download" \
-H "Content-Type: application/json" \
-d '{"url": "./examples/typescript/pipe-stream-ocr-text"}' | jq
+
+curl -X POST "http://localhost:3030/pipes/download" \
+ -H "Content-Type: application/json" \
+ -d '{"url": "https://github.com/mediar-ai/screenpipe/tree/main/examples/typescript/pipe-stream-ocr-text"}' | jq
+
+
# Get info for a specific pipe
curl "http://localhost:3030/pipes/info/pipe-stream-ocr-text" | jq