Skip to content

armgit / xerj

Public Imported from GitHub
0

AI search engine and MCP server for bots and agents. One Rust binary indexes code, docs, logs, JSONL/CSV and PDFs for BM25 full-text, vector and hybrid search, code search without grep, agent memory and RAG. Elasticsearch-compatible API; Corpus Hub serves hundreds of reference memory corpora.

docs: name the Windows install directory next to ~/.local/bin (#1709)

xerj-org2bfb03618985
diff --git a/engine/crates/xerj-common/tests/windows_install_path.rs b/engine/crates/xerj-common/tests/windows_install_path.rs
new file mode 100644
index 000000000..cc6dec1ef
--- /dev/null
+++ b/engine/crates/xerj-common/tests/windows_install_path.rs
@@ -0,0 +1,31 @@
+//! `get.ps1` installs to `%LOCALAPPDATA%\Programs\xerj`. The install page
+//! used to state the only default as `~/.local/bin`, which is the Unix path.
+
+use std::path::PathBuf;
+
+fn repo(rel: &str) -> String {
+ let path = PathBuf::from(env!("CARGO_MANIFEST_DIR"))
+ .join("../../..")
+ .join(rel);
+ std::fs::read_to_string(&path).unwrap_or_else(|e| panic!("read {}: {e}", path.display()))
+}
+
+#[test]
+fn install_docs_name_the_windows_default_directory() {
+ let needle = "%LOCALAPPDATA%\\Programs\\xerj";
+ for rel in [
+ "landing/docs/install.html",
+ "landing/docs/agents/quickstart.html",
+ "landing/docs/cli.html",
+ ] {
+ let text = repo(rel);
+ assert!(
+ text.contains(needle),
+ "{rel} must name the Windows install directory {needle}"
+ );
+ assert!(
+ text.contains("~/.local/bin"),
+ "{rel} must keep the Linux and macOS default"
+ );
+ }
+}
diff --git a/landing/docs/agents/quickstart.html b/landing/docs/agents/quickstart.html
index b5bd5e68e..4e1c77cc4 100644
--- a/landing/docs/agents/quickstart.html
+++ b/landing/docs/agents/quickstart.html
@@ -219,7 +219,7 @@
<p>Five steps, all runnable, all on port <code class="inline">9200</code>: <strong>boot XERJ → check it is up → store a memory → recall it by meaning → run a semantic search.</strong> Every request and every response below is a real run against a freshly booted, empty XERJ — no seeding, no external embedding service, no API key. If you have <code class="inline">curl</code>, you have everything.</p>
<h2>0 · Boot XERJ</h2>
- <p>One binary. <code class="inline">--insecure</code> disables TLS and API-key auth so you can talk to it over plain HTTP on the default ES-compat port <code class="inline">9200</code> — perfect for a local agent loop. Install it first (<code class="inline">curl -fsSL https://xerj.org/get | sh</code>), which puts <code class="inline">xerj</code> in <code class="inline">~/.local/bin</code> by default and prints the exact path if that is not on your <code class="inline">PATH</code>.</p>
+ <p>One binary. <code class="inline">--insecure</code> disables TLS and API-key auth so you can talk to it over plain HTTP on the default ES-compat port <code class="inline">9200</code> — perfect for a local agent loop. Install it first (<code class="inline">curl -fsSL https://xerj.org/get | sh</code> on Linux and macOS, <code class="inline">irm https://xerj.org/get.ps1 | iex</code> on Windows). The Unix installer puts <code class="inline">xerj</code> in <code class="inline">~/.local/bin</code> and prints the exact path if that is not on your <code class="inline">PATH</code>. The Windows installer puts it in <code class="inline">%LOCALAPPDATA%\Programs\xerj</code>.</p>
<pre class="code"># start it in the background — a foreground boot blocks the rest of this page
$ xerj --insecure --data-dir /tmp/xerj-agent &amp;
diff --git a/landing/docs/cli.html b/landing/docs/cli.html
index 1742f8d77..c5392c50b 100644
--- a/landing/docs/cli.html
+++ b/landing/docs/cli.html
@@ -318,7 +318,7 @@ OPTIONS:
}
}</pre>
- <p>Use an <em>absolute</em> path — the installer puts <code class="inline">xerj</code> in <code class="inline">~/.local/bin</code> by default (<code class="inline">command -v xerj</code> confirms), and an MCP host launched from a desktop icon does not inherit your shell's <code class="inline">PATH</code>. When the node is not running <code class="inline">--insecure</code>, add <code class="inline">"XERJ_AUTH": "ApiKey &lt;key&gt;"</code> next to <code class="inline">XERJ_URL</code>; the key lives in <code class="inline">&lt;data-dir&gt;/admin.key</code>. For a loopback node that manual step is optional: with no <code class="inline">XERJ_AUTH</code> given, the server reads <code class="inline">&lt;data-dir&gt;/admin.key</code> itself (the same locations <code class="inline">xerj autoindex</code> checks) and announces the file it used on stderr — it never does this for a non-loopback URL.</p>
+ <p>Use an <em>absolute</em> path — the installer puts <code class="inline">xerj</code> in <code class="inline">~/.local/bin</code> on Linux and macOS (<code class="inline">command -v xerj</code> confirms) and in <code class="inline">%LOCALAPPDATA%\Programs\xerj</code> on Windows, and an MCP host launched from a desktop icon does not inherit your shell's <code class="inline">PATH</code>. When the node is not running <code class="inline">--insecure</code>, add <code class="inline">"XERJ_AUTH": "ApiKey &lt;key&gt;"</code> next to <code class="inline">XERJ_URL</code>; the key lives in <code class="inline">&lt;data-dir&gt;/admin.key</code>. For a loopback node that manual step is optional: with no <code class="inline">XERJ_AUTH</code> given, the server reads <code class="inline">&lt;data-dir&gt;/admin.key</code> itself (the same locations <code class="inline">xerj autoindex</code> checks) and announces the file it used on stderr — it never does this for a non-loopback URL.</p>
<p>Thirteen tools are served. Eleven are thin proxies over an endpoint the engine already exposes — nothing is added, and engine errors come back verbatim: <code class="inline">xerj_search</code>, <code class="inline">xerj_semantic_search</code>, <code class="inline">xerj_vector_search</code>, <code class="inline">xerj_hybrid_search</code>, <code class="inline">xerj_memory_store</code>, <code class="inline">xerj_memory_recall</code>, <code class="inline">xerj_brain_overview</code>, <code class="inline">xerj_brain_ego</code>, <code class="inline">xerj_brain_link</code>, <code class="inline">xerj_brain_unlink</code>, <code class="inline">xerj_plan</code> (<code class="inline">POST /_ask</code>). Two are not plain proxies: <code class="inline">xerj_map</code> returns the autoindex catalog's per-index field map (trimmed to a byte cap), and <code class="inline">xerj_code_search</code> runs the <code class="inline">xerj code</code> pipeline and returns its rendered text. Two caveats the tool descriptions carry themselves: <code class="inline">xerj_semantic_search</code> embeds server-side with the <em>lexical</em> feature-hashing embedder unless the node runs <code class="inline">--embed-mode neural</code>, and the <code class="inline">xerj_brain_*</code> tools work a deterministic link index, not a graph database.</p>
diff --git a/landing/docs/install.html b/landing/docs/install.html
index 98c237694..315e6c445 100644
--- a/landing/docs/install.html
+++ b/landing/docs/install.html
@@ -242,7 +242,7 @@
<p>Both installers verify <strong>fail-closed</strong>: each computes the archive's own SHA-256 and compares it against the published digest, and if the checksum cannot be downloaded, or no SHA-256 tool (<code class="inline">sha256sum</code>, <code class="inline">shasum</code>, <code class="inline">openssl</code>, <code class="inline">busybox</code>…) can be found, the installer stops rather than installing an unverified binary.</p>
<p>On Linux the one-liner installs the <strong>static musl</strong> build by default — it runs on any distro including Alpine and has no glibc-version floor. Ask for the glibc build explicitly if you need it:</p>
<pre class="code">$ curl -fsSL https://xerj.org/get | XERJ_LIBC=gnu sh</pre>
- <p>Other environment overrides: <code class="inline">XERJ_VERSION</code> (install a specific tag), <code class="inline">XERJ_INSTALL_DIR</code> (default <code class="inline">~/.local/bin</code>), <code class="inline">XERJ_REPO</code>.</p>
+ <p>Other environment overrides: <code class="inline">XERJ_VERSION</code> (install a specific tag), <code class="inline">XERJ_INSTALL_DIR</code> (default <code class="inline">~/.local/bin</code> on Linux and macOS, <code class="inline">%LOCALAPPDATA%\Programs\xerj</code> on Windows), <code class="inline">XERJ_REPO</code>.</p>
<h2>Manual download</h2>
<p>Every release publishes eight targets, each with a <code class="inline">.sha256</code> alongside: <code class="inline">x86_64</code>/<code class="inline">aarch64</code> × <code class="inline">unknown-linux-musl</code> (static, any distro), <code class="inline">unknown-linux-gnu</code>, <code class="inline">apple-darwin</code>, and <code class="inline">pc-windows-msvc</code> (.zip).</p>
diff --git a/landing/sitemap.xml b/landing/sitemap.xml
index 84225e203..245c53b40 100644
--- a/landing/sitemap.xml
+++ b/landing/sitemap.xml
@@ -482,7 +482,7 @@
</url>
<url>
<loc>https://xerj.org/docs/agents/quickstart</loc>
- <lastmod>2026-10-16</lastmod>
+ <lastmod>2026-10-17</lastmod>
</url>
<url>
<loc>https://xerj.org/docs/aggregations</loc>
@@ -506,7 +506,7 @@
</url>
<url>
<loc>https://xerj.org/docs/cli</loc>
- <lastmod>2026-10-16</lastmod>
+ <lastmod>2026-10-17</lastmod>
</url>
<url>
<loc>https://xerj.org/docs/clustering</loc>