Monocle

Open source

Monocle is a personal full-text search engine, written in the Ink language, that runs in the browser against a prebuilt index.

GitHub stars
1.5k
Last 30 days
+1(+0%)
Last commit
4 yr ago
Repository age
5 years
Licence
MIT
Self-hosted
Yes

About Monocle

Monocle is the author's personal search engine, covering blog posts, journal entries, notes, tweets and contacts across tens of thousands of documents. The README says it is built around speed, privacy and hackability, and that it is tailored to one person's workflow, so it probably won't work for anyone else.

The search index is an inverted index generated at build time and kept on the client, so ranking happens in the browser and results appear on each keystroke. On a modern phone or laptop it searches tens of thousands of documents with minimal lag using an index a few megabytes in size. Because the index is pre-compiled, the app deploys as a static site.

It includes a hand-written English stemmer, keyword highlighting in results and previews, and a pluggable design where a small piece of Ink code ingests each data source. Ingestion, the web server and the client are all written in Ink, with the Torus UI library. A demo indexed on public data is online.

Key features

  • Results update on every keystroke
  • Index and ranking live in the browser
  • Static deploy from a pre-built index
  • Hand-written English stemming
  • Keyword highlights in results and previews
  • Pluggable data sources

Good fit for

  • Searching personal notes and journals
  • Learning how full-text search works
Tags
search-engine
full-text-search
personal-search
ink
static-site
notes

Monocle: questions and answers

What is Monocle used for?
Monocle is a personal full-text search engine, written in the Ink language, that runs in the browser against a prebuilt index. It is a good fit for searching personal notes and journals, and learning how full-text search works.
Is Monocle open source?
Yes. Monocle is open source under the MIT licence. Its source code is on GitHub at thesephist/monocle and is written mainly in JavaScript.
Is Monocle free?
Yes. Monocle is open source, so the software itself is free to use.
Can I self-host Monocle?
Yes. Monocle can be self-hosted on your own server or infrastructure.
What are some alternatives to Monocle?
Similar open-source tools in the Search category include Hister, Elasticsearch and Meilisearch. SaaS products in the same category include dtSearch, DuckDuckGo and Google Programmable Search Engine.
Is Monocle actively maintained?
The most recent commit to Monocle was on 6 November 2022. The project has 1.5k stars on GitHub, with 1 added in the last 30 days.

Open-source alternatives to Monocle

See all

SaaS alternatives to Monocle

See all