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

docs: add LLM links

Louis Beaumontb093323c4d35
diff --git a/content/docs/pages/docs/api-reference.mdx b/content/docs/pages/docs/api-reference.mdx
index 933b65525..6a096733d 100644
--- a/content/docs/pages/docs/api-reference.mdx
+++ b/content/docs/pages/docs/api-reference.mdx
@@ -503,3 +503,10 @@ or
</MotionDiv>
+### LLM links
+
+paste these links into your Cursor chat for context:
+
+- https://github.com/mediar-ai/screenpipe/blob/main/screenpipe-server/src/server.rs
+- https://github.com/mediar-ai/screenpipe/blob/main/screenpipe-server/src/db.rs
+
diff --git a/content/docs/pages/docs/architecture.mdx b/content/docs/pages/docs/architecture.mdx
index 265cadaa3..b6066dca2 100644
--- a/content/docs/pages/docs/architecture.mdx
+++ b/content/docs/pages/docs/architecture.mdx
@@ -99,3 +99,13 @@ Uses 600 MB, 10% CPU.
- [ ] abstractions for multiplayer usage (e.g. aggregate sales team data, company team data, partner, etc.)
</MotionDiv>
+
+### LLM links
+
+paste these links into your Cursor chat for context:
+
+- https://github.com/mediar-ai/screenpipe/blob/main/screenpipe-server/src/server.rs
+- https://github.com/mediar-ai/screenpipe/blob/main/screenpipe-server/src/core.rs
+- https://github.com/mediar-ai/screenpipe/blob/main/screenpipe-audio/src/core.rs
+- https://github.com/mediar-ai/screenpipe/blob/main/screenpipe-vision/src/core.rs
+
diff --git a/content/docs/pages/docs/cli-reference.mdx b/content/docs/pages/docs/cli-reference.mdx
index b216da205..e7a1e6980 100644
--- a/content/docs/pages/docs/cli-reference.mdx
+++ b/content/docs/pages/docs/cli-reference.mdx
@@ -372,3 +372,11 @@ The `screenpipe` CLI supports generating shell completions for popular shells. F
</MotionDiv>
+
+### LLM links
+
+paste these links into your Cursor chat for context:
+
+- https://github.com/mediar-ai/screenpipe/blob/main/screenpipe-server/src/bin/screenpipe-server.rs
+- https://github.com/mediar-ai/screenpipe/blob/main/screenpipe-server/src/cli.rs
+
diff --git a/content/docs/pages/docs/plugins.mdx b/content/docs/pages/docs/plugins.mdx
index c871ae28a..7e30baf2d 100644
--- a/content/docs/pages/docs/plugins.mdx
+++ b/content/docs/pages/docs/plugins.mdx
@@ -18,7 +18,7 @@ regardless of progress in AI architecture, it's as good as the given context. sc
#### for developers
- **zero infrastructure**: 100% local by default, no servers or complex setups, access to your auth tokens (unlike cloud agents)
-- **typescript + rust + bun**: blazing fast environment, highly optimized pipeline, 4 AI models, running on $200 laptops
+- **typescript + rust + bun**: blazing fast environment, highly optimized pipeline, 4 AI models, running on $200 laptops, best local STT in the market
- **full context**: rich OCR, desktop scrapping, keyboard/mouse, and audio transcription APIs
- **open source**: no BS, no tricks, MIT license
- **monetization ready**: Stripe integration to monetize your pipes
@@ -95,7 +95,7 @@ bunx --bun @screenpipe/dev@latest login --apiKey <your-key>
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
-# add predefined components to your pipe
+# add predefined components to your pipe (shadcn style)
bunx --bun @screenpipe/dev@latest components add
# select components from the interactive menu:
# - use-health: health monitoring hooks
@@ -129,15 +129,26 @@ when you're ready to deploy, send a PR to the [screenpipe repo](https://github.c
| **memories gallery** | google-photo like gallery of your screen recordings with AI insights | [link](https://github.com/mediar-ai/screenpipe/tree/main/pipes/memories) |
| **data table** | explore your data in a powerful table view with filtering and sorting | [link](https://github.com/mediar-ai/screenpipe/tree/main/pipes/data-table) |
| **search** | search through your screen recordings and audio transcripts with AI | [link](https://github.com/mediar-ai/screenpipe/tree/main/pipes/search) |
-| **timeline** | visualize your day with AI-powered timeline of activities | [link](https://github.com/mediar-ai/screenpipe/tree/main/pipes/timeline) |
+| **rewind** | visualize your day with AI-powered timeline of activities | [link](https://github.com/mediar-ai/screenpipe/tree/main/pipes/rewind) |
| **speaker identification** | automatically identify and label different speakers using AI | [link](https://github.com/mediar-ai/screenpipe/tree/main/pipes/identify-speakers) |
| **obsidian logs** | automate your second brain by logging activities to obsidian | [link](https://github.com/mediar-ai/screenpipe/tree/main/pipes/obsidian) |
| **meeting assistant** | organize and summarize meetings with AI - get transcripts and insights | [link](https://github.com/mediar-ai/screenpipe/tree/main/pipes/meeting) |
-| **linkedin ai agent** | automate business development on linkedin | [link](https://github.com/mediar-ai/screenpipe/tree/main/pipes/linkedin_ai_assistant) |
-| **loom** | generate looms from your screenpipe data | [link](https://github.com/mediar-ai/screenpipe/tree/main/pipes/pipe-for-loom) |
+| **linkedin ai agent** | automate business development on linkedin | [link](https://github.com/mediar-ai/screenpipe/tree/main/pipes/linkedin-ai-assistant) |
</MotionDiv>
to install a pipe from the store, just add the url of the folder in the UI and click install.
+### LLM links
+
+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/pipes/obsidian/src/app/api/log/route.ts
+- https://github.com/mediar-ai/screenpipe/blob/main/pipes/search/src/components/search-chat.tsx
+- https://github.com/mediar-ai/screenpipe/blob/main/screenpipe-server/src/server.rs
+- https://github.com/mediar-ai/screenpipe/blob/main/screenpipe-core/src/pipes.rs
+
+
+
diff --git a/content/docs/pages/docs/sdk-reference.mdx b/content/docs/pages/docs/sdk-reference.mdx
index d33307c59..ae63f781c 100644
--- a/content/docs/pages/docs/sdk-reference.mdx
+++ b/content/docs/pages/docs/sdk-reference.mdx
@@ -238,3 +238,202 @@ check out our [production pipe examples](https://github.com/mediar-ai/screenpipe
these examples demonstrate best practices and common patterns when building with screenpipe's sdk.
</MotionDiv>
+
+<MotionDiv delay={0.7}>
+
+### settings management
+
+<MotionDiv delay={0.7}>
+
+pipes can access and modify screenpipe app settings through the SDK. this is useful for storing pipe-specific configuration and accessing global app settings.
+
+#### quick start with CLI
+
+the fastest way to add settings management to your pipe is using our CLI:
+
+```bash copy
+bunx --bun @screenpipe/dev@latest components add
+# select "use-pipe-settings" from the menu
+```
+
+this will add the following components to your pipe:
+- `use-pipe-settings` hook for react components
+- `get-screenpipe-app-settings` server action
+- required typescript types
+
+#### manual setup
+
+1. create types for your settings:
+
+```typescript
+// src/lib/types.ts
+import type { Settings as ScreenpipeAppSettings } from '@screenpipe/js'
+
+export interface Settings {
+ // your pipe specific settings
+ customSetting?: string
+ anotherSetting?: number
+
+ // screenpipe app settings
+ screenpipeAppSettings?: ScreenpipeAppSettings
+}
+```
+
+2. create server action to access settings:
+
+```typescript
+// src/lib/actions/get-screenpipe-app-settings.ts
+import { pipe } from '@screenpipe/js'
+import type { Settings as ScreenpipeAppSettings } from '@screenpipe/js'
+
+export async function getScreenpipeAppSettings() {
+ return await pipe.settings.getAll()
+}
+
+export async function updateScreenpipeAppSettings(
+ newSettings: Partial<ScreenpipeAppSettings>
+) {
+ return await pipe.settings.update(newSettings)
+}
+```
+
+3. create react hook for settings management:
+
+```typescript
+// src/lib/hooks/use-pipe-settings.tsx
+import { useState, useEffect } from 'react'
+import { Settings } from '@/lib/types'
+import {
+ getScreenpipeAppSettings,
+ updateScreenpipeAppSettings,
+} from '@/lib/actions/get-screenpipe-app-settings'
+
+const DEFAULT_SETTINGS: Partial<Settings> = {
+ customSetting: 'default value',
+ anotherSetting: 42,
+}
+
+export function usePipeSettings() {
+ const [settings, setSettings] = useState<Partial<Settings> | null>(null)
+ const [loading, setLoading] = useState(true)
+
+ useEffect(() => {
+ loadSettings()
+ }, [])
+
+ const loadSettings = async () => {
+ try {
+ // load screenpipe app settings
+ const screenpipeSettings = await getScreenpipeAppSettings()
+
+ // get pipe specific settings from customSettings
+ const pipeSettings = {
+ ...(screenpipeSettings.customSettings?.yourPipeName && {
+ ...screenpipeSettings.customSettings.yourPipeName,
+ }),
+ }
+
+ // merge everything together
+ setSettings({
+ ...DEFAULT_SETTINGS,
+ ...pipeSettings,
+ screenpipeAppSettings: screenpipeSettings,
+ })
+ } catch (error) {
+ console.error('failed to load settings:', error)
+ } finally {
+ setLoading(false)
+ }
+ }
+
+ const updateSettings = async (newSettings: Partial<Settings>) => {
+ try {
+ // split settings
+ const { screenpipeAppSettings, ...pipeSettings } = newSettings
+
+ const mergedPipeSettings = {
+ ...DEFAULT_SETTINGS,
+ ...pipeSettings,
+ }
+
+ // update screenpipe settings if provided
+ await updateScreenpipeAppSettings({
+ ...screenpipeAppSettings,
+ customSettings: {
+ ...screenpipeAppSettings?.customSettings,
+ yourPipeName: pipeSettings,
+ },
+ })
+
+ // update state with everything
+ setSettings({
+ ...mergedPipeSettings,
+ screenpipeAppSettings:
+ screenpipeAppSettings || settings?.screenpipeAppSettings,
+ })
+ return true
+ } catch (error) {
+ console.error('failed to update settings:', error)
+ return false
+ }
+ }
+
+ return { settings, updateSettings, loading }
+}
+```
+
+4. use in your components:
+
+```typescript
+import { usePipeSettings } from '@/lib/hooks/use-pipe-settings'
+
+export function SettingsComponent() {
+ const { settings, updateSettings, loading } = usePipeSettings()
+
+ if (loading) return <div>loading...</div>
+
+ return (
+ <form onSubmit={async (e) => {
+ e.preventDefault()
+ const formData = new FormData(e.target as HTMLFormElement)
+ await updateSettings({
+ customSetting: formData.get('customSetting') as string,
+ anotherSetting: parseInt(formData.get('anotherSetting') as string),
+ })
+ }}>
+ <input
+ name="customSetting"
+ defaultValue={settings?.customSetting}
+ />
+ <input
+ name="anotherSetting"
+ type="number"
+ defaultValue={settings?.anotherSetting}
+ />
+ <button type="submit">save</button>
+ </form>
+ )
+}
+```
+
+#### best practices
+
+- store pipe-specific settings under `customSettings.yourPipeName` in screenpipe app settings
+- use typescript for type safety
+- provide default values for all settings
+- handle loading and error states
+- validate settings before saving
+- use server actions for settings operations
+- consider using shadcn/ui components for consistent UI
+
+see the [obsidian pipe](https://github.com/mediar-ai/screenpipe/tree/main/pipes/obsidian) for a complete example of settings management.
+
+</MotionDiv>
+
+### LLM links
+
+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/screenpipe-js/cli/src/commands/components/commands/add/registry/registry.json b/screenpipe-js/cli/src/commands/components/commands/add/registry/registry.json
index 252581921..ce53feb7d 100644
--- a/screenpipe-js/cli/src/commands/components/commands/add/registry/registry.json
+++ b/screenpipe-js/cli/src/commands/components/commands/add/registry/registry.json
@@ -10,6 +10,17 @@
"@types/lodash"
]
},
+ "update-pipe-config": {
+ "name": "update-pipe-config",
+ "src": "https://api.github.com/repos/mediar-ai/screenpipe/contents/pipes/obsidian/src/lib/actions/update-pipe-config.tsx",
+ "target": "./src/lib/actions/update-pipe-config.tsx",
+ "dependencies": [
+ "@screenpipe/browser"
+ ],
+ "registryDependencies": [
+ "types"
+ ]
+ },
"use-pipe-settings": {
"name": "use-pipe-settings",
"src": "https://api.github.com/repos/mediar-ai/screenpipe/contents/pipes/obsidian/src/lib/hooks/use-pipe-settings.tsx",