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.

fix(site): advertise API documentation in homepage Link headers (#2291)

Mario Marcolongo2e2bac646dd9
diff --git a/landing/_headers b/landing/_headers
index 0de266121..733c69f9d 100644
--- a/landing/_headers
+++ b/landing/_headers
@@ -30,10 +30,17 @@
# The root index.html IS the encrypted payload — it changes every
# deploy and must never be served stale. no-cache forces the browser
# to revalidate with the server on every navigation.
+# Advertise the existing agent guide, API docs and partial OpenAPI description
+# using RFC 8631 relations, so agents can discover the local-node contract
+# from a GET or HEAD without parsing the homepage. These are documentation
+# links, not a claim that xerj.org hosts a public search API.
+# https://www.rfc-editor.org/rfc/rfc8631.html
/
Cache-Control: no-cache
+ Link: </llms.txt>; rel="describedby"; type="text/plain", </openapi.json>; rel="service-desc"; type="application/json", </docs/agents/endpoints>; rel="service-doc"; type="text/html"
/index.html
Cache-Control: no-cache
+ Link: </llms.txt>; rel="describedby"; type="text/plain", </openapi.json>; rel="service-desc"; type="application/json", </docs/agents/endpoints>; rel="service-doc"; type="text/html"
# The one-line installer: curl -fsSL https://xerj.org/get | sh
# Serve as plain text so browsers display it (auditable) and curl gets