MCPcopy Index your code
hub / github.com/Endle/fireSeqSearch

github.com/Endle/fireSeqSearch @0.2.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release 0.2.1 ↗ · + Follow
238 symbols 482 edges 28 files 22 documented · 9%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

fireSeqSearch: Append Logseq notes while Googling

Introduction

fireSeqSearch is inspired by Evernote's browser extension - if we search a term, for example, softmax in Google, fireSeqSearch will also search in our personal notebook, and append the hits into Google results.

With logseq 0.6.6, Logseq URL Protocol , it's time for fireSeqSearch to support jumping into Logseq!

More examples at https://github.com/Endle/fireSeqSearch/blob/master/docs/examples.md

How to use it

You need to install BOTH the server-side app and the browser extension. The server reads your logseq notebooks in read-only mode, and hosts endpoints at 127.0.0.1:3030.

Install Browser Extension

  1. Install latest web extension https://addons.mozilla.org/en-US/firefox/addon/fireseqsearch/
  2. If you're using other browser, you can install userscirpts instead. Tampermonkey => monkeyscript.user.js. Violentmonkey => violentmonkeyscript.user.js

Install Local Server

Obsidian MD users: Run fire_seq_search_server --notebook_path <path> --obsidian-md. Example obsidian.sh

Windows

Steps:
1. Download the latest release at https://github.com/Endle/fireSeqSearch/releases 2. If you're using PowerShell, run .\fire_seq_search_server.exe --notebook_path C:\Users\li\logseq_notebook 3. If you're using Msys2, run ./fire_seq_search_server --notebook_path /c/Users/li/logseq_notebook 4. Please remember to change the path to your notebook

Linux and macOS

  1. Install rust. See https://doc.rust-lang.org/cargo/getting-started/installation.html
  2. git clone https://github.com/Endle/fireSeqSearch
  3. cd fire_seq_search_server && cargo build
  4. target/debug/fire_seq_search_server --notebook_path /home/li/my_notebook
  5. Min rust version: See https://github.com/Endle/fireSeqSearch/blob/master/.github/workflows/rust.yml#L21

Docker (experimental)

git clone https://github.com/Endle/fireSeqSearch && cd fireSeqSearch

Configure the path to your logseq notebook by

cp example.env .env

and edit .env.

Finally run

docker-compose up -d

Note: Alternatively, you can also run docker directly without docker-compose via:

export $(cat .env | xargs)
docker run -d -v $NOTEBOOK_DIR:$NOTEBOOK_DIR -p 127.0.0.1:3030:3030 --env-file .env ghcr.io/endle/fireseqsearch:latest

License

This project (both server and addon) is using MIT license. Some third party library may have other licenses (see source code)

Ui icons created by manshagraphics - Flaticon

LOGO link: https://www.flaticon.com/free-icon/web-browser_7328762

LOGO license: Flaticon license

How it works

This is what fireSeqSearch does on my logseq notebook. I had to split it into two parts because Firefox extensions are not allowed to access local files.

fireSeqSearch has two parts:

1. search server

It read all local loseq notebooks, and hosts logseq pages on http://127.0.0.1:3030

It provides the API http://127.0.0.1:3030/query/

2. Browser extension

Every time we use search engine, it will fetch http://127.0.0.1:3030/query/keywordsand append all hits to the web page.

Similar Projects

  • karlicoss/promnesia - Promnesia is a mature and interesting project, aming a more ambitious goal. fireSeqSearch only does one thing - append logseq hits to search engine results.
  • Logseq Copilot - https://chrome.google.com/webstore/detail/logseq-copilot/hihgfcgbmnbomabfdbajlbpnacndeihl

Star History

Star History Chart

Provided by https://star-history.com

Core symbols most depended-on inside this repo

add
called by 18
fire_seq_search_server/src/local_llm/mod.rs
is_empty
called by 14
fire_seq_search_server/src/post_query/highlighter.rs
consoleLogForDebug
called by 13
fireSeqSearch_addon/monkeyscript.user.js
consoleLogForDebug
called by 12
fireSeqSearch_addon/violentmonkeyscript.user.js
consoleLogForDebug
called by 11
fireSeqSearch_addon/main.js
consoleLogForDebug
called by 9
fireSeqSearch_addon/wordcloud_draw.js
generate_logseq_uri
called by 6
fire_seq_search_server/src/post_query/logseq_uri.rs
setSummaryState
called by 6
fireSeqSearch_addon/main.js

Shape

Function 174
Method 41
Class 21
Enum 2

Languages

Rust70%
TypeScript30%

Modules by API surface

fireSeqSearch_addon/wordcloud_draw.js27 symbols
fire_seq_search_server/src/post_query/highlighter.rs24 symbols
fire_seq_search_server/src/markdown_parser/markdown_to_text.rs22 symbols
fire_seq_search_server/src/query_engine/mod.rs21 symbols
fire_seq_search_server/src/local_llm/mod.rs21 symbols
fireSeqSearch_addon/main.js19 symbols
fireSeqSearch_addon/violentmonkeyscript.user.js13 symbols
fireSeqSearch_addon/monkeyscript.user.js11 symbols
fire_seq_search_server/tests/unit_test_post_query.rs9 symbols
fire_seq_search_server/src/post_query/logseq_uri.rs9 symbols
fire_seq_search_server/src/language_tools/tokenizer.rs8 symbols
fire_seq_search_server/tests/unit_test_load_notes.rs7 symbols

For agents

$ claude mcp add fireSeqSearch \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact