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: remove Terminator, focus on consumer app

Louis Beaumont3d0985ca4463
diff --git a/content/docs-mintlify-mig-tmp/docs.json b/content/docs-mintlify-mig-tmp/docs.json
index a402f670a..0319d6a95 100644
--- a/content/docs-mintlify-mig-tmp/docs.json
+++ b/content/docs-mintlify-mig-tmp/docs.json
@@ -13,72 +13,17 @@
},
"logo": "favicon.ico",
"navigation": {
- "dropdowns": [
+ "tabs": [
{
- "dropdown": "Terminator",
- "icon": "robot",
+ "tab": "Getting Started",
"pages": [
- {
- "group": "Getting Started",
- "icon": "rocket",
- "pages": [
- "terminator/introduction",
- "terminator/getting-started"
- ]
- },
- {
- "group": "Reference",
- "icon": "code",
- "pages": [
- "terminator/js-sdk-reference",
- "terminator/python-sdk-reference"
- ]
- }
+ "home",
+ "getting-started",
+ "faq"
]
},
{
- "dropdown": "Screenpipe",
- "icon": "monitor-recorder",
- "pages": [
- {
- "group": "Getting Started",
- "icon": "rocket",
- "pages": [
- "home",
- "getting-started"
- ]
- },
- {
- "group": "Reference",
- "icon": "code",
- "pages": [
- "sdk-reference",
- "operator-api",
- "architecture",
- "cli-reference"
- ]
- },
- {
- "group": "Extend",
- "icon": "puzzle-piece",
- "pages": [
- "plugins",
- "mcp-server",
- "contributing"
- ]
- },
- {
- "group": "Help",
- "icon": "question-circle",
- "pages": [
- "faq"
- ]
- }
- ]
- },
- {
- "dropdown": "Screenpipe API Reference",
- "icon": "terminal",
+ "tab": "API Reference",
"openapi": "openapi.yaml"
}
]
diff --git a/content/docs-mintlify-mig-tmp/terminator/getting-started.mdx b/content/docs-mintlify-mig-tmp/terminator/getting-started.mdx
deleted file mode 100644
index 90e65259a..000000000
--- a/content/docs-mintlify-mig-tmp/terminator/getting-started.mdx
+++ /dev/null
@@ -1,38 +0,0 @@
----
-title: 'Terminator: Getting Started'
----
-
-## installation
-
-first, clone the terminator repository:
-
-```bash
-git clone https://github.com/mediar-ai/terminator
-cd terminator
-```
-
-## running the server
-
-**terminator** works with a client-server architecture. you need to run the rust server first. this server listens for commands from the sdk (typescript, python) and interacts with the operating system's accessibility apis.
-
-```bash
-powershell -ExecutionPolicy Bypass -File .\setup_windows.ps1
-./server_release/server.exe --debug
-```
-
-the `--debug` flag enables verbose logging, which is helpful when starting out.
-
-**run an example client (in another terminal):**
-
-```bash
-cd examples/hello-world
-npm i
-npm run dev
-# open http://localhost:3000
-```
-
-## next steps
-
-* explore the sdk references ([TypeScript](/terminator/js-sdk-reference), [Python](/terminator/python-sdk-reference)) to understand all available commands.
-* look at the `examples/` directory for more usage patterns.
-* start building your own automation scripts!
diff --git a/content/docs-mintlify-mig-tmp/terminator/introduction.mdx b/content/docs-mintlify-mig-tmp/terminator/introduction.mdx
deleted file mode 100644
index aae7c55f3..000000000
--- a/content/docs-mintlify-mig-tmp/terminator/introduction.mdx
+++ /dev/null
@@ -1,85 +0,0 @@
----
-title: 'Terminator: Introduction'
----
-
-import { Card, CardGroup } from '@mintlify/components';
-
-## overview
-
-**terminator** is an ai-first cross-platform ui automation library for rust, designed to interact with native gui applications on windows and macos using a playwright-like api via **python** or **typescript** sdks.
-
-it provides a unified api to find and control ui elements like buttons, text fields, windows, and more, enabling the creation of automation scripts, testing tools, and assistive technologies.
-
-because it's using os level apis, it is **100x faster and more reliable** for ai computer use than vision-based approaches like openai operator or anthropic computer use. acting at a lower level than a browser, it can easily drop-in replace browser automation tools like playwright for native application tasks.
-
-> **Note:** while we support macos and windows, we are currently focusing development efforts on windows. macos support is functional but may require more investigation for complex scenarios.
-
-## features
-
-<CardGroup cols={2}>
- <Card title="Cross-Platform">
- Experimentally supports **Windows** and **macOS** with a consistent api.
- </Card>
- <Card title="Application Control">
- Find running applications (by name, pid), open new applications, open URLs.
- </Card>
- <Card title="Element Discovery">
- Locate UI elements using various strategies (`Selector` enum):
- - Role (e.g., "button", "textfield", "AXButton")
- - Name (accessibility label/title)
- - Value
- - Description
- - AutomationId (Windows)
- - Id (internal unique id)
- - Text content (partial matches)
- </Card>
- <Card title="Element Interaction">
- - Click, double-click, right-click
- - Type text, set value, press keys (e.g., `{Enter}`, `{Cmd}`, `{Alt}`)
- - Focus, hover
- - Scroll (up, down, left, right)
- - Retrieve text content, attributes (value, role, description, bounds, properties)
- - Check state (enabled, visible, focused)
- </Card>
- <Card title="Element Hierarchy">
- Traverse the accessibility tree (children, parent).
- </Card>
- <Card title="Debugging">
- Optional verbose logging and accessibility inspector integration (like [Accessibility Insights](https://accessibilityinsights.io/downloads/)) for easier debugging.
- </Card>
-</CardGroup>
-
-## platform support
-
-* ✅ **windows** (using ui automation)
-* ✅ **macos** (using accessibility api)
-* 🐧 **linux** (planned/experimental)
-
-## use cases & potential experiments
-
-* **ai-driven automation loop:** an ai agent observes an application's state using terminator, generates sdk code to interact, executes it, and observes the result, enabling complex, adaptive automation (e.g., data entry, testing, user support).
-* **pdf to legacy form filler:** extract data from pdfs and use terminator to fill it into legacy applications lacking modern apis.
-* **javascript/typescript integration:** integrate terminator into web tools or electron apps using the [TypeScript SDK](/terminator/sdk-reference).
-* **python scripting:** build powerful automation scripts and integrate with other python libraries using the [Python SDK](/terminator/python-sdk-reference).
-* **replacing vision models:** achieve significantly faster and more reliable ui automation compared to slower, error-prone vision-based models for tasks where accessibility apis are available.
-
-## demos
-
-high level demo:
-
-<video controls src="https://github.com/user-attachments/assets/024c06fa-19f2-4fc9-b52d-329768ee52d0"></video>
-
-dev demo 1:
-
-<video controls src="https://github.com/user-attachments/assets/890d6842-782c-4b2b-8920-224bd63c4545"></video>
-
-dev demo 2:
-
-<video controls src="https://github.com/user-attachments/assets/c9f472f7-79ed-49c6-a4d0-93608fa1ce55"></video>
-
-## next steps
-
-ready to start? head over to the [Getting Started](/terminator/getting-started) guide, then dive into the sdk references:
-
-* [Python SDK Reference](/terminator/python-sdk-reference)
-* [TypeScript SDK Reference](/terminator/sdk-reference)
diff --git a/content/docs-mintlify-mig-tmp/terminator/js-sdk-reference.mdx b/content/docs-mintlify-mig-tmp/terminator/js-sdk-reference.mdx
deleted file mode 100644
index b4be79ad6..000000000
--- a/content/docs-mintlify-mig-tmp/terminator/js-sdk-reference.mdx
+++ /dev/null
@@ -1,263 +0,0 @@
----
-title: "Typescript SDK Reference"
-icon: "js"
----
-
-this page details the typescript sdk for interacting with the **terminator** server. it provides examples for common ui automation tasks, primarily focusing on windows applications.
-
-## setup
-
-first, ensure the terminator server is running (see [Getting Started](/terminator/getting-started)). then, install the necessary dependencies if you haven't already:
-
-```bash
-npm i # or bun install / yarn install
-```
-
-get the client and locator:
-
-```typescript
-import { DesktopUseClient } from 'desktop-use';
-
-const client = new DesktopUseClient(); // Connects to default 127.0.0.1:3000
-// const client = new DesktopUseClient('127.0.0.1:3001'); // Or specify host:port
-```
-
-## basic operations
-
-### opening applications and urls
-
-you can open applications by their name or path, and open urls in the default (or specified) browser.
-
-```typescript
-async function launchApps() {
- try {
- // open windows calculator
- console.log('opening calculator...');
- await client.openApplication('calc');
- console.log('calculator opened.');
-
- // wait a bit for the app to load (optional)
- await sleep(1000);
-
- // open notepad
- console.log('opening notepad...');
- await client.openApplication('notepad');
- console.log('notepad opened.');
-
- // open a url
- console.log('opening url...');
- await client.openUrl('https://github.com/mediar-ai/terminator');
- console.log('url opened.');
-
- } catch (error) {
- if (error instanceof ApiError) {
- console.error(`api error (${error.status}): ${error.message}`);
- } else {
- console.error('an unexpected error occurred:', error);
- }
- }
-}
-
-launchApps();
-
-// Utility function for delays
-function sleep(ms: number): Promise<void> {
- return new Promise(resolve => setTimeout(resolve, ms));
-}
-```
-
-### locating elements
-
-the `locator` method starts a chain to find elements. you can chain multiple locators to narrow down the search.
-
-selectors use the format `Strategy:Value`, e.g., `name:Calc`, `role:button`, `id:myButtonId`.
-
-```typescript
-// --- basic locators ---
-
-// locate the calculator window (windows 11 example)
-const calcWindow = client.locator('name:Calc');
-
-// locate the 'seven' button within the calculator window
-const sevenButton = calcWindow.locator('name:Seven');
-
-// locate the main text area in notepad
-const notepadWindow = client.locator('window:Notepad'); // might differ
-const editor = notepadWindow.locator('name:RichEditD2DPT'); // use accessibility insights tool to find correct class/id
-
-// --- chaining locators ---
-
-// directly locate the 'eight' button
-const eightButton = client.locator('name:Calc').locator('name:Eight');
-
-// locate the file menu item within notepad
-const fileMenu = client.locator('window:Notepad').locator('name:File');
-```
-
-### interacting with elements
-
-once you have a `Locator`, you can perform actions like clicking, typing, or getting text.
-
-```typescript
-async function interactWithCalc() {
- try {
- console.log('opening calculator...');
- await client.openApplication('calc');
- await sleep(1500); // give calc time to open
-
- // locate buttons by name (windows 11 calculator)
- const seven = client.locator('name:Calc').locator('name:Seven');
- const plus = client.locator('name:Calc').locator('name:Plus');
- const eight = client.locator('name:Calc').locator('name:Eight');
- const equals = client.locator('name:Calc').locator('name:Equals');
- const display = client.locator('name:Calc').locator('name:CalculatorResults'); // find result display
-
- console.log('clicking 7...');
- await seven.click();
- await sleep(200);
-
- console.log('clicking +...');
- await plus.click();
- await sleep(200);
-
- console.log('clicking 8...');
- await eight.click();
- await sleep(200);
-
- console.log('clicking =...');
- await equals.click();
- await sleep(500);
-
- // get the result
- const result = await display.getText();
- console.log(`calculation result: ${result.text}`); // should output something like "display is 15"
-
- } catch (error) {
- console.error('error interacting with calculator:', error);
- }
-}
-
-interactWithCalc();
-
-async function interactWithNotepad() {
- try {
- console.log('opening notepad...');
- await client.openApplication('notepad');
- await sleep(1000);
-
- const notepadWindow = client.locator('window:Notepad');
- const editor = notepadWindow.locator('name:RichEditD2DPT'); // adjust if necessary
-
- console.log('typing text...');
- await editor.typeText('hello from terminator!\nthis is a test.');
- await sleep(500);
-
- // press enter
- console.log('pressing enter...');
- await editor.pressKey('{enter}');
- await sleep(200);
-
- await editor.typeText('done.');
-
- const content = await editor.getText();
- console.log('notepad content retrieved:', content.text);
-
- } catch (error) {
- console.error('error interacting with notepad:', error);
- }
-}
-
-// interactWithNotepad(); // uncomment to run
-```
-
-*note: element selectors (like `name`, `id`, `role`) can vary between os versions and application updates. use tools like windows' accessibility insights to find the correct selectors for your target application or let AI figure it out.*
-
-### getting element state and attributes
-
-you can check properties like visibility or retrieve detailed attributes.
-
-```typescript
-async function checkElementState() {
- try {
- await client.openApplication('calc');
- await sleep(1000);
- const equalsButton = client.locator('button:Calculator').locator('name:Equals');
-
- const visible = await equalsButton.isVisible();
- console.log(`is equals button visible? ${visible}`);
-
- const attributes = await equalsButton.getAttributes();
- console.log('equals button attributes:', JSON.stringify(attributes, null, 2));
-
- const bounds = await equalsButton.getBounds();
- console.log(`equals button bounds: x=${bounds.x}, y=${bounds.y}, width=${bounds.width}, height=${bounds.height}`);
-
- } catch (error) {
- console.error('error checking element state:', error);
- }
-}
-
-// checkElementState(); // uncomment to run
-```
-
-## expectations
-
-**terminator** can wait for certain conditions to be met before proceeding or timing out.
-
-```typescript
-async function useExpectations() {
- try {
- console.log('opening notepad...');
- await client.openApplication('notepad.exe');
-
- const editorLocator = client.locator('window:Notepad').locator('name:RichEditD2DPT');
-
- // wait for the editor element to be visible (default timeout)
- console.log('waiting for editor to be visible...');
- const editorElement = await editorLocator.expectVisible();
- console.log(`editor is visible! id: ${editorElement.id}`);
-
- // wait for it to be enabled (with a 5-second timeout)
- console.log('waiting for editor to be enabled...');
- await editorLocator.expectEnabled(5000);
- console.log('editor is enabled!');
-
- await editorLocator.typeText('initial text.');
- await sleep(1000);
-
- // wait for the text to exactly match 'initial text.'
- console.log('waiting for text to match...');
- await editorLocator.expectTextEquals('initial text.', { timeout: 3000 });
- console.log('text matched!');
-
- // this would likely fail and throw an error after the timeout
- // console.log('waiting for incorrect text (will timeout)...');
- // await editorLocator.expectTextEquals('wrong text', { timeout: 2000 });
-
- } catch (error) {
- console.error('expectation error:', error);
- }
-}
-
-// useExpectations(); // uncomment to run
-```
-
-## error handling
-
-the sdk methods return promises that reject on failure. use `try...catch` blocks and check for `ApiError` instances.
-
-```typescript
-try {
- // attempt to find a non-existent element
- const nonExistent = client.locator('Name:DoesNotExist');
- await nonExistent.click();
-} catch (error) {
- if (error instanceof ApiError) {
- // handle specific api errors (e.g., element not found, timeout)
- console.error(`terminator api error (status: ${error.status}): ${error.message}`);
- } else {
- // handle other unexpected errors
- console.error('an unexpected javascript error occurred:', error);
- }
-}
-```
diff --git a/content/docs-mintlify-mig-tmp/terminator/python-sdk-reference.mdx b/content/docs-mintlify-mig-tmp/terminator/python-sdk-reference.mdx
deleted file mode 100644
index 0d6f200bb..000000000
--- a/content/docs-mintlify-mig-tmp/terminator/python-sdk-reference.mdx
+++ /dev/null
@@ -1,239 +0,0 @@
----
-title: "Python SDK Reference"
-icon: "python"
----
-
-this page details the python sdk for interacting with the **terminator** server. it provides examples for common ui automation tasks, primarily focusing on windows applications.
-
-## setup
-
-first, ensure the terminator server is running (see [Getting Started](/terminator/getting-started)).
-
-### installation
-
-```bash
-pip install desktop-use
-```
-
-### importing
-
-```python
-from desktop_use import DesktopUseClient, Locator, ApiError, sleep, ElementResponse
-# import other response models or exceptions as needed
-
-client = DesktopUseClient() # connects to default 127.0.0.1:3000
-# client = DesktopUseClient(base_url='127.0.0.1:3001') # or specify host:port
-```
-
-## basic operations
-
-### opening applications and urls
-
-```python
-def launch_apps():
- try:
- # open windows calculator
- print('opening calculator...')
- client.open_application('calc')
- print('calculator opened.')
-
- # wait a bit
- sleep(1000)
-
- # open notepad
- print('opening notepad...')
- client.open_application('notepad')
- print('notepad opened.')
-
- # open a url
- print('opening url...')
- client.open_url('https://github.com/mediar-ai/terminator')
- print('url opened.')
-
- except ApiError as e:
- print(f'api error (status: {e.status}): {e}')
- except Exception as e:
- print(f'an unexpected error occurred: {e}')
-
-# launch_apps()
-```
-
-### locating elements
-
-the `locator()` method starts a chain. selectors use the format `Strategy:Value`.
-
-```python
-# locate the calculator window (windows 11 example)
-calc_window = client.locator('window:Calculator')
-
-# locate the 'seven' button within the calculator window
-seven_button = calc_window.locator('role:button').locator('name:Seven')
-
-# locate the main text area in notepad (use accessibility insights tool to find correct class/id)
-notepad_editor = client.locator('window:Notepad').locator('role:richedit')
-
-# directly locate the 'eight' button
-eight_button = client.locator('window:Calculator').locator('role:button').locator('name:Eight')
-```
-
-### interacting with elements
-
-```python
-def interact_with_calc():
- try:
- print('opening calculator...')
- client.open_application('calc')
- sleep(1500) # give calc time to open
-
- # locate elements
- calc_window = client.locator('window:Calculator')
- seven = calc_window.locator('role:Button').locator('name:Seven')
- plus = calc_window.locator('role:Button').locator('name:Plus')
- eight = calc_window.locator('role:Button').locator('name:Eight')
- equals = calc_window.locator('role:Button').locator('name:Equals')
- display = calc_window.locator('name:CalculatorResults')
-
- print('clicking 7...')
- seven.click()
- sleep(200)
-
- print('clicking +...')
- plus.click()
- sleep(200)
-
- print('clicking 8...')
- eight.click()
- sleep(200)
-
- print('clicking =...')
- equals.click()
- sleep(500)
-
- # get the result
- result = display.get_text()
- print(f'calculation result: {result.text}') # e.g., "display is 15"
-
- except ApiError as e:
- print(f'api error interacting with calculator: {e}')
- except Exception as e:
- print(f'an unexpected error occurred: {e}')
-
-# interact_with_calc()
-
-def interact_with_notepad():
- try:
- print('opening notepad...')
- client.open_application('notepad')
- sleep(1000)
-
- editor = client.locator('window:Notepad').locator('role:RichEdit')
-
- print('typing text...')
- editor.type_text('hello from terminator!\nthis is a python test.')
- sleep(500)
-
- print('pressing enter...')
- editor.press_key('{Enter}')
- sleep(200)
-
- editor.type_text('done.')
-
- content = editor.get_text()
- print(f'notepad content retrieved: {content.text}')
-
- except ApiError as e:
- print(f'api error interacting with notepad: {e}')
- except Exception as e:
- print(f'an unexpected error occurred: {e}')
-
-# interact_with_notepad()
-```
-
-*note: element selectors can vary. use tools like windows' accessibility insights to find correct selectors.*
-
-### getting element state and attributes
-
-```python
-def check_element_state():
- try:
- client.open_application('calc')
- sleep(1000)
- equals_button = client.locator('window:Calculator').locator('role:Button').locator('Name:Equals')
-
- visible = equals_button.is_visible()
- print(f'is equals button visible? {visible}')
-
- attributes = equals_button.get_attributes()
- print(f'equals button attributes: {attributes}') # attributes is a dataclass
-
- bounds = equals_button.get_bounds()
- print(f'equals button bounds: x={bounds.x}, y={bounds.y}, width={bounds.width}, height={bounds.height}')
-
- except ApiError as e:
- print(f'api error checking element state: {e}')
- except Exception as e:
- print(f'an unexpected error occurred: {e}')
-
-# check_element_state()
-```
-
-## expectations
-
-use `expect_*` methods to wait for conditions.
-
-```python
-def use_expectations():
- try:
- print('opening notepad...')
- client.open_application('notepad')
-
- editor_locator = client.locator('window:Notepad').locator('role:RichEdit')
-
- # wait for the editor element to be visible (default timeout)
- print('waiting for editor to be visible...')
- editor_element: ElementResponse = editor_locator.expect_visible()
- print(f'editor is visible! id: {editor_element.id}')
-
- # wait for it to be enabled (with a 5-second timeout)
- print('waiting for editor to be enabled...')
- editor_locator.expect_enabled(timeout=5000)
- print('editor is enabled!')
-
- editor_locator.type_text('initial text.')
- sleep(1000)
-
- # wait for the text to exactly match 'initial text.'
- print('waiting for text to match...')
- editor_locator.expect_text_equals('initial text.', timeout=3000)
- print('text matched!')
-
- # this would likely fail and raise ApiError after the timeout
- # print('waiting for incorrect text (will timeout)...')
- # editor_locator.expect_text_equals('wrong text', timeout=2000)
-
- except ApiError as e:
- print(f'expectation error: {e}')
- except Exception as e:
- print(f'an unexpected error occurred: {e}')
-
-# use_expectations()
-```
-
-## error handling
-
-use `try...except` blocks, catching `ApiError` for server/automation issues and potentially `ConnectionError` for network problems.
-
-```python
-try:
- # attempt to find a non-existent element
- non_existent = client.locator('name:DoesNotExist')
- non_existent.click()
-except ApiError as e:
- # handle specific api errors (e.g., element not found, timeout)
- print(f'terminator api error (status: {e.status}): {e}')
-except ConnectionError as e:
- print(f'connection error: {e}. is the server running?')
-except Exception as e:
- # handle other unexpected errors
- print(f'an unexpected python error occurred: {e}')
-```