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

udpate dosc

Louis Beaumontf4bf868eeea1
diff --git a/content/docs-mintlify-mig-tmp/terminator/getting-started.mdx b/content/docs-mintlify-mig-tmp/terminator/getting-started.mdx
index da507332b..52a4fa8bb 100644
--- a/content/docs-mintlify-mig-tmp/terminator/getting-started.mdx
+++ b/content/docs-mintlify-mig-tmp/terminator/getting-started.mdx
@@ -24,7 +24,9 @@ maturin develop
```python
import terminator
desktop = terminator.Desktop()
-print(desktop.hello()) # → "Hello from Terminator"
+desktop.open_application('calc')
+seven = desktop.locator('name:Seven')
+seven.click()
```
### 🟦 typescript / node.js
@@ -36,13 +38,63 @@ npm run build
```
```typescript
-const { Desktop } = require('./bindings/nodejs/index.js');
+const { Desktop } = require('../bindings/nodejs');
const desktop = new Desktop();
-console.log(desktop.hello()); // → "Hello from Terminator"
+await desktop.openApplication('notepad')
+await desktop.locator('name:Edit').typeText('hello world')
+```
+
+## more examples
+
+### calculator automation (python)
+
+```python
+import terminator
+
+# create desktop instance
+desktop = terminator.Desktop()
+
+# open calculator
+desktop.open_application('calc')
+
+# interact with calculator buttons
+seven = desktop.locator('name:Seven')
+plus = desktop.locator('name:Plus')
+equals = desktop.locator('name:Equals')
+
+# perform calculation: 7 + 7 = 14
+seven.click()
+plus.click()
+seven.click()
+equals.click()
+```
+
+### notepad automation (typescript)
+
+```typescript
+const { Desktop } = require('../bindings/nodejs');
+
+async function automateNotepad() {
+ const desktop = new Desktop();
+
+ // open notepad
+ await desktop.openApplication('notepad');
+
+ // find text editor and type
+ const editor = desktop.locator('name:Edit');
+ await editor.typeText('hello from terminator!\nthis is automated text input.');
+
+ // get the text back
+ const content = await editor.getText();
+ console.log('editor content:', content);
+}
+
+automateNotepad();
```
## next steps
-* explore the sdk references ([TypeScript](/terminator/js-sdk-reference), [Python](/terminator/python-sdk-reference)) to understand all available commands.
+* explore the sdk references ([typescript](/terminator/js-sdk-reference), [python](/terminator/python-sdk-reference)) to understand all available commands.
* check out the [pdf-to-form example](https://github.com/mediar-ai/terminator/tree/main/examples/pdf-to-form) to see terminator with ai.
+* join our [discord](https://discord.gg/dU9EBuw7Uq) for help and discussions.
* 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
index eafbf07ed..7cca78e56 100644
--- a/content/docs-mintlify-mig-tmp/terminator/introduction.mdx
+++ b/content/docs-mintlify-mig-tmp/terminator/introduction.mdx
@@ -6,32 +6,42 @@ import { Card, CardGroup } from '@mintlify/components';
## overview
-**terminator** is an ai-native gui automation sdk that lets ai agents see and control native desktop apps like they were web pages. automate desktop apps like a browser with fast, reliable, agent-ready automation for windows.
+**terminator** is the playwright-style sdk for automating windows gui apps. ai-native gui automation for windows, macos, linux. fast, reliable, agent-ready.
-because it uses accessibility apis, it is **100x faster and more reliable** for ai computer use than vision-based approaches like openai operator or anthropic computer use.
+automate desktop apps like a browser with **80ms ui scans** and **10000x speedup** via compiled workflows. because it uses os-level accessibility apis, it is **100x faster and more reliable** for ai computer use than vision-based approaches like openai operator or anthropic computer use.
-> **Note:** built for windows with partial macos support.
+> **note:** built for windows, works on macos (partial support), linux support coming soon.
+
+## 🧠 what is terminator?
+
+terminator is designed for ai agents, not humans. it provides:
+
+- 🪟 native support for windows, partial macos compatibility
+- 🧠 built specifically for ai agents
+- ⚡ uses os-level accessibility (not vision) for speed
+- 🧩 typescript, python, and rust support
+- 📈 80ms ui scans with massive performance advantages
## benchmarks
the [benchmark test](https://github.com/mediar-ai/terminator/blob/main/terminator/src/tests/e2e_tests.rs) illustrates how fast terminator can query the ui. it finds all edit elements in about **80 ms**, showcasing a big speed advantage over vision-based tools.
-this [form-filling app](https://www.mediar.ai/) can read & fill forms as soon as you see them in <1s end-to-end using gemini.
+this [form-filling app](https://www.mediar.ai/) can read & fill 1000 input forms as soon as you see them in <1s end-to-end using gemini.
## features
<CardGroup cols={2}>
<Card title="AI-Native">
- Built for **Windows** with playwright-style api for python, typescript, and rust.
+ built for **windows** with playwright-style api for python, typescript, and rust.
</Card>
<Card title="Fast & Reliable">
- Uses accessibility apis for 100x faster automation vs vision-based tools.
+ uses accessibility apis for 100x faster automation vs vision-based tools.
</Card>
<Card title="Element Discovery">
- Find ui elements by role, name, value, description, automationid, or text content.
+ find ui elements by role, name, value, description, automationid, or text content.
</Card>
<Card title="Full Interaction">
- Click, type, scroll, press keys, get text, check state - everything you need.
+ click, type, scroll, press keys, get text, check state - everything you need.
</Card>
</CardGroup>
@@ -44,14 +54,36 @@ check out terminator in action:
- [📹 technical overview video](https://youtu.be/ycS9G_jpl04)
- [📹 technical overview: pdf to windows legacy app form](https://www.youtube.com/watch?v=CMw3iexyCMI)
+## technical details & debugging
+
+### key dependencies
+- **windows:** [uiautomation-rs](https://github.com/leexgone/uiautomation-rs)
+- **macos:** native macos accessibility api (exploring [cidre](https://github.com/yury/cidre) as an alternative)
+
+### debugging tools
+
+**windows:**
+- [accessibility insights for windows](https://accessibilityinsights.io/downloads/)
+- **flauinspect:** a recommended alternative for inspecting ui automation properties on windows.
+ - install: `choco install flauinspect` or download from [flaui/flauinspect releases](https://github.com/flaui/flauinspect/releases).
+ - usage: launch `flauinspect.exe`, hover or click on elements to see properties like `automationid`, `name`, and `controltype`. this is great for debugging selectors.
+
## next steps
-ready to start? head over to the [Getting Started](/terminator/getting-started) guide, then dive into the sdk references:
+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/js-sdk-reference)
+* [python sdk reference](/terminator/python-sdk-reference)
+* [typescript sdk reference](/terminator/js-sdk-reference)
## explore further
* **vercel ai sdk example:** learn how to use terminator with ai in the [pdf-to-form example](https://github.com/mediar-ai/terminator/tree/main/examples/pdf-to-form).
* **mcp:** discover [how to vibe work using mcp](https://github.com/mediar-ai/terminator/tree/main/mcp).
+
+## contributing
+
+contributions are welcome! please feel free to submit issues and pull requests. many parts are experimental, and help is appreciated. join our [discord](https://discord.gg/dU9EBuw7Uq) to discuss.
+
+## businesses
+
+if you want desktop automation at scale for your business, [let's talk](https://mediar.ai)
diff --git a/content/docs-mintlify-mig-tmp/terminator/js-sdk-reference.mdx b/content/docs-mintlify-mig-tmp/terminator/js-sdk-reference.mdx
index 83752b171..66ca95478 100644
--- a/content/docs-mintlify-mig-tmp/terminator/js-sdk-reference.mdx
+++ b/content/docs-mintlify-mig-tmp/terminator/js-sdk-reference.mdx
@@ -1,5 +1,5 @@
---
-title: "Typescript SDK Reference"
+title: "typescript sdk reference"
icon: "js"
---
@@ -14,31 +14,30 @@ npm run build
```
```typescript
-const { Desktop } = require('./bindings/nodejs/index.js');
+const { Desktop } = require('../bindings/nodejs');
const desktop = new Desktop();
```
-
## basic usage
### opening applications
```typescript
// open calculator
-await client.openApplication('calc');
+await desktop.openApplication('calc');
// open notepad
-await client.openApplication('notepad');
+await desktop.openApplication('notepad');
// open url
-await client.openUrl('https://github.com/mediar-ai/terminator');
+await desktop.openUrl('https://github.com/mediar-ai/terminator');
```
### locating and interacting with elements
```typescript
// locate calculator window and buttons
-const calcWindow = client.locator('name:Calc');
+const calcWindow = desktop.locator('name:Calculator');
const sevenButton = calcWindow.locator('name:Seven');
const plusButton = calcWindow.locator('name:Plus');
@@ -47,7 +46,7 @@ await sevenButton.click();
await plusButton.click();
// type text in notepad
-const notepadEditor = client.locator('window:Notepad').locator('name:RichEditD2DPT');
+const notepadEditor = desktop.locator('window:Notepad').locator('name:Edit');
await notepadEditor.typeText('hello from terminator!');
// get text content
@@ -55,6 +54,27 @@ const result = await notepadEditor.getText();
console.log(result.text);
```
+### selector patterns
+
+terminator supports various selector patterns for finding elements:
+
+```typescript
+// by name
+desktop.locator('name:Seven')
+
+// by role
+desktop.locator('role:Button')
+
+// by automation id
+desktop.locator('automationid:CalculatorResults')
+
+// by window title
+desktop.locator('window:Calculator')
+
+// chaining selectors
+desktop.locator('window:Calculator').locator('role:Button').locator('name:Seven')
+```
+
### element state and attributes
```typescript
@@ -63,9 +83,11 @@ const isVisible = await sevenButton.isVisible();
// get element bounds
const bounds = await sevenButton.getBounds();
+console.log(`element at: ${bounds.x}, ${bounds.y}, size: ${bounds.width}x${bounds.height}`);
// get all attributes
const attributes = await sevenButton.getAttributes();
+console.log('element attributes:', attributes);
```
### expectations (waiting for conditions)
@@ -79,13 +101,50 @@ await editorLocator.expectEnabled(5000);
// wait for specific text
await editorLocator.expectTextEquals('expected text', { timeout: 3000 });
+
+// wait for element to contain text
+await editorLocator.expectTextContains('partial text');
+```
+
+### complete example
+
+```typescript
+const { Desktop } = require('../bindings/nodejs');
+
+async function automateCalculator() {
+ try {
+ const desktop = new Desktop();
+
+ // open calculator
+ await desktop.openApplication('calc');
+
+ // wait for calculator to be ready
+ const calcWindow = desktop.locator('window:Calculator');
+ await calcWindow.expectVisible();
+
+ // perform calculation: 7 + 7 = 14
+ await desktop.locator('name:Seven').click();
+ await desktop.locator('name:Plus').click();
+ await desktop.locator('name:Seven').click();
+ await desktop.locator('name:Equals').click();
+
+ // get result
+ const result = await desktop.locator('automationid:CalculatorResults').getText();
+ console.log('calculation result:', result.text);
+
+ } catch (error) {
+ console.error('automation failed:', error);
+ }
+}
+
+automateCalculator();
```
### error handling
```typescript
try {
- await client.locator('name:DoesNotExist').click();
+ await desktop.locator('name:DoesNotExist').click();
} catch (error) {
if (error instanceof ApiError) {
console.error(`api error (${error.status}): ${error.message}`);
diff --git a/content/docs-mintlify-mig-tmp/terminator/python-sdk-reference.mdx b/content/docs-mintlify-mig-tmp/terminator/python-sdk-reference.mdx
index 86ff7c32c..9580d18e5 100644
--- a/content/docs-mintlify-mig-tmp/terminator/python-sdk-reference.mdx
+++ b/content/docs-mintlify-mig-tmp/terminator/python-sdk-reference.mdx
@@ -1,5 +1,5 @@
---
-title: "Python SDK Reference"
+title: "python sdk reference"
icon: "python"
---
@@ -24,29 +24,29 @@ desktop = terminator.Desktop()
```python
# open calculator
-client.open_application('calc')
+desktop.open_application('calc')
# open notepad
-client.open_application('notepad')
+desktop.open_application('notepad')
# open url
-client.open_url('https://github.com/mediar-ai/terminator')
+desktop.open_url('https://github.com/mediar-ai/terminator')
```
### locating and interacting with elements
```python
# locate calculator window and buttons
-calc_window = client.locator('window:Calculator')
-seven = calc_window.locator('role:Button').locator('name:Seven')
-plus = calc_window.locator('role:Button').locator('name:Plus')
+calc_window = desktop.locator('window:Calculator')
+seven = calc_window.locator('name:Seven')
+plus = calc_window.locator('name:Plus')
# click buttons
seven.click()
plus.click()
# type text in notepad
-editor = client.locator('window:Notepad').locator('role:RichEdit')
+editor = desktop.locator('window:Notepad').locator('name:Edit')
editor.type_text('hello from terminator!')
# get text content
@@ -54,6 +54,27 @@ result = editor.get_text()
print(result.text)
```
+### selector patterns
+
+terminator supports various selector patterns for finding elements:
+
+```python
+# by name
+desktop.locator('name:Seven')
+
+# by role
+desktop.locator('role:Button')
+
+# by automation id
+desktop.locator('automationid:CalculatorResults')
+
+# by window title
+desktop.locator('window:Calculator')
+
+# chaining selectors
+desktop.locator('window:Calculator').locator('role:Button').locator('name:Seven')
+```
+
### element state and attributes
```python
@@ -62,9 +83,11 @@ is_visible = seven.is_visible()
# get element bounds
bounds = seven.get_bounds()
+print(f'element at: {bounds.x}, {bounds.y}, size: {bounds.width}x{bounds.height}')
# get all attributes
attributes = seven.get_attributes()
+print('element attributes:', attributes)
```
### expectations (waiting for conditions)
@@ -78,13 +101,79 @@ editor_locator.expect_enabled(timeout=5000)
# wait for specific text
editor_locator.expect_text_equals('expected text', timeout=3000)
+
+# wait for element to contain text
+editor_locator.expect_text_contains('partial text')
+```
+
+### complete example
+
+```python
+import terminator
+
+def automate_calculator():
+ try:
+ # create desktop instance
+ desktop = terminator.Desktop()
+
+ # open calculator
+ desktop.open_application('calc')
+
+ # wait for calculator to be ready
+ calc_window = desktop.locator('window:Calculator')
+ calc_window.expect_visible()
+
+ # perform calculation: 7 + 7 = 14
+ desktop.locator('name:Seven').click()
+ desktop.locator('name:Plus').click()
+ desktop.locator('name:Seven').click()
+ desktop.locator('name:Equals').click()
+
+ # get result
+ result = desktop.locator('automationid:CalculatorResults').get_text()
+ print(f'calculation result: {result.text}')
+
+ except Exception as e:
+ print(f'automation failed: {e}')
+
+automate_calculator()
+```
+
+### form automation example
+
+```python
+import terminator
+
+def automate_form():
+ desktop = terminator.Desktop()
+
+ # open application with form
+ desktop.open_application('notepad')
+
+ # find form fields and fill them
+ editor = desktop.locator('name:Edit')
+
+ # type structured data
+ form_data = """
+ name: john doe
+ phone: 555-0123
+ """
+
+ editor.type_text(form_data)
+
+ # verify content was entered
+ content = editor.get_text()
+ print('form content:', content.text)
+
+automate_form()
```
### error handling
```python
try:
- client.locator('name:DoesNotExist').click()
+ desktop.locator('name:DoesNotExist').click()
except ApiError as e:
print(f'api error (status: {e.status}): {e}')
except Exception as e: