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

level up docs based on user feedback

Louis Beaumont5c04cae3277e
diff --git a/content/docs/pages/docs/getting-started.mdx b/content/docs/pages/docs/getting-started.mdx
index dbf719f86..5a2cdd0c2 100644
--- a/content/docs/pages/docs/getting-started.mdx
+++ b/content/docs/pages/docs/getting-started.mdx
@@ -2,17 +2,21 @@ import MotionDiv from '../../components/motion-div'
import { Tabs, Tab } from 'nextra/components'
import Image from 'next/image'
+
# getting started
-### install now
+### choose your installation method
-<MotionDiv>
-screenpipe offers multiple installation methods. for most users, we recommend:
+| method | best for | pros | cons |
+|--------|----------|------|------|
+| [desktop app](https://screenpi.pe) | personal users, quick setup | easy gui, no terminal required | less customizable, automatic updates |
+| [cli](https://screenpi.pe) | developers, automation, scripting | fast, scriptable | requires terminal familiarity |
-1. downloading the [desktop app](https://screenpi.pe)
-2. or using our quick install CLI:
+### install desktop app
+- download the [desktop app](https://screenpi.pe) and follow the installation instructions.
-<Tabs items={['macos & linux', 'windows']}>
+### install cli
+<Tabs items={['macOS & Linux', 'Windows']}>
<Tab>
```bash copy
curl -fsSL get.screenpi.pe/cli | sh
@@ -27,7 +31,11 @@ screenpipe offers multiple installation methods. for most users, we recommend:
</Tab>
</Tabs>
-then query the data using our JavaScript SDK:
+### verify installation
+- run `screenpipe` or `screenpipe.exe` to verify successful installation.
+
+### query data with javascript sdk
+then query the data using our javaScript sdk:
```typescript copy
import { pipe } from "@screenpipe/js";
@@ -64,11 +72,8 @@ queryScreenpipe().catch(console.error);
now download the [desktop app](https://screenpi.pe) and use pipes (plugins) to add more features!
-</MotionDiv>
-
### connect to AI providers
-<MotionDiv>
screenpipe can connect to various AI providers to process your data. here's how to set up popular local AI providers:
<Tabs items={['ollama', 'lmstudio']}>
@@ -115,8 +120,6 @@ screenpipe can connect to various AI providers to process your data. here's how
verify your ai provider using any pipe in the store!
-</MotionDiv>
-
### for developers
if you're interested in building from source or contributing to screenpipe, please check our [contributing guide](https://github.com/mediar-ai/screenpipe/blob/main/CONTRIBUTING.md).
diff --git a/content/docs/pages/docs/plugins.mdx b/content/docs/pages/docs/plugins.mdx
index 98a8810e8..ea00b1408 100644
--- a/content/docs/pages/docs/plugins.mdx
+++ b/content/docs/pages/docs/plugins.mdx
@@ -97,6 +97,14 @@ bunx --bun @screenpipe/dev@latest login
bunx --bun @screenpipe/dev@latest pipe register --name my-pipe [--paid --price 9.99] # MAKE SURE TO SET THE PRICE IF YOU WANT TO SELL IT - IRREVERSIBLE
# you'll receive payouts to your stripe account on a daily basis
+# publish your pipe to the store
+bunx --bun @screenpipe/dev@latest pipe publish --name my-pipe
+# our team will review your pipe and publish it to the store
+# if approved, your pipe will be available in the store to everyone
+
+# list all versions of your pipe
+bunx --bun @screenpipe/dev@latest pipe list-versions --name my-pipe
+
# add predefined components to your pipe (shadcn style)
bunx --bun @screenpipe/dev@latest components add
# select components from the interactive menu:
@@ -108,14 +116,6 @@ bunx --bun @screenpipe/dev@latest components add
# - use-search-history: search history management
# - use-ai-provider: AI integration hooks
-# publish your pipe to the store
-bunx --bun @screenpipe/dev@latest pipe publish --name my-pipe
-# our team will review your pipe and publish it to the store
-# if approved, your pipe will be available in the store to everyone
-
-# list all versions of your pipe
-bunx --bun @screenpipe/dev@latest pipe list-versions --name my-pipe
-
# end current session
bunx --bun @screenpipe/dev@latest logout
```
diff --git a/content/docs/pages/docs/sdk-reference.mdx b/content/docs/pages/docs/sdk-reference.mdx
index 8cfdd7cef..8a673b5d7 100644
--- a/content/docs/pages/docs/sdk-reference.mdx
+++ b/content/docs/pages/docs/sdk-reference.mdx
@@ -76,7 +76,7 @@ import { pipe } from '@screenpipe/browser'
```typescript
const results = await pipe.queryScreenpipe({
- q: "meeting notes",
+ q: "john",
contentType: "ocr", // "ocr" | "audio" | "ui" | "all" | "audio+ui" | "ocr+ui" | "audio+ocr"
limit: 10,
offset: 0,
@@ -126,14 +126,13 @@ for (const item of results.data) {
#### searching for specific content
```typescript
-// Search for "meeting notes" in all applications
const results = await pipe.queryScreenpipe({
- q: "meeting notes",
- contentType: "all", // search across ocr, audio and ui
+ browserUrl: "discord*",
+ startTime: new Date(Date.now() - 1000 * 60 * 60 * 24).toISOString(),
limit: 20,
})
-// Process results based on content type
+// Process results based on content type, when using browserUrl, only OCR is available
for (const item of results.data) {
if (item.type === "OCR") {
console.log(`Screen text: ${item.content.text}`)
@@ -249,58 +248,27 @@ const pullRequests = githubActivity.filter(item =>
console.log(`Found ${pullRequests.length} pull request interactions`);
```
-### input control api
-requires building the backend with the `experimental` feature flag.
-`cargo build --release --features experimental`
+### vercel-like crons
-```typescript
-// type text
-await pipe.input.type("hello world")
+you need to add a `pipe.json` file to your pipe folder with this config for example:
-// press key
-await pipe.input.press("enter")
-
-// move mouse
-await pipe.input.moveMouse(100, 200)
-
-// click
-await pipe.input.click("left") // "left" | "right" | "middle"
+```json
+{
+ "crons": [
+ {
+ "path": "/api/log",
+ "schedule": "0 */5 * * *" // every 5 minutes
+ }
+ ]
+}
```
-#### automating repetitive tasks
+this will run the `/api/log` route every 5 minutes.
-```typescript
-// Example: Automate filling a form
-async function fillForm() {
- // Move to input field and click
- await pipe.input.moveMouse(300, 200)
- await pipe.input.click("left")
-
- // Type name
- await pipe.input.type("John Doe")
-
- // Tab to next field
- await pipe.input.press("tab")
-
- // Type email
- await pipe.input.type("[email protected]")
-
- // Tab to next field
- await pipe.input.press("tab")
-
- // Type message
- await pipe.input.type("This is an automated message")
-
- // Submit form
- await pipe.input.press("tab")
- await pipe.input.press("enter")
-}
+check how the obsidian pipe implements this, [route](https://github.com/mediar-ai/screenpipe/blob/main/pipes/obsidian/src/app/api/log/route.ts) and [pipe.json](https://github.com/mediar-ai/screenpipe/blob/main/pipes/obsidian/pipe.json) for a complete example.
-// Call the function
-await fillForm()
-```
### realtime streams
@@ -319,8 +287,33 @@ for await (const event of pipe.streamVision(true)) { // true to include images
}
```
+### react hooks sdk support ⚛️
+
+
+screenpipe provides first-class support for React applications through custom hooks, enabling seamless integration with your React components. while you can manually create hooks using libraries like [React Query](https://tanstack.com/query/v5/docs/framework/react/overview), we recommend leveraging our built-in CLI to quickly add pre-built, optimized hooks to your pipes.
+
+#### using the cli to add hooks
+
+the fastest way to integrate react hooks into your pipe is through our CLI:
+
+```bash copy
+bunx --bun @screenpipe/dev@latest components add
+```
+
+select from the interactive menu to add hooks such as:
+
+- `use-pipe-settings`: manage pipe-specific and global app settings.
+- `use-health`: monitor pipe health and status.
+- `use-ai-provider`: integrate seamlessly with ai providers.
+- `use-sql-autocomplete`: provide sql query assistance.
+
+these hooks follow best practices, ensuring type safety, efficient state management, and easy integration with your existing React components.
+
+
#### real-time meeting summarizer
+⚠️ make sure to enable real time transcription in the screenpipe app settings or CLI args.
+
```typescript
import OpenAI from 'openai'
@@ -572,6 +565,7 @@ export function SettingsComponent() {
}
```
+
#### best practices
- store pipe-specific settings under `customSettings.yourPipeName` in screenpipe app settings
@@ -814,73 +808,60 @@ const messages = await pipe.inbox.getMessages()
await pipe.inbox.clearMessages()
```
-### typescript types
-both sdks export comprehensive typescript types:
-```typescript
-import type {
- ContentType,
- ScreenpipeQueryParams,
- ScreenpipeResponse,
- OCRContent,
- AudioContent,
- UiContent,
- Speaker,
- NotificationOptions,
- Settings,
- // ... and more
-} from '@screenpipe/js' // or '@screenpipe/browser'
-```
+### input control api
-key types include:
+requires building the backend with the `experimental` feature flag.
+
+`cargo build --release --features experimental`
```typescript
-type ContentType = "all" | "ocr" | "audio" | "ui" | "audio+ui" | "ocr+ui" | "audio+ocr"
-
-interface ScreenpipeQueryParams {
- q?: string
- contentType?: ContentType
- limit?: number
- offset?: number
- startTime?: string
- endTime?: string
- appName?: string
- windowName?: string
- includeFrames?: boolean
- minLength?: number
- maxLength?: number
- speakerIds?: number[]
- frameName?: string
-}
+// type text
+await pipe.input.type("hello world")
-interface ScreenpipeResponse {
- data: ContentItem[] // OCR | Audio | UI content
- pagination: {
- limit: number
- offset: number
- total: number
- }
-}
-```
+// press key
+await pipe.input.press("enter")
-### error handling
+// move mouse
+await pipe.input.moveMouse(100, 200)
-```typescript
-try {
- const results = await pipe.queryScreenpipe({
- q: "meeting",
- contentType: "ocr"
- })
-} catch (error) {
- console.error("screenpipe api error:", error)
-}
+// click
+await pipe.input.click("left") // "left" | "right" | "middle"
```
+#### automating repetitive tasks
+```typescript
+// Example: Automate filling a form
+async function fillForm() {
+ // Move to input field and click
+ await pipe.input.moveMouse(300, 200)
+ await pipe.input.click("left")
+
+ // Type name
+ await pipe.input.type("John Doe")
+
+ // Tab to next field
+ await pipe.input.press("tab")
+
+ // Type email
+ await pipe.input.type("[email protected]")
+
+ // Tab to next field
+ await pipe.input.press("tab")
+
+ // Type message
+ await pipe.input.type("This is an automated message")
+
+ // Submit form
+ await pipe.input.press("tab")
+ await pipe.input.press("enter")
+}
-
-
+// Call the function
+await fillForm()
+```
### LLM links
@@ -889,3 +870,4 @@ paste these links into your Cursor chat for context:
- https://github.com/mediar-ai/screenpipe/blob/main/screenpipe-js/browser-sdk/src/index.ts
- https://github.com/mediar-ai/screenpipe/blob/main/screenpipe-js/node-sdk/src/index.ts
+
diff --git a/pipes/README.md b/pipes/README.md
index 7e3e6cffc..ae5947427 100644
--- a/pipes/README.md
+++ b/pipes/README.md
@@ -1 +1,10 @@
+
+to run a pipe locally, run `bun i` and `bun dev` in the pipe's folder. (or npm/pnpm/yarn)
+
+crons won't work unless you are installing the pipe to screenpipe:
+
+```bash
+screenpipe pipe install <path/to/pipe>
+```
+
check [docs](https://docs.screenpi.pe/docs/plugins).