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

simplify docs, simplify components/remove visual noise

Louis Beaumont584db2c16c88
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 7c58b81fe..4be197578 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -45,7 +45,6 @@ before you begin:
```bash
cd screenpipe-app-tauri
bun install
- bun scripts/pre_build.js
bun tauri build
```
@@ -117,7 +116,6 @@ before you begin:
cargo build --release
cd screenpipe-app-tauri
bun install
- bun scripts/pre_build.js
bun tauri build
```
@@ -150,7 +148,6 @@ before you begin:
```bash
cd screenpipe-app-tauri
bun install
- bun scripts/pre_build.js
bun tauri build
```
diff --git a/content/docs/pages/docs/contributing.mdx b/content/docs/pages/docs/contributing.mdx
index 11e2a19fd..121e5ad7e 100644
--- a/content/docs/pages/docs/contributing.mdx
+++ b/content/docs/pages/docs/contributing.mdx
@@ -1,2 +1,10 @@
+# contributing
-Please see the [contributing guide](https://github.com/mediar-ai/screenpipe/blob/main/CONTRIBUTING.md) for more information.
+for detailed contribution guidelines, build instructions, and development setup, please see our [contributing guide on github](https://github.com/mediar-ai/screenpipe/blob/main/CONTRIBUTING.md).
+
+### quick links
+
+- [report a bug](https://github.com/mediar-ai/screenpipe/issues/new?labels=bug)
+- [request a feature](https://github.com/mediar-ai/screenpipe/issues/new?labels=enhancement)
+- [join our discord](https://discord.gg/du9ebuw7uq)
+- [schedule a call](https://cal.com/louis030195/screenpipe)
diff --git a/content/docs/pages/docs/getting-started.mdx b/content/docs/pages/docs/getting-started.mdx
index 0b186def4..d48d8f229 100644
--- a/content/docs/pages/docs/getting-started.mdx
+++ b/content/docs/pages/docs/getting-started.mdx
@@ -6,24 +6,21 @@ import { Tabs, Tab } from 'nextra/components'
### install now
<MotionDiv>
+screenpipe offers multiple installation methods. for most users, we recommend:
-screenpipe offers multiple installation methods depending on user needs and technical proficiency. whether you are a developer looking to use the cli or a user who wants a more plug-and-play desktop app, screenpipe provides flexible options to get started quickly.
-
-for non technical users or those who want to get started quickly, we recommend getting the [desktop app here](https://screenpi.pe).
+1. downloading the [desktop app](https://screenpi.pe)
+2. or using our quick install CLI:
<Tabs items={['macos & linux', 'windows']}>
<Tab>
```bash copy
curl -fsSL get.screenpi.pe/cli | sh
screenpipe
- # make sure to allow permissions on macos (screen, mic)
```
</Tab>
<Tab>
```powershell copy
- # run as administrator
iwr get.screenpi.pe/cli.ps1 | iex
- # in a new terminal
screenpipe.exe
```
</Tab>
@@ -53,238 +50,12 @@ now download the [desktop app](https://screenpi.pe) and use pipes (plugins) to a
</MotionDiv>
+### for developers
-<MotionDiv delay={0.7}>
-
-### build from source
-
-for users preferring full control or customization, building the app manually from the repository is an option. this method requires rust and other necessary dependencies. follow the provided build guide to compile the app.
-
-</MotionDiv>
-
----
-
-#### macos
-
-
-1. start by installing rust and all necessary dependencies:
-```bash copy
-curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
-brew install pkg-config ffmpeg jq cmake wget
-```
-
-2. install bun cli (required for building):
-```bash copy
-curl -fsSL https://bun.sh/install | bash
-```
-
-3. clone the screenpipe repository:
-```bash copy
-git clone https://github.com/mediar-ai/screenpipe
-cd screenpipe
-```
-
-4. build the project with:
-```bash copy
-cargo build --release --features metal
-```
-
-5. finally, run screenpipe:
-```bash copy
-./target/release/screenpipe
-```
-
-6. to build the desktop app:
-
-```bash copy
-cd screenpipe-app-tauri
-bun install
-bun scripts/pre_build.js # <- this is important to copy the CLI into the app
-bun tauri build
-# MAKE SURE TO RUN THE CLI BUILD FIRST IN THE ROOT
-```
-
-[need help? open an issue on github.](https://github.com/mediar-ai/screenpipe/issues/new)
-
-
-
----
-
-#### windows
-
-
-if this does not work for you, please [open an issue](https://github.com/mediar-ai/screenpipe/issues/new?assignees=&labels=dislike&template=dislike.yml&title=windows+install+screenpipe+didnt+work) or get the pre-built [desktop app](https://screenpi.pe)
-
-1. install required tools:
-```powershell copy
-# install visual studio build tools
-winget install -e --id Microsoft.VisualStudio.2022.BuildTools
-
-# install rust
-winget install -e --id Rustlang.Rustup
-
-# install llvm
-winget install -e --id LLVM.LLVM
-
-# install cmake
-winget install -e --id Kitware.CMake
-
-# install unzip utility
-winget install -e --id GnuWin32.UnZip
-
-# install git
-winget install -e --id Git.Git
-
-# install bun (using npm)
-irm https://bun.sh/install.ps1 | iex
-
-# install pkg-config (download from https://sourceforge.net/projects/pkgconfiglite/files/)
-# download and extract to a folder in your PATH
-
-# clone and setup vcpkg
-cd C:\dev # or your preferred location
-$env:DEV_DIR = $(pwd)
-git clone https://github.com/microsoft/vcpkg.git
-cd vcpkg
-./bootstrap-vcpkg.bat -disableMetrics
-./vcpkg.exe integrate install --disable-metrics
-
-# install required libraries
-./vcpkg.exe install ffmpeg:x64-windows
-```
-
-2. environment variables
-
-add these to your system environment variables (windows settings -> system -> about -> advanced system settings -> environment variables):
-```powershell copy
-[System.Environment]::SetEnvironmentVariable('PKG_CONFIG_PATH', "$env:DEV_DIR\vcpkg\packages\ffmpeg_x64-windows\lib\pkgconfig", 'User')
-[System.Environment]::SetEnvironmentVariable('VCPKG_ROOT', "$env:DEV_DIR\vcpkg", 'User')
-[System.Environment]::SetEnvironmentVariable('LIBCLANG_PATH', 'C:\Program Files\LLVM\bin', 'User')
-[System.Environment]::SetEnvironmentVariable('PATH', "$([System.Environment]::GetEnvironmentVariable('PATH', 'User'));C:\Program Files (x86)\GnuWin32\bin", 'User')
-```
-
-3. clone and build:
-```powershell copy
-# clone the repo
-git clone https://github.com/mediar-ai/screenpipe
-cd screenpipe
-
-# build the cli
-cargo build --release
-
-# build the desktop app
-cd screenpipe-app-tauri
-bun install
-bun scripts/pre_build.js
-bun tauri build
-```
-
-
-
-
----
-
-#### linux
-
-1. install dependencies with the following commands:
-```bash copy
-sudo apt-get update
-sudo apt-get install -y g++ ffmpeg tesseract-ocr cmake pkg-config \
- libavformat-dev libavfilter-dev libavdevice-dev libavcodec-dev libavutil-dev libswscale-dev \
- libssl-dev libtesseract-dev libxdo-dev libsdl2-dev libclang-dev \
- libxtst-dev build-essential libasound2-dev libdbus-1-dev \
- libxcb1-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev \
- libx11-dev libxi-dev libxext-dev libxrandr-dev libxinerama-dev libxcursor-dev \
- clang llvm-dev
-
-# set libclang path (for ubuntu/debian with llvm-14)
-export LIBCLANG_PATH=/usr/lib/llvm-14/lib
-
-# install rust
-curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
-```
-
-2. install bun cli (required for pipes & building desktop app):
-```bash copy
-curl -fsSL https://bun.sh/install | bash
-```
-
-3. clone the repository and build the application:
-```bash copy
-git clone https://github.com/mediar-ai/screenpipe
-cd screenpipe
-cargo build --release
-# add --features cuda for gpu support (experimental)
-# add --features mkl for intel accelerated cpu support (experimental)
-```
-
-4. to run the application, use:
-```bash copy
-./target/release/screenpipe
-```
-
-5. to build the desktop app:
-
-```bash copy
-cd screenpipe-app-tauri
-bun install
-bun scripts/pre_build.js # <- this is important to copy the CLI into the app
-bun tauri build
-```
-
-
-#### linux docker
-
-[check out the docker setup here](https://github.com/sabrehagen/desktop-environment/blob/730a3134362927f8965589f6322b4554e0a5e388/docker/Dockerfile#L403)
-
-#### gpu acceleration options
-
-##### cuda support (nvidia gpus)
-to enable cuda support, add the `--features cuda` flag when building:
-```bash copy
-cargo build --release --features cuda
-```
-##### intel mkl support
-for intel cpu optimization, add the `--features mkl` flag:
-```bash copy
-cargo build --release --features mkl
-```
-
-### troubleshooting
-
-- facing any key signing issues? you need to [sign the build for the updater then](https://v2.tauri.app/plugin/updater/#signing-updates)
-
-### important note for developers
-
-if you encounter key-related errors when building from source, especially for the desktop app, you may need to sign your updates. this is particularly important for our production builds and ensuring secure update processes.
-
-for detailed instructions on signing updates, please refer to the [tauri updater documentation](https://v2.tauri.app/plugin/updater/#signing-updates).
-
-you can probably remove the updater config in your fork if you don't need it.
-
-
-### other options
-
-- check this [docker setup](https://github.com/sabrehagen/desktop-environment/blob/d273442143260b414c581d7a53be0618ca822bc0/docker/Dockerfile#L409-L421)
-- use
-```bash copy
-export CARGO_PROFILE_RELEASE_LTO=true
-export CARGO_PROFILE_RELEASE_OPT_LEVEL=z
-export CARGO_PROFILE_RELEASE_CODEGEN_UNITS=1
-```
-to build a faster and smaller release but takes longer to build
-
-### for businesses
+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).
-you can use screenpipe in your business either by:
-- running the CLI on your customer's computer
-- running the app on your customer's computer
-- embedding the library or CLI in your own software:
- - [template to build screenpipe-powered desktop native app using Tauri](https://github.com/LorenzoBloedow/screenpipe-tauri-template-dev)
- - [template to build screenpipe-powered desktop native app using Electron](https://github.com/neo773/screenpipe-electron)
-- running the CLI in the cloud and forward the video/audio through SSH
-- using our Microsoft Remote Desktop integration
+### for businesses
-[book a demo with our team](https://cal.com/louis030195/screenpipe-for-businesses)
+[details about business usage...]
diff --git a/screenpipe-app-tauri/components/dev-mode-settings.tsx b/screenpipe-app-tauri/components/dev-mode-settings.tsx
index 475e12cc5..912376b73 100644
--- a/screenpipe-app-tauri/components/dev-mode-settings.tsx
+++ b/screenpipe-app-tauri/components/dev-mode-settings.tsx
@@ -177,30 +177,41 @@ export const DevModeSettings = ({ localDataDir }: { localDataDir: string }) => {
return (
<>
- <div className="w-full my-4">
- <div className="flex justify-around">
+ <div className="w-full my-4 flex justify-center">
+ <div className="flex-col justify-around space-y-4 w-[40vw]">
<Card className="p-8 relative">
<CardContent>
- <div className="flex flex-col space-y-2">
- <div className="flex items-center justify-between">
- <div className="flex items-center space-x-2">
- <Label htmlFor="dev-mode">enable dev mode</Label>
- <Switch
- id="dev-mode"
- checked={settings.devMode}
- onCheckedChange={handleDevModeToggle}
- />
+ <div className="flex flex-col ">
+ <div className="flex items-center justify-center">
+ <div className="flex items-center justify-center ">
+ <TooltipProvider>
+ <Tooltip>
+ <TooltipTrigger asChild>
+ <div className="flex items-center space-x-2">
+ <Label htmlFor="dev-mode">enable dev mode</Label>
+ <Switch
+ id="dev-mode"
+ checked={settings.devMode}
+ onCheckedChange={handleDevModeToggle}
+ />
+ </div>
+ </TooltipTrigger>
+ <TooltipContent>
+ <p>
+ on = use CLI for more control
+ <br />
+ in dev mode, backend won&apos;t
+ <br />
+ auto start when starting the app
+ </p>
+ </TooltipContent>
+ </Tooltip>
+ </TooltipProvider>
</div>
<div className="absolute top-2 right-2">
<CliCommandDialog settings={settings} />
</div>
</div>
- <p className="text-sm text-muted-foreground mb-4">
- on = use CLI for more control
- <br />
- in dev mode, backend won&apos;t <br />
- auto start when starting the app
- </p>
</div>
</CardContent>
</Card>
@@ -251,7 +262,7 @@ export const DevModeSettings = ({ localDataDir }: { localDataDir: string }) => {
</CardContent>
<CardFooter className="flex flex-col items-center">
<p className="text-sm text-muted-foreground">
- start or stop screenpipe recording
+ manually start or stop screenpipe recording
</p>
<p className="text-xs text-muted-foreground">
(auto started when dev mode is off)
@@ -261,54 +272,6 @@ export const DevModeSettings = ({ localDataDir }: { localDataDir: string }) => {
</div>
</div>
</div>
- {/* vertical separator */}
- <Separator orientation="vertical" />
- {settings.devMode === true && (
- <>
- <p className="font-bold my-2">
- did you run screenpipe backend? either click start on the right, or
- thru CLI 👇
- </p>
- <CodeBlock
- language="bash"
- value={getDebuggingCommands(platform(), localDataDir)}
- />
-
- <div className="mt-4 text-sm text-gray-500">
- <p>or, for more advanced queries:</p>
- <ol className="list-decimal list-inside mt-2">
- <li>
- <a
- href="https://github.com/mediar-ai/screenpipe/blob/main/screenpipe-server/src/db.rs"
- target="_blank"
- rel="noopener noreferrer"
- className="text-blue-500 hover:underline"
- >
- go to the database schema
- </a>
- </li>
- <li>Copy the entire page (Cmd+A, Cmd+C)</li>
- <li>Paste into ChatGPT (Cmd+V)</li>
- <li>
- ask: &quot;give me 10 sqlite query CLI to look up my data. My db
- is in {localDataDir}/db.sqlite&quot;
- </li>
- </ol>
- <p className="mt-2">
- or if you prefer using curl, follow the same steps with the{" "}
- <a
- href="https://github.com/mediar-ai/screenpipe/blob/main/screenpipe-server/src/server.rs"
- target="_blank"
- rel="noopener noreferrer"
- className="text-blue-500 hover:underline"
- >
- server.rs file
- </a>{" "}
- and ask ChatGPT for curl commands to interact with the API.
- </p>
- </div>
- </>
- )}
</>
);
};
diff --git a/screenpipe-app-tauri/src-tauri/Cargo.lock b/screenpipe-app-tauri/src-tauri/Cargo.lock
index 8842c90ff..8b5b5dab8 100755
--- a/screenpipe-app-tauri/src-tauri/Cargo.lock
+++ b/screenpipe-app-tauri/src-tauri/Cargo.lock
@@ -5289,7 +5289,7 @@ dependencies = [
[[package]]
name = "screenpipe-app"
-version = "0.31.9"
+version = "0.32.5"
dependencies = [
"anyhow",
"async-stream",
diff --git a/screenpipe-server/src/server.rs b/screenpipe-server/src/server.rs
index eed8b720b..7ac128a44 100644
--- a/screenpipe-server/src/server.rs
+++ b/screenpipe-server/src/server.rs
@@ -1,7 +1,7 @@
use axum::{
body::Body,
extract::{
- ws::{Message, WebSocket, WebSocketUpgrade, CloseFrame},
+ ws::{Message, WebSocket, WebSocketUpgrade},
Json, Path, Query, State,
},
http::StatusCode,
@@ -34,8 +34,8 @@ use crate::{
};
use crate::{plugin::ApiPluginLayer, video_utils::extract_frame};
use chrono::{DateTime, Utc};
-use tracing::{debug, error, info};
use screenpipe_audio::{default_input_device, default_output_device, list_audio_devices};
+use tracing::{debug, error, info};
use screenpipe_vision::monitor::list_monitors;
use screenpipe_vision::OcrEngine;
@@ -1957,7 +1957,7 @@ async fn handle_health_socket(mut socket: WebSocket, state: Arc<AppState>) {
}
}
}
-
+
debug!("WebSocket connection closed gracefully");
}