Metadata-Version: 2.5
Name: streamembed
Version: 0.2.0
Summary: Search your own screen history by describing what you saw, from screenshots, on your machine
License-Expression: Apache-2.0
License-File: LICENSE
License-File: NOTICE
Keywords: embeddings,on-device,retrieval,screen-history,screenshots
Classifier: Operating System :: MacOS
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Scientific/Engineering :: Information Analysis
Requires-Python: >=3.12
Requires-Dist: huggingface-hub>=0.30
Requires-Dist: mss>=9
Requires-Dist: numpy>=2.2
Requires-Dist: pillow>=11
Requires-Dist: pyobjc-framework-quartz>=10; sys_platform == 'darwin'
Requires-Dist: qwen-vl-utils==0.0.14
Requires-Dist: safetensors>=0.4
Requires-Dist: torch==2.8.0
Requires-Dist: torchvision==0.23.0
Requires-Dist: transformers==5.17.0
Provides-Extra: dev
Requires-Dist: pytest>=8; extra == 'dev'
Provides-Extra: hnsw
Requires-Dist: chroma-hnswlib==0.7.6; extra == 'hnsw'
Description-Content-Type: text/markdown

# StreamEmbed

Search your own screen history by describing what you saw. StreamEmbed indexes the screenshots you already have and keeps capturing your screen as you work, then finds a past screen from a sentence such as "the flight page I saw yesterday". Everything runs on your machine.

## Installation

```bash
uv venv && source .venv/bin/activate
uv pip install streamembed

# or only the `streamembed` command, in an environment of its own
uv tool install streamembed

# with the "hnsw" index type (Python 3.12)
uv pip install "streamembed[hnsw]"
```

Python 3.12 or later. Tested on macOS with Apple silicon; Linux (X11) and Windows are supported but not yet tested on real machines. The first run downloads the model (about 4 GB). On macOS, allow Screen Recording for your terminal or Python when asked.

## Quick Start

From a terminal:

```bash
streamembed start --folder ~/Pictures/Screenshots      # index your screenshots, then capture every 5 s, now and after every login
streamembed search "the flight page I saw yesterday"   # prints the matches and opens a results page
streamembed status                                     # also: pause, resume, stop
streamembed config set interval 10                     # change a default
```

From Python:

```python
import streamembed as se

se.build_index_from_directory("~/Pictures/Screenshots")   # screenshots you already have
capture = se.build_index_from_now()                       # capture the screen every 5 s, in the background

results = se.query_index("the flight page I saw yesterday")
se.visualize_results(results)                             # an HTML page with each match and the screens before and after it
capture.stop()
```

Time words in a question ("yesterday", "this morning", "어제", "昨天") limit the search to that time. `streamembed config` lists every setting and its default.

## License

Apache-2.0. The model weights are downloaded from Hugging Face under their own licenses.
