nanorecall 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- nanorecall-0.1.0/LICENSE +21 -0
- nanorecall-0.1.0/PKG-INFO +246 -0
- nanorecall-0.1.0/README.md +208 -0
- nanorecall-0.1.0/pyproject.toml +73 -0
- nanorecall-0.1.0/setup.cfg +4 -0
- nanorecall-0.1.0/src/nanorecall/__init__.py +28 -0
- nanorecall-0.1.0/src/nanorecall/capture.py +137 -0
- nanorecall-0.1.0/src/nanorecall/cli.py +192 -0
- nanorecall-0.1.0/src/nanorecall/memory.py +302 -0
- nanorecall-0.1.0/src/nanorecall/ocr.py +159 -0
- nanorecall-0.1.0/src/nanorecall/privacy.py +131 -0
- nanorecall-0.1.0/src/nanorecall/server.py +184 -0
- nanorecall-0.1.0/src/nanorecall/web/app.js +176 -0
- nanorecall-0.1.0/src/nanorecall/web/index.html +119 -0
- nanorecall-0.1.0/src/nanorecall/web/style.css +483 -0
- nanorecall-0.1.0/src/nanorecall.egg-info/PKG-INFO +246 -0
- nanorecall-0.1.0/src/nanorecall.egg-info/SOURCES.txt +24 -0
- nanorecall-0.1.0/src/nanorecall.egg-info/dependency_links.txt +1 -0
- nanorecall-0.1.0/src/nanorecall.egg-info/entry_points.txt +2 -0
- nanorecall-0.1.0/src/nanorecall.egg-info/requires.txt +8 -0
- nanorecall-0.1.0/src/nanorecall.egg-info/top_level.txt +1 -0
- nanorecall-0.1.0/tests/test_capture.py +57 -0
- nanorecall-0.1.0/tests/test_cli.py +24 -0
- nanorecall-0.1.0/tests/test_memory.py +97 -0
- nanorecall-0.1.0/tests/test_ocr.py +27 -0
- nanorecall-0.1.0/tests/test_privacy.py +50 -0
nanorecall-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 eminsk (M_N_Nik@yahoo.com)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: nanorecall
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: 100% Private, Zero-Cloud, Bare-Metal Desktop Memory & Screen Search Engine (Alternative to Windows Recall — No NPU or Cloud Required).
|
|
5
|
+
Author-email: eminsk <M_N_Nik@yahoo.com>
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/eminsk/nanorecall
|
|
8
|
+
Project-URL: Documentation, https://github.com/eminsk/nanorecall#readme
|
|
9
|
+
Project-URL: Repository, https://github.com/eminsk/nanorecall
|
|
10
|
+
Project-URL: Issue Tracker, https://github.com/eminsk/nanorecall/issues
|
|
11
|
+
Keywords: desktop-memory,screen-search,privacy,recall,vector-search,bare-metal,local-ai,simd,ocr,nanovector
|
|
12
|
+
Classifier: Development Status :: 4 - Beta
|
|
13
|
+
Classifier: Intended Audience :: End Users/Desktop
|
|
14
|
+
Classifier: Intended Audience :: Developers
|
|
15
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
16
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
17
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
18
|
+
Classifier: Operating System :: MacOS
|
|
19
|
+
Classifier: Programming Language :: Python :: 3
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
24
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
25
|
+
Classifier: Topic :: Desktop Environment
|
|
26
|
+
Classifier: Topic :: Security
|
|
27
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
28
|
+
Requires-Python: >=3.9
|
|
29
|
+
Description-Content-Type: text/markdown
|
|
30
|
+
License-File: LICENSE
|
|
31
|
+
Requires-Dist: numpy>=1.20
|
|
32
|
+
Requires-Dist: pillow>=9.0
|
|
33
|
+
Provides-Extra: ai
|
|
34
|
+
Requires-Dist: sentence-transformers>=2.2.0; extra == "ai"
|
|
35
|
+
Provides-Extra: dev
|
|
36
|
+
Requires-Dist: pytest>=7.0; extra == "dev"
|
|
37
|
+
Dynamic: license-file
|
|
38
|
+
|
|
39
|
+
# ⚡ NanoRecall: 100% Private Desktop Memory & Screen Search
|
|
40
|
+
|
|
41
|
+
<p align="center">
|
|
42
|
+
<a href="https://colab.research.google.com/github/eminsk/nanorecall/blob/main/notebooks/nanorecall_quickstart.ipynb"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open in Colab"></a>
|
|
43
|
+
<a href="https://github.com/eminsk/nanorecall/stargazers"><img src="https://img.shields.io/github/stars/eminsk/nanorecall?style=flat-square&logo=github&color=00f2fe" alt="Stars"></a>
|
|
44
|
+
<a href="https://pypi.org/project/nanorecall/"><img src="https://img.shields.io/badge/pypi-v0.1.0-orange?style=flat-square" alt="PyPI"></a>
|
|
45
|
+
<a href="https://github.com/eminsk/nanovector"><img src="https://img.shields.io/badge/powered%20by-NanoVector%20AVX2-4facfe?style=flat-square" alt="NanoVector"></a>
|
|
46
|
+
<a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-green.svg?style=flat-square" alt="License"></a>
|
|
47
|
+
<img src="https://img.shields.io/badge/telemetry-0%25%20(100%25%20offline)-brightgreen?style=flat-square" alt="Privacy">
|
|
48
|
+
<img src="https://img.shields.io/badge/hardware-No%20NPU%20Required-blueviolet?style=flat-square" alt="Hardware">
|
|
49
|
+
</p>
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
<p align="center">
|
|
53
|
+
<b>A high-performance, open-source, 100% private alternative to Microsoft Windows Recall.</b><br>
|
|
54
|
+
Engineered with pure C99/SIMD, native Win32 capture, and zero cloud telemetry. Search anything you saw on your screen by natural language in milliseconds.
|
|
55
|
+
</p>
|
|
56
|
+
|
|
57
|
+
<p align="center">
|
|
58
|
+
<img src="assets/dashboard_preview.jpg" alt="NanoRecall Desktop Memory & Search Dashboard" width="850">
|
|
59
|
+
</p>
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
## ⚡ The Problem with Microsoft Recall
|
|
64
|
+
|
|
65
|
+
| Feature | Microsoft Windows Recall | **NanoRecall (This Project)** |
|
|
66
|
+
| :--- | :---: | :---: |
|
|
67
|
+
| **Privacy & Cloud** | Unencrypted storage, telemetry risks | **100% Local & Encrypted** (Zero bytes leave your PC) |
|
|
68
|
+
| **Hardware Lock-in** | Requires expensive **Copilot+ PC ($1500+)** with 40+ TOPS NPU | **Runs on any standard Intel / AMD / ARM CPU** |
|
|
69
|
+
| **Vector Engine** | Heavy proprietary runtime | **[NanoVector](https://github.com/eminsk/nanovector)** (Pure C99 + AVX2, <120KB footprint) |
|
|
70
|
+
| **Search Latency** | Variable (Cloud / NPU overhead) | **0.28 ms** (Sub-millisecond exact semantic search) |
|
|
71
|
+
| **Password Protection** | Records sensitive credentials and cards | **Privacy Shield**: Auto-ignores 1Password, Bitwarden, KeePass, Incognito |
|
|
72
|
+
| **Storage Footprint** | Tens of gigabytes of raw frames | **Smart Frame Differencing**: Suppresses static frames (30–60 KB/frame) |
|
|
73
|
+
| **Code Footprint** | Gigabytes of OS bloatware | **<200 KB pure codebase**, <25MB RAM idle, 0.1% CPU |
|
|
74
|
+
|
|
75
|
+
---
|
|
76
|
+
|
|
77
|
+
## 🌟 Key Highlights
|
|
78
|
+
|
|
79
|
+
* **100% Private & Offline:** All frame embeddings and OCR snippets are stored in a single, local `.nvec` binary file. No accounts, no API keys, no internet required.
|
|
80
|
+
* **Powered by NanoVector:** Directly uses [NanoVector](https://github.com/eminsk/nanovector)'s C99 AVX2/NEON vector search engine for instant 90-microsecond semantic retrieval.
|
|
81
|
+
* **Intelligent Perceptual Frame Differencing:** Continuously monitors your display; if the screen hasn't changed by >1.5% (reading, idle, away from desk), capture is skipped to conserve disk space and battery.
|
|
82
|
+
* **Built-in Privacy Shield:** Automatically detects active foreground windows and terminates recording whenever password managers (`1Password`, `Bitwarden`, `KeePass`), private browsing windows (`Incognito`, `InPrivate`), or crypto wallets are active.
|
|
83
|
+
* **Dual Interface:** Instant lightning-fast terminal CLI (`nanorecall search ...`) and a sleek dark-mode local web dashboard (`nanorecall ui`).
|
|
84
|
+
|
|
85
|
+
---
|
|
86
|
+
|
|
87
|
+
## 🏛️ Architecture
|
|
88
|
+
|
|
89
|
+
```
|
|
90
|
+
┌────────────────────────────────┐
|
|
91
|
+
│ Windows Desktop Display │
|
|
92
|
+
└───────────────┬────────────────┘
|
|
93
|
+
│
|
|
94
|
+
(Perceptual Diffing / 0.1% CPU)
|
|
95
|
+
│
|
|
96
|
+
┌───────────────▼────────────────┐
|
|
97
|
+
│ Native Win32 Screen Capture │
|
|
98
|
+
│ (GDI / BitBlt / DirectMemory) │
|
|
99
|
+
└───────────────┬────────────────┘
|
|
100
|
+
│
|
|
101
|
+
┌───────────────▼────────────────┐
|
|
102
|
+
│ Offline Text Extraction │
|
|
103
|
+
│ (Windows.Media.Ocr / Local) │
|
|
104
|
+
└───────────────┬────────────────┘
|
|
105
|
+
│
|
|
106
|
+
├───────────────────────────────┐
|
|
107
|
+
│ Text + Embeddings │ Compressed Frame
|
|
108
|
+
▼ ▼
|
|
109
|
+
┌────────────────────────────────┐ ┌───────────────────────┐
|
|
110
|
+
│ NanoVector Core │ │ Local Image Store │
|
|
111
|
+
│ (C99 AVX2 + .nvec persistence)│ │ (WebP / 30-60 KB) │
|
|
112
|
+
└───────────────┬────────────────┘ └───────────┬───────────┘
|
|
113
|
+
│ │
|
|
114
|
+
└───────────────┬───────────────┘
|
|
115
|
+
▼
|
|
116
|
+
┌────────────────────────────────┐
|
|
117
|
+
│ Search & Recall Engine │
|
|
118
|
+
│ (CLI + Dark-Mode Dashboard) │
|
|
119
|
+
└────────────────────────────────┘
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
---
|
|
123
|
+
|
|
124
|
+
## 🚀 Interactive Google Colab Demo
|
|
125
|
+
|
|
126
|
+
Test NanoRecall interactively in your browser with zero local installation:
|
|
127
|
+
|
|
128
|
+
[](https://colab.research.google.com/github/eminsk/nanorecall/blob/main/notebooks/nanorecall_quickstart.ipynb)
|
|
129
|
+
|
|
130
|
+
The [Interactive Colab Notebook](https://colab.research.google.com/github/eminsk/nanorecall/blob/main/notebooks/nanorecall_quickstart.ipynb) demonstrates:
|
|
131
|
+
- **Backend & SIMD Detection:** Verifying NanoRecall and NanoVector AVX2/NEON.
|
|
132
|
+
- **Privacy Shield:** Live simulation blocking 1Password/Incognito windows and redacting API keys.
|
|
133
|
+
- **Desktop Memory & Search:** Ingesting sample desktop screens and querying via natural language in <0.3 ms.
|
|
134
|
+
- **Single-File `.nvec` Persistence:** Saving and restoring the entire screen memory index.
|
|
135
|
+
- **Colab CPU Benchmark:** Benchmarking search latency (15–300 µs) and QPS over 10,000 frames.
|
|
136
|
+
|
|
137
|
+
---
|
|
138
|
+
|
|
139
|
+
## 🚀 Quickstart
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
### 1. Installation
|
|
143
|
+
|
|
144
|
+
```bash
|
|
145
|
+
pip install nanorecall
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
*(Requires Python 3.9+ on Windows, Linux, or macOS)*
|
|
149
|
+
|
|
150
|
+
### 2. Capture Your Screen
|
|
151
|
+
|
|
152
|
+
Capture and index your current desktop state:
|
|
153
|
+
|
|
154
|
+
```bash
|
|
155
|
+
nanorecall capture
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
Output:
|
|
159
|
+
```text
|
|
160
|
+
📸 Capturing desktop screen...
|
|
161
|
+
🔍 Extracting offline OCR text...
|
|
162
|
+
🧠 Indexing into NanoVector (Window: Active Window)...
|
|
163
|
+
✅ Indexed frame 2026-09-11_142315 (342 words, 98.4% change)
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
### 3. Natural Language Search (CLI)
|
|
167
|
+
|
|
168
|
+
Search for anything you saw hours, days, or weeks ago:
|
|
169
|
+
|
|
170
|
+
```bash
|
|
171
|
+
nanorecall search "github pull request sqlfluff"
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
Output:
|
|
175
|
+
```text
|
|
176
|
+
🔍 Search Query: 'github pull request sqlfluff' (1 results found in 0.28 ms)
|
|
177
|
+
|
|
178
|
+
#1 [98% Match] Google Chrome — sqlfluff pull request 8449 github
|
|
179
|
+
🕒 Captured: 2026-09-11_142315
|
|
180
|
+
📝 Text: merged upstream/main to pull in CI fix and added StarRocks test cases...
|
|
181
|
+
🖼️ File: C:\Users\M_N_N\.nanorecall\frames\2026-09-11_142315.webp
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
### 4. Interactive Web Dashboard
|
|
185
|
+
|
|
186
|
+
Launch the local dark-mode dashboard with visual timeline scrubber:
|
|
187
|
+
|
|
188
|
+
```bash
|
|
189
|
+
nanorecall ui
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
Then open `http://127.0.0.1:8765` in your browser.
|
|
193
|
+
|
|
194
|
+
* Interactive daily timeline scrubber (scrub your day hour-by-hour).
|
|
195
|
+
* Instant search bar with live autocomplete and semantic similarity badges.
|
|
196
|
+
* Click any memory card to inspect the full-resolution screenshot with OCR highlights.
|
|
197
|
+
|
|
198
|
+
### 5. Background Daemon
|
|
199
|
+
|
|
200
|
+
Run NanoRecall silently in the background:
|
|
201
|
+
|
|
202
|
+
```bash
|
|
203
|
+
nanorecall daemon --interval 3.0
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
---
|
|
207
|
+
|
|
208
|
+
## 🛡️ Privacy Shield Rules
|
|
209
|
+
|
|
210
|
+
NanoRecall includes out-of-the-box protection rules. The following windows and sensitive tokens are automatically shielded from being recorded:
|
|
211
|
+
|
|
212
|
+
* **Password Managers:** 1Password, Bitwarden, KeePass, KeePassXC, LastPass, Dashlane, NordPass, Enpass.
|
|
213
|
+
* **Private Browsing:** Chrome Incognito, Edge InPrivate, Firefox Private Browsing, Tor Browser.
|
|
214
|
+
* **Crypto Wallets:** MetaMask, Phantom, Ledger Live, Trezor Suite, Exodus, Rabby.
|
|
215
|
+
* **Credentials & Tokens:** Credit card numbers, OpenAI API keys (`sk-...`), GitHub personal access tokens (`ghp_...`), and SSH/RSA private keys are automatically redacted.
|
|
216
|
+
|
|
217
|
+
---
|
|
218
|
+
|
|
219
|
+
## 📊 Telemetry & Benchmark
|
|
220
|
+
|
|
221
|
+
```bash
|
|
222
|
+
nanorecall stats
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
```text
|
|
226
|
+
⚡ NanoRecall Engine Telemetry:
|
|
227
|
+
----------------------------------------
|
|
228
|
+
Total Indexed Frames: 1,420
|
|
229
|
+
Vector Dimension: 128D
|
|
230
|
+
Active Backend: NanoVector (AVX2)
|
|
231
|
+
Local Database Size: 1.24 MB
|
|
232
|
+
Search Latency: 0.28 ms
|
|
233
|
+
Idle CPU Usage: < 0.1%
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
---
|
|
237
|
+
|
|
238
|
+
## 🤝 Contributing
|
|
239
|
+
|
|
240
|
+
Contributions are warmly welcomed! Please submit issues or pull requests to improve OCR backends, UI features, or compression optimizations.
|
|
241
|
+
|
|
242
|
+
---
|
|
243
|
+
|
|
244
|
+
## 📜 License
|
|
245
|
+
|
|
246
|
+
Distributed under the **[MIT License](LICENSE)**. Created by **[eminsk](https://github.com/eminsk)**.
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
# ⚡ NanoRecall: 100% Private Desktop Memory & Screen Search
|
|
2
|
+
|
|
3
|
+
<p align="center">
|
|
4
|
+
<a href="https://colab.research.google.com/github/eminsk/nanorecall/blob/main/notebooks/nanorecall_quickstart.ipynb"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open in Colab"></a>
|
|
5
|
+
<a href="https://github.com/eminsk/nanorecall/stargazers"><img src="https://img.shields.io/github/stars/eminsk/nanorecall?style=flat-square&logo=github&color=00f2fe" alt="Stars"></a>
|
|
6
|
+
<a href="https://pypi.org/project/nanorecall/"><img src="https://img.shields.io/badge/pypi-v0.1.0-orange?style=flat-square" alt="PyPI"></a>
|
|
7
|
+
<a href="https://github.com/eminsk/nanovector"><img src="https://img.shields.io/badge/powered%20by-NanoVector%20AVX2-4facfe?style=flat-square" alt="NanoVector"></a>
|
|
8
|
+
<a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-green.svg?style=flat-square" alt="License"></a>
|
|
9
|
+
<img src="https://img.shields.io/badge/telemetry-0%25%20(100%25%20offline)-brightgreen?style=flat-square" alt="Privacy">
|
|
10
|
+
<img src="https://img.shields.io/badge/hardware-No%20NPU%20Required-blueviolet?style=flat-square" alt="Hardware">
|
|
11
|
+
</p>
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
<p align="center">
|
|
15
|
+
<b>A high-performance, open-source, 100% private alternative to Microsoft Windows Recall.</b><br>
|
|
16
|
+
Engineered with pure C99/SIMD, native Win32 capture, and zero cloud telemetry. Search anything you saw on your screen by natural language in milliseconds.
|
|
17
|
+
</p>
|
|
18
|
+
|
|
19
|
+
<p align="center">
|
|
20
|
+
<img src="assets/dashboard_preview.jpg" alt="NanoRecall Desktop Memory & Search Dashboard" width="850">
|
|
21
|
+
</p>
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
## ⚡ The Problem with Microsoft Recall
|
|
26
|
+
|
|
27
|
+
| Feature | Microsoft Windows Recall | **NanoRecall (This Project)** |
|
|
28
|
+
| :--- | :---: | :---: |
|
|
29
|
+
| **Privacy & Cloud** | Unencrypted storage, telemetry risks | **100% Local & Encrypted** (Zero bytes leave your PC) |
|
|
30
|
+
| **Hardware Lock-in** | Requires expensive **Copilot+ PC ($1500+)** with 40+ TOPS NPU | **Runs on any standard Intel / AMD / ARM CPU** |
|
|
31
|
+
| **Vector Engine** | Heavy proprietary runtime | **[NanoVector](https://github.com/eminsk/nanovector)** (Pure C99 + AVX2, <120KB footprint) |
|
|
32
|
+
| **Search Latency** | Variable (Cloud / NPU overhead) | **0.28 ms** (Sub-millisecond exact semantic search) |
|
|
33
|
+
| **Password Protection** | Records sensitive credentials and cards | **Privacy Shield**: Auto-ignores 1Password, Bitwarden, KeePass, Incognito |
|
|
34
|
+
| **Storage Footprint** | Tens of gigabytes of raw frames | **Smart Frame Differencing**: Suppresses static frames (30–60 KB/frame) |
|
|
35
|
+
| **Code Footprint** | Gigabytes of OS bloatware | **<200 KB pure codebase**, <25MB RAM idle, 0.1% CPU |
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
## 🌟 Key Highlights
|
|
40
|
+
|
|
41
|
+
* **100% Private & Offline:** All frame embeddings and OCR snippets are stored in a single, local `.nvec` binary file. No accounts, no API keys, no internet required.
|
|
42
|
+
* **Powered by NanoVector:** Directly uses [NanoVector](https://github.com/eminsk/nanovector)'s C99 AVX2/NEON vector search engine for instant 90-microsecond semantic retrieval.
|
|
43
|
+
* **Intelligent Perceptual Frame Differencing:** Continuously monitors your display; if the screen hasn't changed by >1.5% (reading, idle, away from desk), capture is skipped to conserve disk space and battery.
|
|
44
|
+
* **Built-in Privacy Shield:** Automatically detects active foreground windows and terminates recording whenever password managers (`1Password`, `Bitwarden`, `KeePass`), private browsing windows (`Incognito`, `InPrivate`), or crypto wallets are active.
|
|
45
|
+
* **Dual Interface:** Instant lightning-fast terminal CLI (`nanorecall search ...`) and a sleek dark-mode local web dashboard (`nanorecall ui`).
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
49
|
+
## 🏛️ Architecture
|
|
50
|
+
|
|
51
|
+
```
|
|
52
|
+
┌────────────────────────────────┐
|
|
53
|
+
│ Windows Desktop Display │
|
|
54
|
+
└───────────────┬────────────────┘
|
|
55
|
+
│
|
|
56
|
+
(Perceptual Diffing / 0.1% CPU)
|
|
57
|
+
│
|
|
58
|
+
┌───────────────▼────────────────┐
|
|
59
|
+
│ Native Win32 Screen Capture │
|
|
60
|
+
│ (GDI / BitBlt / DirectMemory) │
|
|
61
|
+
└───────────────┬────────────────┘
|
|
62
|
+
│
|
|
63
|
+
┌───────────────▼────────────────┐
|
|
64
|
+
│ Offline Text Extraction │
|
|
65
|
+
│ (Windows.Media.Ocr / Local) │
|
|
66
|
+
└───────────────┬────────────────┘
|
|
67
|
+
│
|
|
68
|
+
├───────────────────────────────┐
|
|
69
|
+
│ Text + Embeddings │ Compressed Frame
|
|
70
|
+
▼ ▼
|
|
71
|
+
┌────────────────────────────────┐ ┌───────────────────────┐
|
|
72
|
+
│ NanoVector Core │ │ Local Image Store │
|
|
73
|
+
│ (C99 AVX2 + .nvec persistence)│ │ (WebP / 30-60 KB) │
|
|
74
|
+
└───────────────┬────────────────┘ └───────────┬───────────┘
|
|
75
|
+
│ │
|
|
76
|
+
└───────────────┬───────────────┘
|
|
77
|
+
▼
|
|
78
|
+
┌────────────────────────────────┐
|
|
79
|
+
│ Search & Recall Engine │
|
|
80
|
+
│ (CLI + Dark-Mode Dashboard) │
|
|
81
|
+
└────────────────────────────────┘
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
---
|
|
85
|
+
|
|
86
|
+
## 🚀 Interactive Google Colab Demo
|
|
87
|
+
|
|
88
|
+
Test NanoRecall interactively in your browser with zero local installation:
|
|
89
|
+
|
|
90
|
+
[](https://colab.research.google.com/github/eminsk/nanorecall/blob/main/notebooks/nanorecall_quickstart.ipynb)
|
|
91
|
+
|
|
92
|
+
The [Interactive Colab Notebook](https://colab.research.google.com/github/eminsk/nanorecall/blob/main/notebooks/nanorecall_quickstart.ipynb) demonstrates:
|
|
93
|
+
- **Backend & SIMD Detection:** Verifying NanoRecall and NanoVector AVX2/NEON.
|
|
94
|
+
- **Privacy Shield:** Live simulation blocking 1Password/Incognito windows and redacting API keys.
|
|
95
|
+
- **Desktop Memory & Search:** Ingesting sample desktop screens and querying via natural language in <0.3 ms.
|
|
96
|
+
- **Single-File `.nvec` Persistence:** Saving and restoring the entire screen memory index.
|
|
97
|
+
- **Colab CPU Benchmark:** Benchmarking search latency (15–300 µs) and QPS over 10,000 frames.
|
|
98
|
+
|
|
99
|
+
---
|
|
100
|
+
|
|
101
|
+
## 🚀 Quickstart
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
### 1. Installation
|
|
105
|
+
|
|
106
|
+
```bash
|
|
107
|
+
pip install nanorecall
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
*(Requires Python 3.9+ on Windows, Linux, or macOS)*
|
|
111
|
+
|
|
112
|
+
### 2. Capture Your Screen
|
|
113
|
+
|
|
114
|
+
Capture and index your current desktop state:
|
|
115
|
+
|
|
116
|
+
```bash
|
|
117
|
+
nanorecall capture
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
Output:
|
|
121
|
+
```text
|
|
122
|
+
📸 Capturing desktop screen...
|
|
123
|
+
🔍 Extracting offline OCR text...
|
|
124
|
+
🧠 Indexing into NanoVector (Window: Active Window)...
|
|
125
|
+
✅ Indexed frame 2026-09-11_142315 (342 words, 98.4% change)
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
### 3. Natural Language Search (CLI)
|
|
129
|
+
|
|
130
|
+
Search for anything you saw hours, days, or weeks ago:
|
|
131
|
+
|
|
132
|
+
```bash
|
|
133
|
+
nanorecall search "github pull request sqlfluff"
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
Output:
|
|
137
|
+
```text
|
|
138
|
+
🔍 Search Query: 'github pull request sqlfluff' (1 results found in 0.28 ms)
|
|
139
|
+
|
|
140
|
+
#1 [98% Match] Google Chrome — sqlfluff pull request 8449 github
|
|
141
|
+
🕒 Captured: 2026-09-11_142315
|
|
142
|
+
📝 Text: merged upstream/main to pull in CI fix and added StarRocks test cases...
|
|
143
|
+
🖼️ File: C:\Users\M_N_N\.nanorecall\frames\2026-09-11_142315.webp
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
### 4. Interactive Web Dashboard
|
|
147
|
+
|
|
148
|
+
Launch the local dark-mode dashboard with visual timeline scrubber:
|
|
149
|
+
|
|
150
|
+
```bash
|
|
151
|
+
nanorecall ui
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
Then open `http://127.0.0.1:8765` in your browser.
|
|
155
|
+
|
|
156
|
+
* Interactive daily timeline scrubber (scrub your day hour-by-hour).
|
|
157
|
+
* Instant search bar with live autocomplete and semantic similarity badges.
|
|
158
|
+
* Click any memory card to inspect the full-resolution screenshot with OCR highlights.
|
|
159
|
+
|
|
160
|
+
### 5. Background Daemon
|
|
161
|
+
|
|
162
|
+
Run NanoRecall silently in the background:
|
|
163
|
+
|
|
164
|
+
```bash
|
|
165
|
+
nanorecall daemon --interval 3.0
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
---
|
|
169
|
+
|
|
170
|
+
## 🛡️ Privacy Shield Rules
|
|
171
|
+
|
|
172
|
+
NanoRecall includes out-of-the-box protection rules. The following windows and sensitive tokens are automatically shielded from being recorded:
|
|
173
|
+
|
|
174
|
+
* **Password Managers:** 1Password, Bitwarden, KeePass, KeePassXC, LastPass, Dashlane, NordPass, Enpass.
|
|
175
|
+
* **Private Browsing:** Chrome Incognito, Edge InPrivate, Firefox Private Browsing, Tor Browser.
|
|
176
|
+
* **Crypto Wallets:** MetaMask, Phantom, Ledger Live, Trezor Suite, Exodus, Rabby.
|
|
177
|
+
* **Credentials & Tokens:** Credit card numbers, OpenAI API keys (`sk-...`), GitHub personal access tokens (`ghp_...`), and SSH/RSA private keys are automatically redacted.
|
|
178
|
+
|
|
179
|
+
---
|
|
180
|
+
|
|
181
|
+
## 📊 Telemetry & Benchmark
|
|
182
|
+
|
|
183
|
+
```bash
|
|
184
|
+
nanorecall stats
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
```text
|
|
188
|
+
⚡ NanoRecall Engine Telemetry:
|
|
189
|
+
----------------------------------------
|
|
190
|
+
Total Indexed Frames: 1,420
|
|
191
|
+
Vector Dimension: 128D
|
|
192
|
+
Active Backend: NanoVector (AVX2)
|
|
193
|
+
Local Database Size: 1.24 MB
|
|
194
|
+
Search Latency: 0.28 ms
|
|
195
|
+
Idle CPU Usage: < 0.1%
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
---
|
|
199
|
+
|
|
200
|
+
## 🤝 Contributing
|
|
201
|
+
|
|
202
|
+
Contributions are warmly welcomed! Please submit issues or pull requests to improve OCR backends, UI features, or compression optimizations.
|
|
203
|
+
|
|
204
|
+
---
|
|
205
|
+
|
|
206
|
+
## 📜 License
|
|
207
|
+
|
|
208
|
+
Distributed under the **[MIT License](LICENSE)**. Created by **[eminsk](https://github.com/eminsk)**.
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=61.0.0", "wheel"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "nanorecall"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
description = "100% Private, Zero-Cloud, Bare-Metal Desktop Memory & Screen Search Engine (Alternative to Windows Recall — No NPU or Cloud Required)."
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
authors = [
|
|
11
|
+
{ name = "eminsk", email = "M_N_Nik@yahoo.com" }
|
|
12
|
+
]
|
|
13
|
+
license = { text = "MIT" }
|
|
14
|
+
keywords = [
|
|
15
|
+
"desktop-memory",
|
|
16
|
+
"screen-search",
|
|
17
|
+
"privacy",
|
|
18
|
+
"recall",
|
|
19
|
+
"vector-search",
|
|
20
|
+
"bare-metal",
|
|
21
|
+
"local-ai",
|
|
22
|
+
"simd",
|
|
23
|
+
"ocr",
|
|
24
|
+
"nanovector"
|
|
25
|
+
]
|
|
26
|
+
classifiers = [
|
|
27
|
+
"Development Status :: 4 - Beta",
|
|
28
|
+
"Intended Audience :: End Users/Desktop",
|
|
29
|
+
"Intended Audience :: Developers",
|
|
30
|
+
"License :: OSI Approved :: MIT License",
|
|
31
|
+
"Operating System :: Microsoft :: Windows",
|
|
32
|
+
"Operating System :: POSIX :: Linux",
|
|
33
|
+
"Operating System :: MacOS",
|
|
34
|
+
"Programming Language :: Python :: 3",
|
|
35
|
+
"Programming Language :: Python :: 3.9",
|
|
36
|
+
"Programming Language :: Python :: 3.10",
|
|
37
|
+
"Programming Language :: Python :: 3.11",
|
|
38
|
+
"Programming Language :: Python :: 3.12",
|
|
39
|
+
"Programming Language :: Python :: 3.13",
|
|
40
|
+
"Topic :: Desktop Environment",
|
|
41
|
+
"Topic :: Security",
|
|
42
|
+
"Topic :: Scientific/Engineering :: Artificial Intelligence"
|
|
43
|
+
]
|
|
44
|
+
requires-python = ">=3.9"
|
|
45
|
+
dependencies = [
|
|
46
|
+
"numpy>=1.20",
|
|
47
|
+
"pillow>=9.0",
|
|
48
|
+
]
|
|
49
|
+
|
|
50
|
+
[project.optional-dependencies]
|
|
51
|
+
ai = [
|
|
52
|
+
"sentence-transformers>=2.2.0",
|
|
53
|
+
]
|
|
54
|
+
dev = [
|
|
55
|
+
"pytest>=7.0",
|
|
56
|
+
]
|
|
57
|
+
|
|
58
|
+
[project.scripts]
|
|
59
|
+
nanorecall = "nanorecall.cli:main"
|
|
60
|
+
|
|
61
|
+
[project.urls]
|
|
62
|
+
Homepage = "https://github.com/eminsk/nanorecall"
|
|
63
|
+
Documentation = "https://github.com/eminsk/nanorecall#readme"
|
|
64
|
+
Repository = "https://github.com/eminsk/nanorecall"
|
|
65
|
+
"Issue Tracker" = "https://github.com/eminsk/nanorecall/issues"
|
|
66
|
+
|
|
67
|
+
[tool.pytest.ini_options]
|
|
68
|
+
pythonpath = ["src"]
|
|
69
|
+
testpaths = ["tests"]
|
|
70
|
+
|
|
71
|
+
[tool.setuptools.package-data]
|
|
72
|
+
nanorecall = ["web/*"]
|
|
73
|
+
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"""
|
|
2
|
+
NanoRecall — 100% Private, Zero-Cloud Desktop Memory & Screen Search Engine
|
|
3
|
+
Copyright (c) 2026 eminsk (M_N_Nik@yahoo.com)
|
|
4
|
+
MIT License
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from nanorecall.capture import FrameCaptureResult, ScreenCaptureEngine
|
|
8
|
+
from nanorecall.memory import FastFeatureEmbedder, MemoryMatch, RecallMemory
|
|
9
|
+
from nanorecall.ocr import OCREngine, OCRResult, TextBlock
|
|
10
|
+
from nanorecall.privacy import DEFAULT_BLACKLIST_KEYWORDS, PrivacyShield
|
|
11
|
+
|
|
12
|
+
__version__ = "0.1.0"
|
|
13
|
+
__author__ = "eminsk (M_N_Nik@yahoo.com)"
|
|
14
|
+
__license__ = "MIT"
|
|
15
|
+
|
|
16
|
+
__all__ = [
|
|
17
|
+
"PrivacyShield",
|
|
18
|
+
"ScreenCaptureEngine",
|
|
19
|
+
"FrameCaptureResult",
|
|
20
|
+
"OCREngine",
|
|
21
|
+
"OCRResult",
|
|
22
|
+
"TextBlock",
|
|
23
|
+
"RecallMemory",
|
|
24
|
+
"MemoryMatch",
|
|
25
|
+
"FastFeatureEmbedder",
|
|
26
|
+
"DEFAULT_BLACKLIST_KEYWORDS",
|
|
27
|
+
"__version__",
|
|
28
|
+
]
|