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

fix add copy button on docs

Louis Beaumont5ace6d2179ca
diff --git a/Formula/screenpipe.rb b/Formula/screenpipe.rb
index eb6832dc4..bcd7a6a99 100644
--- a/Formula/screenpipe.rb
+++ b/Formula/screenpipe.rb
@@ -15,7 +15,7 @@ class Screenpipe < Formula
end
depends_on "ffmpeg"
- depends_on "bun"
+ # depends_on "bun" # not available on brew?
def install
bin.install Dir["bin/*"]
diff --git a/content/docs/pages/docs/getting-started.mdx b/content/docs/pages/docs/getting-started.mdx
index 66e7d3869..5d89af030 100644
--- a/content/docs/pages/docs/getting-started.mdx
+++ b/content/docs/pages/docs/getting-started.mdx
@@ -9,7 +9,7 @@ screenpipe offers multiple installation methods depending on user needs and tech
for non technical users or those who want to get started quickly, we recommend getting the [desktop app here](https://screenpi.pe/onboarding).
quickly start the CLI on MacOS with:
-```bash
+```bash copy
brew tap mediar-ai/screenpipe https://github.com/mediar-ai/screenpipe.git
brew install screenpipe
screenpipe
@@ -17,7 +17,7 @@ screenpipe
then
-```bash
+```bash copy
open screenpipe-server/examples/timeline_ui/index.html # or open manually in your browser
```
@@ -66,36 +66,36 @@ for users preferring full control or customization, building the app manually fr
### **option 1: build from source (for advanced users)**
1. start by installing rust and all necessary dependencies:
- ```bash
+ ```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
+ ```bash copy
curl -fsSL https://bun.sh/install | bash
```
3. clone the screenpipe repository:
- ```bash
+ ```bash copy
git clone https://github.com/mediar-ai/screenpipe
cd screenpipe
```
4. build the project with:
- ```bash
+ ```bash copy
cargo build --release --features metal
```
5. finally, run screenpipe:
- ```bash
+ ```bash copy
./target/release/screenpipe
```
add this to your vscode settings in the root of the project `.vscode/settings.json`:
-```json
+```json copy
{
"rust-analyzer.cargo.features": [
"metal",
@@ -116,7 +116,7 @@ add this to your vscode settings in the root of the project `.vscode/settings.js
}
```
-```bash
+```bash copy
cd screenpipe-app-tauri
bun install
bun scripts/pre_build.js # <- this is important to copy the CLI into the app
@@ -131,18 +131,18 @@ bun tauri build
### **option 2: homebrew installation (installs only CLI)**
1. to install screenpipe using homebrew, simply execute the following commands:
- ```bash
+ ```bash copy
brew tap mediar-ai/screenpipe https://github.com/mediar-ai/screenpipe.git
brew install screenpipe
```
2. once installed, run screenpipe with the following:
- ```bash
+ ```bash copy
screenpipe
```
3. optional flags:
- ```bash
+ ```bash copy
screenpipe -h
```
@@ -165,7 +165,7 @@ If this does not work for you, please [open an issue](https://github.com/mediar-
Install 7zip: https://www.7-zip.org/download.html
-```batch
+```batch copy
choco install pkgconfiglite bun
winget install -e --id GnuWin32.UnZip
winget install -e --id Rustlang.Rustup
@@ -201,31 +201,31 @@ bun tauri build
### **option 1: build from source**
1. install dependencies with the following commands:
- ```bash
+ ```bash copy
sudo apt-get install -y ffmpeg tesseract-ocr cmake libavformat-dev libavfilter-dev libavdevice-dev libtesseract-dev libxdo-dev
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
```
2. install bun cli (required for building):
- ```bash
+ ```bash copy
curl -fsSL https://bun.sh/install | bash
```
3. clone the repository and build the application:
- ```bash
+ ```bash copy
git clone https://github.com/mediar-ai/screenpipe
cd screenpipe
cargo build --release
```
4. to run the application, use:
- ```bash
+ ```bash copy
./target/release/screenpipe
```
5. to build the desktop app:
-```bash
+```bash copy
cd screenpipe-app-tauri
bun install
bun scripts/pre_build.js # <- this is important to copy the CLI into the app
@@ -241,19 +241,19 @@ bun tauri build
screenpipe can be easily installed on nix-based systems. follow the instructions below:
1. run in a nix shell:
- ```bash
+ ```bash copy
nix-shell -p screen-pipe
```
2. or add it to your system packages:
- ```nix
+ ```nix copy
environment.systemPackages = with pkgs; [
screen-pipe
];
```
after editing the configuration, rebuild your system using:
- ```bash
+ ```bash copy
sudo nixos-rebuild switch
```
@@ -280,7 +280,7 @@ you can probably remove the updater config in your fork if you don't need it.
- check this [docker setup](https://github.com/sabrehagen/desktop-environment/blob/d273442143260b414c581d7a53be0618ca822bc0/docker/Dockerfile#L409-L421)
- use
-```bash
+```bash copy
export CARGO_PROFILE_RELEASE_LTO=true
export CARGO_PROFILE_RELEASE_OPT_LEVEL=z
export CARGO_PROFILE_RELEASE_CODEGEN_UNITS=1
diff --git a/content/docs/pages/docs/plugins.mdx b/content/docs/pages/docs/plugins.mdx
index 363e8ef3c..a9d3078d9 100644
--- a/content/docs/pages/docs/plugins.mdx
+++ b/content/docs/pages/docs/plugins.mdx
@@ -62,7 +62,7 @@ screenpipe's plugin system, referred to as **pipes**, allows you to create custo
users can begin by cloning an existing pipe, such as [pipe-phi3.5-engineering-team-logs](https://github.com/mediar-ai/screenpipe/tree/main/examples/typescript/pipe-phi3.5-engineering-team-logs). you can use any javascript/typescript to build your use case, from simple to highly advanced. the primary requirement is that the pipe folder must contain a file named `pipe.js` or `pipe.ts`.
-```bash
+```bash copy
git clone https://github.com/mediar-ai/screenpipe.git
cp -r screenpipe/examples/typescript/pipe-phi3.5-engineering-team-logs screenpipe/examples/typescript/my-pipe
```
@@ -82,7 +82,7 @@ we parse your `pipe.json` file to render in the UI the input fields for your pip
here's a snippet of a `pipe.json` for the pipe-post-questions-on-reddit:
-```json
+```json copy
{
"fields": [
{
@@ -107,7 +107,7 @@ here's a snippet of a `pipe.json` for the pipe-post-questions-on-reddit:
you can run your pipe manually with bun, for example:
-```bash
+```bash copy
# these are mandatory env variables
export SCREENPIPE_DIR="$HOME/.screenpipe"
export PIPE_ID="pipe-phi3.5-engineering-team-logs"
@@ -122,17 +122,17 @@ make sure to configure your pipe.json first
once the pipe is ready, follow these steps to make it work with `screenpipe`:
- **download the pipe** (from local or github url):
- ```bash
+ ```bash copy
screenpipe pipe download path/to/pipe-name
```
- **enable the pipe** (enabling will activate the pipe, similar to installing it in screenpipe):
- ```bash
+ ```bash copy
screenpipe pipe enable pipe-name
```
- **run the pipe** (restart screenpipe):
- ```bash
+ ```bash copy
screenpipe
```