MENTIFABERThe workshop · drawn at night
Sheet
25 / 41
Grid
MF-04·05
Drawn
Anders
Date
28.10.2026
Fig. 1 · DocCrawler, on the bench: power it on to run it hereMF-04·05

01Why it exists

A pile, turned into a library

Manuals, alarm sheets, receipts, service notes, screenshots of things you meant to read later: they pile up in a Downloads folder where search means scrolling. DocCrawler turns that pile into a library you can search and question. The phone build runs in Termux with the internet off; the version below runs entirely in your browser.

02Parts list

  1. IngestEvery file is hashed with SHA-256 and de-duplicated. Add the same receipt twice and it's kept once.
  2. ExtractText straight from text and Markdown, pdf.js for PDFs, mammoth for Word, Tesseract OCR for photos of paper (each loaded only when needed).
  3. IndexRanked full-text search where a natural question is searched as any of its words, not a strict AND, so real questions find real answers.
  4. TagEach document gets its top keywords as tags; add, remove or filter by your own.
  5. The LibrarianAnswers grounded in ranked excerpts with numbered citations. Turn the model off and it answers with plain retrieval, and nothing leaves the device.
  6. YoursThe library lives in this browser's storage; export it as one file, import it anywhere.

03Construction

The hard part (phone build)

Ollama has no Android build, so on the phone it runs inside a Debian container under proot-distro. Keeping it up took a run of fixes: a pkill that killed its own wrapper, a server that died with its launcher, a wrong HOME that made every model vanish, and timeouts long enough for a phone CPU to finish thinking.

PythonFlaskSQLite FTS5TesseractOllamaTermux

The browser build

IndexedDB for the library, BM25 over passages for search, pdf.js, mammoth and Tesseract.js on demand, and AutoFaber's free models for the Librarian when you allow it.

IndexedDBBM25pdf.jsTesseract.js

04Tolerances

Single-user on purpose. Auto-tags are a keyword heuristic, not a classifier; OCR is only as good as the photo. The Librarian cites its sources: check them for anything that matters.

what it is not, said plainly

05Inscription

The library stays on the device. The questions do too, if you want them to.

06The same room