diff --git a/site/assets/docs-index.json b/site/assets/docs-index.json
new file mode 100644
index 0000000..1a0cf1e
--- /dev/null
+++ b/site/assets/docs-index.json
@@ -0,0 +1 @@
+[{"slug":"install","title":"Install","text":"install filiation comes two ways: a desktop app, and fil, the command line. both use the same library, so you can switch between them. windows macos linux the app download the installer and run it. it installs for you only, needs no administrator rights, and adds fil to your path so a terminal and your ai assistant can find it. download the windows installer ! the installer isn't signed yet, so windows smartscreen may warn you. choose more info , then run anyway . a macos installer is coming. until then, the app builds from source (see contributing.md ), and the command line below works today. a linux package is coming. until then, the app builds from source (see contributing.md ), and the command line below works today. the command line one file, nothing else to install. download it from the latest release , unpack it, and run it. expand-archive fil_{v}_windows_amd64.zip fil .\\fil\\fil.exe version copy tar xzf fil_{v}_darwin_arm64.tar.gz sudo mv fil /usr/local/bin/ fil version copy on an intel mac, download the darwin_amd64 archive instead. tar xzf fil_{v}_linux_amd64.tar.gz sudo mv fil /usr/local/bin/ fil version copy see where your library lives: fil where copy"},{"slug":"first-library","title":"Your first library","text":"your first library give filiation one paper you know well. in a few minutes it has found what that paper cites, kept the pdfs that are free to read, and made them searchable. add a paper a doi, arxiv id, link or title. filiation records the paper and every work it cites. fil add arxiv:1409.0473 copy follow its references fetch the papers it cites, and theirs, most-cited first, up to a budget you set. fil expand --max-nodes 300 copy keep the pdfs download the legal open-access copies and read their text so it can be searched. fil fetch copy search a few keywords. each passage comes back with its paper and page. fil search attention alignment translation copy i in the app, each step is one action: paste into the title bar search to add a paper, then library › fetch pdfs . the command line and the app share the same library."},{"slug":"desktop-app","title":"The desktop app","text":"the desktop app one window, a few screens. everything you do here, the command line can do too. screens papers your library, one paper per row, with its pdf, labels and details beside it. search keywords across every pdf; the passage and its page, lit on the pdf. citation map what a paper cites and what cites it, or the whole library at once. reader read, highlight and comment. notes live in your library; the pdf stays as it was. groups topics found from the citations alone, offered as collections. title bar search find a paper you have, or paste a doi or title to add a new one. keys worth knowing ctrl+f search your library from the title bar. ctrl+click select more than one paper. shift+click select a run of papers. ctrl+a select every paper in the list. delete delete the selected papers. their folders go to the recycle bin. right-click a paper's actions: favourite, add to a collection, label, show on the map, download its pdf, bring in papers around it, delete."},{"slug":"command-line","title":"Command line","text":"command line every fil command, grouped by what you are doing. a paper can be named by its fil id, doi, arxiv id, openalex id or title. build read library other fil add paper add a paper and record everything it cites. by doi, arxiv id, pmid, openalex id, link or title. fil expand follow references outward and grow the graph, most-cited first. --max-nodes 500 --max-depth 3 fil fetch [paper] download the legal open-access pdfs of your papers. --max n --dry-run fil import [file…] identify pdfs you already have and file them in your library. fil zotero bring in your zotero library. --dry-run --from file --tags --no-pdfs --no-refs --skip key fil match fil id [id] find one of your own documents in openalex. fil search words find passages in your pdfs by keyword, with their page. --paper x --view name --limit n --references --pick fil list list the papers in your library, with their pdf and text. fil show paper tell everything the library knows about one paper. fil neighbours paper what a paper cites, and what in your library cites it. fil path paper paper the shortest chain of citations between two papers. fil groups [group] groups of papers that cite one another. fil stats summarise your library. fil library show your library folder. fil library new folder make another library in a new folder. fil library move folder move your library to a new folder. fil library scan find papers you moved, renamed or deleted in papers/. fil extract [paper] read the text of your pdfs so they can be searched. --again fil export graphml write the citation graph for gephi, cytoscape or networkx. fil mcp serve your library to an ai assistant over mcp. --read-only --library name fil where print where your library, settings and cache live. fil theme choose fil's colours in the terminal. fil cache clear delete every cached openalex response. fil version print the version. every command explains itself: fil help command ."},{"slug":"mcp","title":"AI assistants (MCP)","text":"ai assistants (mcp) connect filiation to the assistant you already use. it can then search your library and answer with the page each passage came from. i the easiest way: open the app's ai assistants screen and press connect . it finds the assistants on your computer and writes their settings for you, keeping a copy of the old file. set it up by hand claude code claude desktop cursor vs code (copilot) gemini cli run this once in a terminal: claude mcp add filiation -- fil mcp copy start a new claude code session and ask it about your library. add this to claude_desktop_config.json . on windows it is in %appdata%\\claude , on macos in ~/library/application support/claude . { \"mcpservers\": { \"filiation\": { \"command\": \"fil\", \"args\": [\"mcp\"] } } } copy quit claude desktop completely and open it again. add this to ~/.cursor/mcp.json for every project, or .cursor/mcp.json for one: { \"mcpservers\": { \"filiation\": { \"command\": \"fil\", \"args\": [\"mcp\"] } } } copy add this to .vscode/mcp.json : { \"servers\": { \"filiation\": { \"type\": \"stdio\", \"command\": \"fil\", \"args\": [\"mcp\"] } } } copy copilot chat can use it in agent mode. add this to ~/.gemini/settings.json : { \"mcpservers\": { \"filiation\": { \"command\": \"fil\", \"args\": [\"mcp\"] } } } copy it loads the next time gemini cli starts. what your assistant can do search_library find passages by keyword, with their page, to quote. get_paper everything about one paper, including why it has no pdf or text. neighbours what a paper cites and what cites it, with the sentence it cites each in, when one was found. find_path the chain of citations between two papers. citation_groups the library's topics, found from its citations alone. library_stats what is in the library. add_paper add a paper by doi, arxiv id, pmid, openalex id, link or title. expand_graph follow references outward, within a budget. fetch_pdfs download more open-access pdfs. i add --read-only after mcp and the assistant can read your library but not add to it, and nothing it does reaches the network. add --library thesis to point it at another library."},{"slug":"zotero","title":"Bring in Zotero","text":"bring in zotero keep using zotero for your references. filiation reads its library and grows a citation map around it. filiation reads zotero 7 or later through its local api, read-only: it never changes your zotero library. zotero must be running. in zotero, choose edit › settings › advanced and tick allow other applications on this computer to communicate with zotero . fil zotero --dry-run # see what would come in fil zotero # bring it in copy in the app, the same is in the inbox, under zotero. options --dry-run say what would come in, and write nothing. --tags make labels from the tags you added in zotero. --no-pdfs do not copy the pdfs. --no-refs do not record what each paper cites. --skip key leave out a zotero collection, by its key, and those inside it. --from file read a zotero rdf export instead of the running zotero. from an export file if zotero isn't on this computer, export the library as zotero rdf with its files, then: fil zotero --from \"my library.rdf\" copy"},{"slug":"how-it-works","title":"How it works","text":"how it works what filiation keeps, where it comes from, and the few rules it never breaks. fil ids every paper gets a fil id, such as f7k2m9qxa , made once and never changed. use it, a doi, an openalex id or a title wherever a command asks for a paper. where citations come from reference lists come from openalex , already matched to the papers they name. no model reads your papers to guess at links, so every line on the map is a real citation. stubs a paper something cites, but that filiation has not fetched yet, is a stub: its title may be known, its abstract and references are not. fil expand fetches stubs, most-cited first. open access only filiation downloads only the legal open-access copies openalex lists. it never scrapes a publisher's site or uses anyone's login. for other papers, add the pdfs you have. your library folder a library is a folder you choose: a database file, and a papers/ folder with one readable folder per paper. copy it, back it up, or sync it like any other folder. fil export graphml writes the graph out for other tools."},{"slug":"troubleshooting","title":"Troubleshooting","text":"troubleshooting the questions people ask most, and what to do. common questions my assistant says the server failed to start. run fil version in a terminal. if that fails, the assistant cannot find fil either: put the full path to fil in its settings, or reinstall with \"add fil to my path\" ticked. the assistant cannot find a paper i added. both must use the same library. compare fil where with the path in the server's first log line, and check the assistant's settings for a --library argument. why do so many papers have no pdf? filiation only keeps legal open-access copies, and most papers have none: about one in eight overall, many more in physics, very few in the humanities. add the pdfs you have with fil import or the inbox. expansion stopped after one step. the papers probably have no reference lists in openalex. that is common outside the sciences, and is the data, not a fault. each paper shows whether its references are known. windows warned me about the installer. the installer is not signed yet. choose more info, then run anyway. where are my files? run fil where . your library is a folder you chose, with a papers/ folder of readable pdf folders inside. uninstalling the app never touches it. still stuck? open an issue with the output of fil version and fil where ."}]
\ No newline at end of file
diff --git a/site/assets/docs.css b/site/assets/docs.css
index 07c3068..a802078 100644
--- a/site/assets/docs.css
+++ b/site/assets/docs.css
@@ -74,3 +74,24 @@
.page h1 { font-size: 30px; }
.pg b { font-size: 16px; }
}
+
+/* The docs front page and the guides. */
+.ver { font-size: 13px; color: var(--muted); }
+.crumb a { color: var(--muted); text-decoration: none; }
+.crumb a:hover { color: var(--accent); }
+.doc-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 760px; margin-bottom: 8px; }
+.doc-card { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); text-decoration: none; }
+.doc-card:hover { border-color: var(--accent); color: var(--text); }
+.doc-card b { font-size: 16px; }
+.doc-card span { font-size: 14px; line-height: 1.5; color: var(--muted); }
+.guide { max-width: 820px; margin: 0 auto; padding: 48px 24px 96px; }
+.guide .page h1 { font-size: 44px; }
+.ticks { max-width: 740px; margin: 0 0 16px; padding: 0; list-style: none; }
+.ticks li { position: relative; padding: 0 0 12px 30px; font-size: 16px; line-height: 1.65; color: var(--text-2); }
+.ticks li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
+.ticks b { color: var(--text); }
+.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; max-width: 760px; margin: 40px 0 8px; padding: 22px 24px; border-radius: 14px; background: var(--accent-soft); }
+.cta > div { flex: 1 1 280px; display: flex; flex-direction: column; gap: 4px; }
+.cta b { font-size: 18px; color: var(--accent-text); }
+.cta span { font-size: 14.5px; line-height: 1.5; color: var(--accent-text); }
+@media (max-width: 760px) { .doc-cards { grid-template-columns: minmax(0, 1fr); } .guide { padding: 28px 16px 64px; } .guide .page h1 { font-size: 32px; } .top .ver { display: none; } }
diff --git a/site/assets/docs.js b/site/assets/docs.js
index e141edc..c4bf0d7 100644
--- a/site/assets/docs.js
+++ b/site/assets/docs.js
@@ -1,83 +1,18 @@
-// The documentation: one page at a time, chosen by the address (#install,
-// #mcp …), tabs that remember the visitor's choice across pages, a filter for
-// the sidebar, and the "on this page" list. Without the script, every page
-// shows in order and every link still works.
+// The documentation pages: tabs that remember the visitor's choice across
+// pages, "on this page" following the reading position, and the sidebar's
+// search over every page. Each page is complete without it.
(() => {
const $ = (s, root = document) => root.querySelector(s);
const $$ = (s, root = document) => [...root.querySelectorAll(s)];
- const pages = $$('.page');
- const navLinks = $$('#doc-nav .nav');
- const ids = pages.map((p) => p.id);
-
- const arrow = (dir) => '';
- const text = (s) => { const d = document.createElement('div'); d.textContent = s; return d.innerHTML; };
-
- // The page for an address: a page's own id, or the page holding an id.
- const pageFor = (hash) => {
- const id = decodeURIComponent(hash.replace(/^#/, ''));
- if (ids.includes(id)) return { page: id, anchor: null };
- const target = id && document.getElementById(id);
- const page = target && target.closest('.page');
- return page ? { page: page.id, anchor: id } : { page: ids[0], anchor: null };
- };
-
- const show = () => {
- const { page, anchor } = pageFor(location.hash);
- const i = ids.indexOf(page);
- const el = pages[i];
- pages.forEach((p) => p.classList.toggle('on', p === el));
- navLinks.forEach((a) => (a.getAttribute('href') === '#' + page ? a.setAttribute('aria-current', 'page') : a.removeAttribute('aria-current')));
- document.title = el.querySelector('h1').textContent + ' · Filiation documentation';
-
- const toc = $('#toc');
- toc.replaceChildren(toc.querySelector('b'));
- $$('h2[id], h3[id]', el).forEach((h, k) => {
- const a = document.createElement('a');
- a.href = '#' + h.id;
- a.textContent = h.textContent;
- if (k === 0) a.className = 'on';
- toc.append(a);
- });
-
- const prev = pages[i - 1], next = pages[i + 1];
- $('#pager').innerHTML =
- (prev ? '' + arrow(-1) + 'PREVIOUS' + text(prev.querySelector('h1').textContent) + '' : '') +
- (next ? 'NEXT · ' + text(next.dataset.group.toUpperCase()) + '' + text(next.querySelector('h1').textContent) + '' + arrow(1) + '' : '');
-
- if (anchor) document.getElementById(anchor).scrollIntoView();
- else window.scrollTo(0, 0);
- watch(el);
- };
-
- // "On this page" follows the reading position.
- let observer;
- const watch = (el) => {
- if (observer) observer.disconnect();
- if (!('IntersectionObserver' in window)) return;
- observer = new IntersectionObserver((entries) => {
- const seen = entries.filter((e) => e.isIntersecting).map((e) => e.target.id);
- if (!seen.length) return;
- $$('#toc a').forEach((a) => a.classList.toggle('on', a.getAttribute('href') === '#' + seen[0]));
- }, { rootMargin: '-80px 0px -65% 0px' });
- $$('h2[id], h3[id]', el).forEach((h) => observer.observe(h));
- };
-
- // Clicking a contents link inside the current page scrolls without
- // re-rendering; the address still changes so it can be shared.
- document.addEventListener('click', (e) => {
- const a = e.target.closest('#toc a');
- if (!a) return;
- e.preventDefault();
- const id = a.getAttribute('href').slice(1);
- history.replaceState(null, '', '#' + id);
- document.getElementById(id).scrollIntoView({ behavior: matchMedia('(prefers-reduced-motion: reduce)').matches ? 'auto' : 'smooth' });
- });
// Tabs: a choice in one group (the system, the assistant) holds on every page.
const choose = (group, value) => {
$$('[data-tabgroup="' + group + '"] [data-tab]').forEach((b) => b.setAttribute('aria-selected', String(b.dataset.tab === value)));
$$('[data-panel^="' + group + ':"]').forEach((p) => { p.hidden = p.dataset.panel !== group + ':' + value; });
- if (group === 'os') { const dl = $('#cli-download'); if (dl) { dl.dataset.os = value; if (window.filAssets && window.filAssets.cli[value]) dl.href = window.filAssets.cli[value]; } }
+ if (group === 'os') {
+ const dl = $('#cli-download');
+ if (dl) { dl.dataset.os = value; if (window.filAssets && window.filAssets.cli[value]) dl.href = window.filAssets.cli[value]; }
+ }
try { localStorage.setItem('fil-docs-' + group, value); } catch (err) { /* private window */ }
};
$$('[data-tabgroup]').forEach((g) => {
@@ -85,45 +20,66 @@
g.addEventListener('click', (e) => { const b = e.target.closest('[data-tab]'); if (b) choose(group, b.dataset.tab); });
let saved = null;
try { saved = localStorage.getItem('fil-docs-' + group); } catch (err) { /* private window */ }
- const first = group === 'os' && window.filOS ? window.filOS : null;
- const want = saved || first;
+ const want = saved || (group === 'os' ? window.filOS : null);
if (want && g.querySelector('[data-tab="' + want + '"]')) choose(group, want);
});
// Commands name the newest release.
- const fill = (v) => $$('code[data-cmd]').forEach((c) => { c.textContent = c.dataset.template.replace(/\{v\}/g, v); });
- $$('code[data-cmd]').forEach((c) => { c.dataset.template = c.textContent; });
- fill('0.4.1');
- document.addEventListener('fil:version', (e) => { fill(e.detail); const os = $('[data-tabgroup="os"] [aria-selected="true"]'); if (os) choose('os', os.dataset.tab); });
+ const cmds = $$('code[data-cmd]');
+ cmds.forEach((c) => { c.dataset.template = c.textContent; });
+ const fill = (v) => cmds.forEach((c) => { c.textContent = c.dataset.template.replace(/\{v\}/g, v); });
+ fill(window.filVersion || '0.4.2');
+ document.addEventListener('fil:version', (e) => {
+ fill(e.detail);
+ const os = $('[data-tabgroup="os"] [aria-selected="true"]');
+ if (os) choose('os', os.dataset.tab);
+ });
+
+ // "On this page" follows the reading position.
+ const heads = $$('.page h2[id], .page h3[id]');
+ if (heads.length && 'IntersectionObserver' in window) {
+ const links = $$('#toc a');
+ const observer = new IntersectionObserver((entries) => {
+ const seen = entries.filter((e) => e.isIntersecting).map((e) => e.target.id);
+ if (seen.length) links.forEach((a) => a.classList.toggle('on', a.getAttribute('href') === '#' + seen[0]));
+ }, { rootMargin: '-80px 0px -65% 0px' });
+ heads.forEach((h) => observer.observe(h));
+ }
- // The sidebar filter: matches page titles and their text.
+ // The sidebar's search, over every page's words, loaded on first use.
const find = $('#doc-find');
- const words = pages.map((p) => p.textContent.toLowerCase());
- find.addEventListener('input', () => {
+ const nav = $('#doc-nav');
+ if (!find || !nav) return;
+ const root = nav.dataset.root || '';
+ const navLinks = $$('.nav', nav);
+ let index = null;
+ const load = () => index || (index = fetch(root + 'assets/docs-index.json').then((r) => r.json()).catch(() => []));
+ const filter = async () => {
const q = find.value.trim().toLowerCase().split(/\s+/).filter(Boolean);
+ const pages = await load();
+ const hits = new Set(pages.filter((p) => q.every((w) => p.text.includes(w))).map((p) => p.slug));
let shown = 0;
navLinks.forEach((a) => {
- const i = ids.indexOf(a.getAttribute('href').slice(1));
- const hit = q.every((w) => words[i].includes(w));
+ const slug = a.getAttribute('href').replace(/\/$/, '').split('/').pop();
+ const hit = !q.length || hits.has(slug);
a.hidden = !hit;
if (hit) shown++;
});
- $$('#doc-nav .group').forEach((g) => {
+ $$('.group', nav).forEach((g) => {
let n = g.nextElementSibling, any = false;
while (n && n.classList.contains('nav')) { if (!n.hidden) any = true; n = n.nextElementSibling; }
g.hidden = !any;
});
$('#no-match').hidden = shown > 0;
- });
+ };
+ find.addEventListener('focus', load);
+ find.addEventListener('input', filter);
find.addEventListener('keydown', (e) => {
if (e.key !== 'Enter') return;
const first = navLinks.find((a) => !a.hidden);
- if (first) location.hash = first.getAttribute('href');
+ if (first) location.href = first.href;
});
document.addEventListener('keydown', (e) => {
if (e.key === '/' && !e.target.closest('input, textarea')) { e.preventDefault(); find.focus(); }
});
-
- window.addEventListener('hashchange', show);
- show();
})();
diff --git a/site/assets/home.js b/site/assets/home.js
index ee49eb1..f02b926 100644
--- a/site/assets/home.js
+++ b/site/assets/home.js
@@ -12,7 +12,7 @@
let whole = false;
heroBtn.addEventListener('click', () => {
whole = !whole;
- heroShot.src = IMG + (whole ? 'hero-whole.png' : 'hero-around.png');
+ heroShot.src = IMG + (whole ? 'hero-whole.webp' : 'hero-around.webp');
heroShot.alt = whole ? 'The citation map of a whole library of 2,831 papers' : 'One paper and the papers it cites, in the citation map';
heroBtn.textContent = whole ? 'Back to one paper' : 'See the whole library';
heroNote.textContent = whole ? 'A whole library: 2,831 papers and 4,933 citations. Blue ones have their PDF.' : 'One paper and what it cites. Solid boxes have their PDF in your library.';
@@ -27,10 +27,10 @@
// Simple from the first minute.
const simple = [
- ['Install', 'One installer for Windows, no admin rights. Filiation asks where your library should live, and that is all the setup there is.', 'papers.png', 'The Papers list'],
- ['Add a paper', 'Paste a DOI, an arXiv ID, a link or a title into the search box. Filiation records what it cites, and follows those references for you.', 'find.png', 'Adding a paper from the title bar'],
- ['See the map', 'Every paper and every citation between them, on one screen. Bigger means cited by more of your papers.', 'whole.png', 'The citation map of a library'],
- ['Search', 'Type a few keywords. The passages that match come back with their pages, lit on the PDF.', 'search.png', 'Search with the PDF page lit'],
+ ['Install', 'One installer for Windows, no admin rights. Filiation asks where your library should live, and that is all the setup there is.', 'papers.webp', 'The Papers list'],
+ ['Add a paper', 'Paste a DOI, an arXiv ID, a link or a title into the search box. Filiation records what it cites, and follows those references for you.', 'find.webp', 'Adding a paper from the title bar'],
+ ['See the map', 'Every paper and every citation between them, on one screen. Bigger means cited by more of your papers.', 'whole.webp', 'The citation map of a library'],
+ ['Search', 'Type a few keywords. The passages that match come back with their pages, lit on the PDF.', 'search.webp', 'Search with the PDF page lit'],
];
const simpleTabs = $$('[data-tabs="simple"] [data-tab]');
simpleTabs.forEach((b) => b.addEventListener('click', () => {
@@ -120,11 +120,11 @@
// The desktop app.
const app = [
- ['papers.png', 'Papers', 'Your library, one paper per row, with its PDF, labels and the paper open beside it.'],
- ['search.png', 'Search', 'A few keywords, the passages that match them, and the PDF page lit.'],
- ['map.png', 'Citation map', 'What a paper cites and what cites it, and which of them you have the PDF for.'],
- ['reader.png', 'Reader', 'Read and mark up; notes live in your library, so the PDF file stays as it was.'],
- ['groups.png', 'Groups', 'Topics found from the citations alone, offered as collections.'],
+ ['papers.webp', 'Papers', 'Your library, one paper per row, with its PDF, labels and the paper open beside it.'],
+ ['search.webp', 'Search', 'A few keywords, the passages that match them, and the PDF page lit.'],
+ ['map.webp', 'Citation map', 'What a paper cites and what cites it, and which of them you have the PDF for.'],
+ ['reader.webp', 'Reader', 'Read and mark up; notes live in your library, so the PDF file stays as it was.'],
+ ['groups.webp', 'Groups', 'Topics found from the citations alone, offered as collections.'],
];
const appTabs = $$('[data-tabs="app"] [data-tab]');
appTabs.forEach((b) => b.addEventListener('click', () => {
diff --git a/site/assets/img/find.png b/site/assets/img/find.png
deleted file mode 100644
index 0ef7b8d..0000000
Binary files a/site/assets/img/find.png and /dev/null differ
diff --git a/site/assets/img/find.webp b/site/assets/img/find.webp
new file mode 100644
index 0000000..b8d6a23
Binary files /dev/null and b/site/assets/img/find.webp differ
diff --git a/site/assets/img/groups.png b/site/assets/img/groups.png
deleted file mode 100644
index cd37d05..0000000
Binary files a/site/assets/img/groups.png and /dev/null differ
diff --git a/site/assets/img/groups.webp b/site/assets/img/groups.webp
new file mode 100644
index 0000000..25d4859
Binary files /dev/null and b/site/assets/img/groups.webp differ
diff --git a/site/assets/img/hero-around.png b/site/assets/img/hero-around.png
deleted file mode 100644
index 8591058..0000000
Binary files a/site/assets/img/hero-around.png and /dev/null differ
diff --git a/site/assets/img/hero-around.webp b/site/assets/img/hero-around.webp
new file mode 100644
index 0000000..87e8a1b
Binary files /dev/null and b/site/assets/img/hero-around.webp differ
diff --git a/site/assets/img/hero-whole.png b/site/assets/img/hero-whole.png
deleted file mode 100644
index fd62b25..0000000
Binary files a/site/assets/img/hero-whole.png and /dev/null differ
diff --git a/site/assets/img/hero-whole.webp b/site/assets/img/hero-whole.webp
new file mode 100644
index 0000000..9b321fd
Binary files /dev/null and b/site/assets/img/hero-whole.webp differ
diff --git a/site/assets/img/map.png b/site/assets/img/map.png
deleted file mode 100644
index 82bf5c1..0000000
Binary files a/site/assets/img/map.png and /dev/null differ
diff --git a/site/assets/img/map.webp b/site/assets/img/map.webp
new file mode 100644
index 0000000..ff1eedb
Binary files /dev/null and b/site/assets/img/map.webp differ
diff --git a/site/assets/img/og.jpg b/site/assets/img/og.jpg
new file mode 100644
index 0000000..de3275f
Binary files /dev/null and b/site/assets/img/og.jpg differ
diff --git a/site/assets/img/papers.png b/site/assets/img/papers.png
deleted file mode 100644
index 3917096..0000000
Binary files a/site/assets/img/papers.png and /dev/null differ
diff --git a/site/assets/img/papers.webp b/site/assets/img/papers.webp
new file mode 100644
index 0000000..2cbccc2
Binary files /dev/null and b/site/assets/img/papers.webp differ
diff --git a/site/assets/img/reader.png b/site/assets/img/reader.png
deleted file mode 100644
index 2dd09f2..0000000
Binary files a/site/assets/img/reader.png and /dev/null differ
diff --git a/site/assets/img/reader.webp b/site/assets/img/reader.webp
new file mode 100644
index 0000000..75df470
Binary files /dev/null and b/site/assets/img/reader.webp differ
diff --git a/site/assets/img/search.png b/site/assets/img/search.png
deleted file mode 100644
index c98d366..0000000
Binary files a/site/assets/img/search.png and /dev/null differ
diff --git a/site/assets/img/search.webp b/site/assets/img/search.webp
new file mode 100644
index 0000000..4465fe5
Binary files /dev/null and b/site/assets/img/search.webp differ
diff --git a/site/assets/img/whole.png b/site/assets/img/whole.png
deleted file mode 100644
index b56557b..0000000
Binary files a/site/assets/img/whole.png and /dev/null differ
diff --git a/site/assets/img/whole.webp b/site/assets/img/whole.webp
new file mode 100644
index 0000000..0244f96
Binary files /dev/null and b/site/assets/img/whole.webp differ
diff --git a/site/docs/command-line/index.html b/site/docs/command-line/index.html
new file mode 100644
index 0000000..8ed975f
--- /dev/null
+++ b/site/docs/command-line/index.html
@@ -0,0 +1,138 @@
+
+
+
Give Filiation one paper you know well. In a few minutes it has found what that paper cites, kept the PDFs that are free to read, and made them searchable.
+
+
Add a paper
A DOI, arXiv ID, link or title. Filiation records the paper and every work it cites.
fil add arXiv:1409.0473
+
Follow its references
Fetch the papers it cites, and theirs, most-cited first, up to a budget you set.
fil expand --max-nodes 300
+
Keep the PDFs
Download the legal open-access copies and read their text so it can be searched.
fil fetch
+
Search
A few keywords. Each passage comes back with its paper and page.
fil search attention alignment translation
+
+
iIn the app, each step is one action: paste into the title bar search to add a paper, then Library › Fetch PDFs. The command line and the app share the same library.
What Filiation keeps, where it comes from, and the few rules it never breaks.
+
fil IDs
+
Every paper gets a fil ID, such as F7K2M9QXA, made once and never changed. Use it, a DOI, an OpenAlex ID or a title wherever a command asks for a paper.
+
Where citations come from
+
Reference lists come from OpenAlex, already matched to the papers they name. No model reads your papers to guess at links, so every line on the map is a real citation.
+
Stubs
+
A paper something cites, but that Filiation has not fetched yet, is a stub: its title may be known, its abstract and references are not. fil expand fetches stubs, most-cited first.
+
Open access only
+
Filiation downloads only the legal open-access copies OpenAlex lists. It never scrapes a publisher's site or uses anyone's login. For other papers, add the PDFs you have.
+
Your library folder
+
A library is a folder you choose: a database file, and a papers/ folder with one readable folder per paper. Copy it, back it up, or sync it like any other folder. fil export graphml writes the graph out for other tools.
Download the installer and run it. It installs for you only, needs no administrator rights, and adds fil to your PATH so a terminal and your AI assistant can find it.
Expand-Archive fil_{v}_windows_amd64.zip fil
-.\fil\fil.exe version
-
tar xzf fil_{v}_darwin_arm64.tar.gz
-sudo mv fil /usr/local/bin/
-fil version
On an Intel Mac, download the darwin_amd64 archive instead.
-
tar xzf fil_{v}_linux_amd64.tar.gz
-sudo mv fil /usr/local/bin/
-fil version
-
See where your library lives:
-
fil where
-
-
-
-
-
Docs › Getting started
-
Your first library
-
Give Filiation one paper you know well. In a few minutes it has found what that paper cites, kept the PDFs that are free to read, and made them searchable.
-
-
Add a paper
A DOI, arXiv ID, link or title. Filiation records the paper and every work it cites.
fil add arXiv:1409.0473
-
Follow its references
Fetch the papers it cites, and theirs, most-cited first, up to a budget you set.
fil expand --max-nodes 300
-
Keep the PDFs
Download the legal open-access copies and read their text so it can be searched.
fil fetch
-
Search
A few keywords. Each passage comes back with its paper and page.
fil search attention alignment translation
-
-
iIn the app, each step is one action: paste into the title bar search to add a paper, then Library › Fetch PDFs. The command line and the app share the same library.
-
-
-
-
-
Docs › Using Filiation
-
The desktop app
-
One window, a few screens. Everything you do here, the command line can do too.
-
Screens
-
-
PapersYour library, one paper per row, with its PDF, labels and details beside it.
-
SearchKeywords across every PDF; the passage and its page, lit on the PDF.
-
Citation mapWhat a paper cites and what cites it, or the whole library at once.
-
ReaderRead, highlight and comment. Notes live in your library; the PDF stays as it was.
-
GroupsTopics found from the citations alone, offered as collections.
-
Title bar searchFind a paper you have, or paste a DOI or title to add a new one.
-
-
Keys worth knowing
-
-
Ctrl+F
Search your library from the title bar.
-
Ctrl+click
Select more than one paper.
-
Shift+click
Select a run of papers.
-
Ctrl+A
Select every paper in the list.
-
Delete
Delete the selected papers. Their folders go to the Recycle Bin.
-
Right-click
A paper's actions: favourite, add to a collection, label, show on the map, download its PDF, bring in papers around it, delete.
-
-
-
-
-
-
Docs › Using Filiation
-
Command line
-
Every fil command, grouped by what you are doing. A paper can be named by its fil ID, DOI, arXiv ID, OpenAlex ID or title.
-
-
-
-
-
-
-
-
fil add <paper>
Add a paper and record everything it cites. By DOI, arXiv ID, PMID, OpenAlex ID, link or title.
-
fil expand
Follow references outward and grow the graph, most-cited first.--max-nodes 500 --max-depth 3
-
fil fetch [paper]
Download the legal open-access PDFs of your papers.--max N --dry-run
-
fil import [file…]
Identify PDFs you already have and file them in your library.
-
fil zotero
Bring in your Zotero library.--dry-run --from FILE --tags --no-pdfs --no-refs --skip KEY
-
fil match <fil ID> [id]
Find one of your own documents in OpenAlex.
-
-
-
fil search <words>
Find passages in your PDFs by keyword, with their page.--paper X --view NAME --limit N --references --pick
-
fil list
List the papers in your library, with their PDF and text.
-
fil show <paper>
Tell everything the library knows about one paper.
-
fil neighbours <paper>
What a paper cites, and what in your library cites it.
-
fil path <paper> <paper>
The shortest chain of citations between two papers.
-
fil groups [group]
Groups of papers that cite one another.
-
fil stats
Summarise your library.
-
-
-
fil library
Show your library folder.
-
fil library new <folder>
Make another library in a new folder.
-
fil library move <folder>
Move your library to a new folder.
-
fil library scan
Find papers you moved, renamed or deleted in papers/.
-
fil extract [paper]
Read the text of your PDFs so they can be searched.--again
-
fil export graphml
Write the citation graph for Gephi, Cytoscape or NetworkX.
-
-
-
fil mcp
Serve your library to an AI assistant over MCP.--read-only --library NAME
-
fil where
Print where your library, settings and cache live.
-
fil theme
Choose fil's colours in the terminal.
-
fil cache clear
Delete every cached OpenAlex response.
-
fil version
Print the version.
-
-
Every command explains itself: fil help <command>.
-
-
-
-
-
Docs › Using Filiation
-
AI assistants (MCP)
-
Connect Filiation to the assistant you already use. It can then search your library and answer with the page each passage came from.
-
iThe easiest way: open the app's AI assistants screen and press Connect. It finds the assistants on your computer and writes their settings for you, keeping a copy of the old file.
Find passages by keyword, with their page, to quote.
-
get_paper
Everything about one paper, including why it has no PDF or text.
-
neighbours
What a paper cites and what cites it, with the sentence it cites each in, when one was found.
-
find_path
The chain of citations between two papers.
-
citation_groups
The library's topics, found from its citations alone.
-
library_stats
What is in the library.
-
add_paper
Add a paper by DOI, arXiv ID, PMID, OpenAlex ID, link or title.
-
expand_graph
Follow references outward, within a budget.
-
fetch_pdfs
Download more open-access PDFs.
-
-
iAdd --read-only after mcp and the assistant can read your library but not add to it, and nothing it does reaches the network. Add --library Thesis to point it at another library.
-
-
-
-
-
Docs › Using Filiation
-
Bring in Zotero
-
Keep using Zotero for your references. Filiation reads its library and grows a citation map around it.
-
Filiation reads Zotero 7 or later through its local API, read-only: it never changes your Zotero library. Zotero must be running. In Zotero, choose Edit › Settings › Advanced and tick Allow other applications on this computer to communicate with Zotero.
-
fil zotero --dry-run # see what would come in
-fil zotero # bring it in
-
In the app, the same is in the Inbox, under Zotero.
-
Options
-
-
--dry-run
Say what would come in, and write nothing.
-
--tags
Make labels from the tags you added in Zotero.
-
--no-pdfs
Do not copy the PDFs.
-
--no-refs
Do not record what each paper cites.
-
--skip KEY
Leave out a Zotero collection, by its key, and those inside it.
-
--from FILE
Read a Zotero RDF export instead of the running Zotero.
-
-
From an export file
-
If Zotero isn't on this computer, export the library as Zotero RDF with its files, then:
-
fil zotero --from "My Library.rdf"
-
-
-
-
-
Docs › Reference
-
How it works
-
What Filiation keeps, where it comes from, and the few rules it never breaks.
-
fil IDs
-
Every paper gets a fil ID, such as F7K2M9QXA, made once and never changed. Use it, a DOI, an OpenAlex ID or a title wherever a command asks for a paper.
-
Where citations come from
-
Reference lists come from OpenAlex, already matched to the papers they name. No model reads your papers to guess at links, so every line on the map is a real citation.
-
Stubs
-
A paper something cites, but that Filiation has not fetched yet, is a stub: its title may be known, its abstract and references are not. fil expand fetches stubs, most-cited first.
-
Open access only
-
Filiation downloads only the legal open-access copies OpenAlex lists. It never scrapes a publisher's site or uses anyone's login. For other papers, add the PDFs you have.
-
Your library folder
-
A library is a folder you choose: a database file, and a papers/ folder with one readable folder per paper. Copy it, back it up, or sync it like any other folder. fil export graphml writes the graph out for other tools.
-
-
-
-
-
Docs › Reference
-
Troubleshooting
-
The questions people ask most, and what to do.
-
Common questions
-
-My assistant says the server failed to start.
Run fil version in a terminal. If that fails, the assistant cannot find fil either: put the full path to fil in its settings, or reinstall with "Add fil to my PATH" ticked.
-The assistant cannot find a paper I added.
Both must use the same library. Compare fil where with the path in the server's first log line, and check the assistant's settings for a --library argument.
-Why do so many papers have no PDF?
Filiation only keeps legal open-access copies, and most papers have none: about one in eight overall, many more in physics, very few in the humanities. Add the PDFs you have with fil import or the Inbox.
-Expansion stopped after one step.
The papers probably have no reference lists in OpenAlex. That is common outside the sciences, and is the data, not a fault. Each paper shows whether its references are known.
-Windows warned me about the installer.
The installer is not signed yet. Choose More info, then Run anyway.
-Where are my files?
Run fil where. Your library is a folder you chose, with a papers/ folder of readable PDF folders inside. Uninstalling the app never touches it.
Filiation comes two ways: a desktop app, and fil, the command line. Both use the same library, so you can switch between them.
+
+
+
+
+
+
The app
+
+
Download the installer and run it. It installs for you only, needs no administrator rights, and adds fil to your PATH so a terminal and your AI assistant can find it.
Connect Filiation to the assistant you already use. It can then search your library and answer with the page each passage came from.
+
iThe easiest way: open the app's AI assistants screen and press Connect. It finds the assistants on your computer and writes their settings for you, keeping a copy of the old file.
+
Set it up by hand
+
+
+
+
+
+
+
+
Run this once in a terminal:
claude mcp add filiation -- fil mcp
Start a new Claude Code session and ask it about your library.
+
Add this to claude_desktop_config.json. On Windows it is in %APPDATA%\Claude, on macOS in ~/Library/Application Support/Claude.
Find passages by keyword, with their page, to quote.
+
get_paper
Everything about one paper, including why it has no PDF or text.
+
neighbours
What a paper cites and what cites it, with the sentence it cites each in, when one was found.
+
find_path
The chain of citations between two papers.
+
citation_groups
The library's topics, found from its citations alone.
+
library_stats
What is in the library.
+
add_paper
Add a paper by DOI, arXiv ID, PMID, OpenAlex ID, link or title.
+
expand_graph
Follow references outward, within a budget.
+
fetch_pdfs
Download more open-access PDFs.
+
+
iAdd --read-only after mcp and the assistant can read your library but not add to it, and nothing it does reaches the network. Add --library Thesis to point it at another library.
Run fil version in a terminal. If that fails, the assistant cannot find fil either: put the full path to fil in its settings, or reinstall with "Add fil to my PATH" ticked.
+The assistant cannot find a paper I added.
Both must use the same library. Compare fil where with the path in the server's first log line, and check the assistant's settings for a --library argument.
+Why do so many papers have no PDF?
Filiation only keeps legal open-access copies, and most papers have none: about one in eight overall, many more in physics, very few in the humanities. Add the PDFs you have with fil import or the Inbox.
+Expansion stopped after one step.
The papers probably have no reference lists in OpenAlex. That is common outside the sciences, and is the data, not a fault. Each paper shows whether its references are known.
+Windows warned me about the installer.
The installer is not signed yet. Choose More info, then Run anyway.
+Where are my files?
Run fil where. Your library is a folder you chose, with a papers/ folder of readable PDF folders inside. Uninstalling the app never touches it.
+
+
Still stuck? Open an issue with the output of fil version and fil where.
+
+
+
+
+
+
+
+
+
+
diff --git a/site/docs/zotero/index.html b/site/docs/zotero/index.html
new file mode 100644
index 0000000..3c25c25
--- /dev/null
+++ b/site/docs/zotero/index.html
@@ -0,0 +1,116 @@
+
+
+
+
+
+Import your Zotero library and build a citation graph · Filiation docs
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Skip to the content
+
+
Keep using Zotero for your references. Filiation reads its library and grows a citation map around it.
+
Filiation reads Zotero 7 or later through its local API, read-only: it never changes your Zotero library. Zotero must be running. In Zotero, choose Edit › Settings › Advanced and tick Allow other applications on this computer to communicate with Zotero.
+
fil zotero --dry-run # see what would come in
+fil zotero # bring it in
+
In the app, the same is in the Inbox, under Zotero.
+
Options
+
+
--dry-run
Say what would come in, and write nothing.
+
--tags
Make labels from the tags you added in Zotero.
+
--no-pdfs
Do not copy the PDFs.
+
--no-refs
Do not record what each paper cites.
+
--skip KEY
Leave out a Zotero collection, by its key, and those inside it.
+
--from FILE
Read a Zotero RDF export instead of the running Zotero.
+
+
From an export file
+
If Zotero isn't on this computer, export the library as Zotero RDF with its files, then:
+
fil zotero --from "My Library.rdf"
+
+
+
+
+
+
+
+
+
+
diff --git a/site/guides/ai-assistant-research-library/index.html b/site/guides/ai-assistant-research-library/index.html
new file mode 100644
index 0000000..2c619c8
--- /dev/null
+++ b/site/guides/ai-assistant-research-library/index.html
@@ -0,0 +1,103 @@
+
+
+
+
+
+Let your AI assistant answer from your own papers (MCP) · Filiation
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Skip to the content
+
+
An AI assistant can write about research fluently and still cite things wrongly. Connected to Filiation over MCP, it searches the papers you actually have and quotes them with the page each passage came from.
+
Why answers need your library
+
A model answering from memory can misremember a result or the paper it came from. When it can search your own PDFs instead, it can quote the passage, name the paper and give the page, and you can open the PDF and check.
+
+
What your assistant can do with Filiation
+
+
Search your PDFs by keyword and get passages with their paper and page.
+
Look at the citations around a paper: what it cites, what in your library cites it, and the sentence it cites each one in, when that was found.
+
Trace a line of descent: the chain of citations between two papers.
+
Name your library's topics, found from its citations alone.
+
Grow the library when you ask: add a paper, follow its references, fetch open-access PDFs. Start it with --read-only and it can only read.
+
+
+
Which assistants
+
Any assistant that speaks MCP. Filiation's app connects Claude Desktop, Claude Code, Cursor, VS Code with GitHub Copilot and Gemini CLI in one click, from its AI assistants screen, and the MCP documentation has the settings for each by hand. In Claude Code, for example:
+
claude mcp add filiation -- fil mcp
+
+
Where your papers go
+
Filiation runs on your computer, and your library stays in a folder you choose. Your assistant starts fil mcp on your machine when it needs it. What the assistant then sends to its own service depends on that assistant, as with anything else you paste into it.
+
+
Try a question
+
Once it is connected, ask something your papers can answer and ask for pages, for example: "Why did attention help neural machine translation? Quote the passages and give the pages." The assistant searches the library and answers from what it finds.
+
+
Try FiliationFree and open source, on your own computer. The app for Windows; the command line for Windows, macOS and Linux.
A free, open-source citation map that runs on your computer
+
Citation-map websites are a quick way to explore a field in the browser. Filiation builds the same kind of map on your own computer, from real citations, and keeps the PDFs and their text alongside it.
+
What a citation map is for
+
Start from one paper you trust. The papers it cites, and the papers they cite, are where its ideas came from; the papers that cite it are where they went. A map of those links shows the shape of a field faster than a list of search results, and shows the papers everyone builds on.
+
+
Websites, and when they are the better choice
+
Several websites, such as Connected Papers, ResearchRabbit and Litmaps, let you explore related papers in the browser. They are a good choice when you want a quick look without installing anything, or features such as recommendations and sharing with a group. Filiation is not trying to replace that.
+
+
What is different about Filiation
+
+
It runs on your computer. The map, the PDFs and their text live in a folder you choose. No account, and nothing to lose if a service changes.
+
Every line is a real citation. Reference lists come from OpenAlex, already matched to the works they name. No model guesses at links.
+
It keeps the papers, not just the map. Filiation downloads the legal open-access PDFs, reads their text, and lets you search them to the page.
+
It grows with you. Add a paper and its references join the same map. Follow references outward, most-cited first, under a budget you set.
+
Your AI assistant can use it. Over MCP, an assistant can search the library and trace the chain of citations between two papers.
+
It is open. Apache-2.0, and the graph exports as GraphML for Gephi, Cytoscape or NetworkX.
Or paste the paper's DOI or title into the app's search box, then open the Citation map. fil path finds the chain of citations between any two papers, and fil export graphml writes the whole graph out.
+
+
Worth knowing first
+
How far the map reaches depends on the field. OpenAlex holds reference lists for most papers in medicine, physics and computer science, and for far fewer in the humanities, where the map may stop after one step. Filiation marks every paper whose references are unknown, so you can tell the data from a fault. Open-access PDFs are common in physics and rare in the humanities; for the rest, add the PDFs you have.
+
+
Try FiliationFree and open source, on your own computer. The app for Windows; the command line for Windows, macOS and Linux.
Zotero is very good at keeping references and formatting citations. Filiation adds what it does not do: a map of what your papers cite, the papers you are missing, and search inside every PDF.
+
Keep Zotero for what it does well
+
Zotero stores your references, syncs them, and puts citations and a bibliography into your writing. Filiation does none of that, on purpose. It reads your Zotero library, read-only, and never changes it, so nothing about the way you work in Zotero has to change.
+
+
What Filiation adds
+
+
The citations between your papers. Each paper's reference list comes from OpenAlex, already matched to the works it names, so you see which of your papers cite which, drawn as a map.
+
The papers you don't have yet. Filiation follows your papers' references outward, most-cited first, and shows the works your library keeps citing that are not in it.
+
Their PDFs, when they are free to read. It downloads the legal open-access copies, never from behind a paywall, and copies the PDFs you already keep in Zotero.
+
Search inside every PDF, to the page. A few keywords find the passage and its page, lit on the PDF.
+
Your AI assistant, on your own papers. Over MCP, Claude, Cursor, GitHub Copilot or Gemini can search the library and quote it with pages.
+
+
+
How to bring Zotero in
+
+
Let Zotero talk to other apps
In Zotero 7, choose Edit › Settings › Advanced and tick Allow other applications on this computer to communicate with Zotero.
+
Bring the library in
In the Filiation app, open the Inbox and choose Zotero. From a terminal, see what would come in first, then bring it in:
fil zotero --dry-run
+fil zotero
+
Grow the map
Follow the references outward and keep the open-access PDFs:
fil expand
+fil fetch
+
+
No Zotero on this computer? Export the library as Zotero RDF with its files and use fil zotero --from "My Library.rdf". Every option is in the Zotero documentation.
+
+
Questions
+
+Does Filiation change my Zotero library?
No. It reads through Zotero's local API and writes nothing back. Your Zotero library stays exactly as it was.
+Does it replace Zotero?
No. Filiation does not format citations or build bibliographies. Keep Zotero for writing; use Filiation to see and search what your papers rest on.
+Are my Zotero tags kept?
If you ask: fil zotero --tags turns the tags you added into labels.
+Why do some papers have no reference list?
OpenAlex has reference lists for most papers in the sciences and far fewer in the humanities. Filiation shows this for every paper, so a thin map reads as the data, not as a fault.
+
+
+
Try FiliationFree and open source, on your own computer. The app for Windows; the command line for Windows, macOS and Linux.
FiliationGitHubDocumentation
+Zotero and Filiation
+Citation maps on your computer
+Your AI assistant and your papersReleasesContributing
diff --git a/site/sitemap.xml b/site/sitemap.xml
new file mode 100644
index 0000000..72dd9d1
--- /dev/null
+++ b/site/sitemap.xml
@@ -0,0 +1,16 @@
+
+
+ https://codevector-2003.github.io/filiation/2026-11-20
+ https://codevector-2003.github.io/filiation/docs/2026-11-20
+ https://codevector-2003.github.io/filiation/docs/install/2026-11-20
+ https://codevector-2003.github.io/filiation/docs/first-library/2026-11-20
+ https://codevector-2003.github.io/filiation/docs/desktop-app/2026-11-20
+ https://codevector-2003.github.io/filiation/docs/command-line/2026-11-20
+ https://codevector-2003.github.io/filiation/docs/mcp/2026-11-20
+ https://codevector-2003.github.io/filiation/docs/zotero/2026-11-20
+ https://codevector-2003.github.io/filiation/docs/how-it-works/2026-11-20
+ https://codevector-2003.github.io/filiation/docs/troubleshooting/2026-11-20
+ https://codevector-2003.github.io/filiation/guides/zotero-citation-graph/2026-11-20
+ https://codevector-2003.github.io/filiation/guides/citation-map-alternative/2026-11-20
+ https://codevector-2003.github.io/filiation/guides/ai-assistant-research-library/2026-11-20
+
diff --git a/site/tools/build.mjs b/site/tools/build.mjs
new file mode 100644
index 0000000..a26f38e
--- /dev/null
+++ b/site/tools/build.mjs
@@ -0,0 +1,233 @@
+// Writes the documentation pages, the guides and the sitemap from the content
+// in site/tools/docs and site/tools/guides, so every page shares one header,
+// sidebar and footer. The output is committed: GitHub Pages serves plain files
+// and builds nothing.
+//
+// node site/tools/build.mjs
+//
+// Run it after changing anything in site/tools. Each content file starts with
+// a comment holding its title, group and intro; the page list below holds the
+// order, the address and what search engines are shown.
+import { readFileSync, writeFileSync, mkdirSync } from 'node:fs';
+import { dirname, join } from 'node:path';
+import { fileURLToPath } from 'node:url';
+
+const SITE = join(dirname(fileURLToPath(import.meta.url)), '..');
+const BASE = 'https://codevector-2003.github.io/filiation/';
+const REPO = 'https://github.com/codevector-2003/filiation';
+const TODAY = new Date().toISOString().slice(0, 10);
+
+const DOCS = [
+ { slug: 'install', seo: 'Install Filiation on Windows, macOS and Linux', desc: 'Download the Filiation desktop app for Windows, or the fil command line for Windows, macOS and Linux. No account, no server, nothing else to install.' },
+ { slug: 'first-library', seo: 'Build your first research library from one paper', desc: 'Add one paper by DOI, arXiv ID or title, follow its references, keep the open-access PDFs and search them by keyword, in four commands or clicks.' },
+ { slug: 'desktop-app', seo: 'The Filiation desktop app: papers, search, citation map, reader', desc: 'A tour of the Filiation app: the Papers list, full-text search with the PDF page lit, the citation map, the Reader, citation groups and keyboard shortcuts.' },
+ { slug: 'command-line', seo: 'fil command line reference', desc: 'Every fil command: add, expand, fetch, import, zotero, search, neighbours, path, groups, export graphml, mcp and more, with their main options.' },
+ { slug: 'mcp', seo: 'Connect Claude, Cursor, Copilot or Gemini to your papers (MCP)', desc: 'Set up the Filiation MCP server in Claude Code, Claude Desktop, Cursor, VS Code with GitHub Copilot or Gemini CLI, so your AI assistant searches your research library and cites pages.' },
+ { slug: 'zotero', seo: 'Import your Zotero library and build a citation graph', desc: 'Bring a Zotero 7 library into Filiation read-only, through Zotero\'s local API or an RDF export, and grow a citation map around it.' },
+ { slug: 'how-it-works', seo: 'How Filiation works: OpenAlex citations, open access, fil IDs', desc: 'Where Filiation\'s citations come from (OpenAlex), what a stub is, why it downloads only open-access PDFs, and what your library folder holds.' },
+ { slug: 'troubleshooting', seo: 'Filiation troubleshooting and FAQ', desc: 'Fixes for common problems: the MCP server not starting, papers with no PDF, expansion stopping early, Windows SmartScreen, and where your files live.' },
+];
+
+const GUIDES = [
+ { slug: 'zotero-citation-graph', seo: 'Turn your Zotero library into a citation graph', desc: 'Keep Zotero for references and citations. Filiation reads your Zotero library read-only, follows its references, finds the papers it keeps citing that you lack, and keeps their open-access PDFs.' },
+ { slug: 'citation-map-alternative', seo: 'A free, open-source citation map that runs on your computer', desc: 'An open-source alternative to citation-map websites: build the map from one paper, keep the PDFs and their text on your own computer, and search them to the page.' },
+ { slug: 'ai-assistant-research-library', seo: 'Let your AI assistant answer from your own papers (MCP)', desc: 'Connect Claude, Cursor, GitHub Copilot or Gemini to your research library over MCP, so answers quote your PDFs with the page each passage came from.' },
+];
+
+const esc = (s) => String(s).replace(/&/g, '&').replace(//g, '>').replace(/"/g, '"');
+const strip = (html) => html.replace(/<[^>]+>/g, ' ').replace(/&[a-z]+;/g, ' ').replace(/\s+/g, ' ').trim();
+
+// A content file: a leading comment of "key: value" lines, then the body.
+const load = (dir, slug) => {
+ const raw = readFileSync(join(SITE, 'tools', dir, slug + '.html'), 'utf8').replace(/\r\n/g, '\n');
+ const m = raw.match(/^\n/);
+ if (!m) throw new Error(dir + '/' + slug + ': no header comment');
+ const meta = Object.fromEntries(m[1].split('\n').map((l) => [l.slice(0, l.indexOf(':')).trim(), l.slice(l.indexOf(':') + 1).trim()]));
+ return { ...meta, body: raw.slice(m[0].length).trim() };
+};
+
+const write = (rel, html) => {
+ const file = join(SITE, rel);
+ mkdirSync(dirname(file), { recursive: true });
+ writeFileSync(file, html);
+ console.log('wrote', rel);
+};
+
+const GH = '';
+const STAR = '';
+const THEME = '';
+const MENU = '';
+const ARROW = (dir) => '';
+
+const head = ({ root, title, desc, path, css, jsonld }) => `
+
+
+
+
+${esc(title)}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Skip to the content
+`;
+
+const header = (root, current) => `
+
+` + footer(root, ['site.js', 'docs.js']));
+});
+
+// The documentation's front page, which also sends the old one-page
+// addresses (docs/#mcp) to their own pages.
+const OLD = { install: 'install', first: 'first-library', app: 'desktop-app', cli: 'command-line', mcp: 'mcp', zotero: 'zotero', how: 'how-it-works', help: 'troubleshooting' };
+write('docs/index.html',
+ head({ root: '../', title: 'Filiation documentation', desc: 'Install Filiation, build your first library from one paper, use the desktop app and the fil command line, bring in Zotero, and connect your AI assistant over MCP.', path: 'docs/', css: 'docs.css', jsonld: crumbs([['Filiation', ''], ['Documentation', 'docs/']]) }).replace('', `\n`) +
+ header('../', 'docs') +
+ `
\n${sidebar('../', '')}
+
+
Docs
+
Documentation
+
Everything about Filiation: installing it, building a library from one paper, the app and the command line, Zotero, and your AI assistant.
A DOI, arXiv ID, link or title. Filiation records the paper and every work it cites.
fil add arXiv:1409.0473
+
Follow its references
Fetch the papers it cites, and theirs, most-cited first, up to a budget you set.
fil expand --max-nodes 300
+
Keep the PDFs
Download the legal open-access copies and read their text so it can be searched.
fil fetch
+
Search
A few keywords. Each passage comes back with its paper and page.
fil search attention alignment translation
+
+
iIn the app, each step is one action: paste into the title bar search to add a paper, then Library › Fetch PDFs. The command line and the app share the same library.
diff --git a/site/tools/docs/how-it-works.html b/site/tools/docs/how-it-works.html
new file mode 100644
index 0000000..8ea5dfa
--- /dev/null
+++ b/site/tools/docs/how-it-works.html
@@ -0,0 +1,15 @@
+
+
fil IDs
+
Every paper gets a fil ID, such as F7K2M9QXA, made once and never changed. Use it, a DOI, an OpenAlex ID or a title wherever a command asks for a paper.
+
Where citations come from
+
Reference lists come from OpenAlex, already matched to the papers they name. No model reads your papers to guess at links, so every line on the map is a real citation.
+
Stubs
+
A paper something cites, but that Filiation has not fetched yet, is a stub: its title may be known, its abstract and references are not. fil expand fetches stubs, most-cited first.
+
Open access only
+
Filiation downloads only the legal open-access copies OpenAlex lists. It never scrapes a publisher's site or uses anyone's login. For other papers, add the PDFs you have.
+
Your library folder
+
A library is a folder you choose: a database file, and a papers/ folder with one readable folder per paper. Copy it, back it up, or sync it like any other folder. fil export graphml writes the graph out for other tools.
diff --git a/site/tools/docs/install.html b/site/tools/docs/install.html
new file mode 100644
index 0000000..1a4449b
--- /dev/null
+++ b/site/tools/docs/install.html
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+
The app
+
+
Download the installer and run it. It installs for you only, needs no administrator rights, and adds fil to your PATH so a terminal and your AI assistant can find it.
Expand-Archive fil_{v}_windows_amd64.zip fil
+.\fil\fil.exe version
+
tar xzf fil_{v}_darwin_arm64.tar.gz
+sudo mv fil /usr/local/bin/
+fil version
On an Intel Mac, download the darwin_amd64 archive instead.
+
tar xzf fil_{v}_linux_amd64.tar.gz
+sudo mv fil /usr/local/bin/
+fil version
+
See where your library lives:
+
fil where
diff --git a/site/tools/docs/mcp.html b/site/tools/docs/mcp.html
new file mode 100644
index 0000000..dae67fb
--- /dev/null
+++ b/site/tools/docs/mcp.html
@@ -0,0 +1,48 @@
+
+
iThe easiest way: open the app's AI assistants screen and press Connect. It finds the assistants on your computer and writes their settings for you, keeping a copy of the old file.
+
Set it up by hand
+
+
+
+
+
+
+
+
Run this once in a terminal:
claude mcp add filiation -- fil mcp
Start a new Claude Code session and ask it about your library.
+
Add this to claude_desktop_config.json. On Windows it is in %APPDATA%\Claude, on macOS in ~/Library/Application Support/Claude.
Find passages by keyword, with their page, to quote.
+
get_paper
Everything about one paper, including why it has no PDF or text.
+
neighbours
What a paper cites and what cites it, with the sentence it cites each in, when one was found.
+
find_path
The chain of citations between two papers.
+
citation_groups
The library's topics, found from its citations alone.
+
library_stats
What is in the library.
+
add_paper
Add a paper by DOI, arXiv ID, PMID, OpenAlex ID, link or title.
+
expand_graph
Follow references outward, within a budget.
+
fetch_pdfs
Download more open-access PDFs.
+
+
iAdd --read-only after mcp and the assistant can read your library but not add to it, and nothing it does reaches the network. Add --library Thesis to point it at another library.
diff --git a/site/tools/docs/troubleshooting.html b/site/tools/docs/troubleshooting.html
new file mode 100644
index 0000000..368c6af
--- /dev/null
+++ b/site/tools/docs/troubleshooting.html
@@ -0,0 +1,15 @@
+
+
Common questions
+
+My assistant says the server failed to start.
Run fil version in a terminal. If that fails, the assistant cannot find fil either: put the full path to fil in its settings, or reinstall with "Add fil to my PATH" ticked.
+The assistant cannot find a paper I added.
Both must use the same library. Compare fil where with the path in the server's first log line, and check the assistant's settings for a --library argument.
+Why do so many papers have no PDF?
Filiation only keeps legal open-access copies, and most papers have none: about one in eight overall, many more in physics, very few in the humanities. Add the PDFs you have with fil import or the Inbox.
+Expansion stopped after one step.
The papers probably have no reference lists in OpenAlex. That is common outside the sciences, and is the data, not a fault. Each paper shows whether its references are known.
+Windows warned me about the installer.
The installer is not signed yet. Choose More info, then Run anyway.
+Where are my files?
Run fil where. Your library is a folder you chose, with a papers/ folder of readable PDF folders inside. Uninstalling the app never touches it.
+
+
Still stuck? Open an issue with the output of fil version and fil where.
diff --git a/site/tools/docs/zotero.html b/site/tools/docs/zotero.html
new file mode 100644
index 0000000..e7714eb
--- /dev/null
+++ b/site/tools/docs/zotero.html
@@ -0,0 +1,21 @@
+
+
Filiation reads Zotero 7 or later through its local API, read-only: it never changes your Zotero library. Zotero must be running. In Zotero, choose Edit › Settings › Advanced and tick Allow other applications on this computer to communicate with Zotero.
+
fil zotero --dry-run # see what would come in
+fil zotero # bring it in
+
In the app, the same is in the Inbox, under Zotero.
+
Options
+
+
--dry-run
Say what would come in, and write nothing.
+
--tags
Make labels from the tags you added in Zotero.
+
--no-pdfs
Do not copy the PDFs.
+
--no-refs
Do not record what each paper cites.
+
--skip KEY
Leave out a Zotero collection, by its key, and those inside it.
+
--from FILE
Read a Zotero RDF export instead of the running Zotero.
+
+
From an export file
+
If Zotero isn't on this computer, export the library as Zotero RDF with its files, then:
+
fil zotero --from "My Library.rdf"
diff --git a/site/tools/guides/ai-assistant-research-library.html b/site/tools/guides/ai-assistant-research-library.html
new file mode 100644
index 0000000..f14bb9a
--- /dev/null
+++ b/site/tools/guides/ai-assistant-research-library.html
@@ -0,0 +1,26 @@
+
+
Why answers need your library
+
A model answering from memory can misremember a result or the paper it came from. When it can search your own PDFs instead, it can quote the passage, name the paper and give the page, and you can open the PDF and check.
+
+
What your assistant can do with Filiation
+
+
Search your PDFs by keyword and get passages with their paper and page.
+
Look at the citations around a paper: what it cites, what in your library cites it, and the sentence it cites each one in, when that was found.
+
Trace a line of descent: the chain of citations between two papers.
+
Name your library's topics, found from its citations alone.
+
Grow the library when you ask: add a paper, follow its references, fetch open-access PDFs. Start it with --read-only and it can only read.
+
+
+
Which assistants
+
Any assistant that speaks MCP. Filiation's app connects Claude Desktop, Claude Code, Cursor, VS Code with GitHub Copilot and Gemini CLI in one click, from its AI assistants screen, and the MCP documentation has the settings for each by hand. In Claude Code, for example:
+
claude mcp add filiation -- fil mcp
+
+
Where your papers go
+
Filiation runs on your computer, and your library stays in a folder you choose. Your assistant starts fil mcp on your machine when it needs it. What the assistant then sends to its own service depends on that assistant, as with anything else you paste into it.
+
+
Try a question
+
Once it is connected, ask something your papers can answer and ask for pages, for example: "Why did attention help neural machine translation? Quote the passages and give the pages." The assistant searches the library and answers from what it finds.
diff --git a/site/tools/guides/citation-map-alternative.html b/site/tools/guides/citation-map-alternative.html
new file mode 100644
index 0000000..c3743e2
--- /dev/null
+++ b/site/tools/guides/citation-map-alternative.html
@@ -0,0 +1,29 @@
+
+
What a citation map is for
+
Start from one paper you trust. The papers it cites, and the papers they cite, are where its ideas came from; the papers that cite it are where they went. A map of those links shows the shape of a field faster than a list of search results, and shows the papers everyone builds on.
+
+
Websites, and when they are the better choice
+
Several websites, such as Connected Papers, ResearchRabbit and Litmaps, let you explore related papers in the browser. They are a good choice when you want a quick look without installing anything, or features such as recommendations and sharing with a group. Filiation is not trying to replace that.
+
+
What is different about Filiation
+
+
It runs on your computer. The map, the PDFs and their text live in a folder you choose. No account, and nothing to lose if a service changes.
+
Every line is a real citation. Reference lists come from OpenAlex, already matched to the works they name. No model guesses at links.
+
It keeps the papers, not just the map. Filiation downloads the legal open-access PDFs, reads their text, and lets you search them to the page.
+
It grows with you. Add a paper and its references join the same map. Follow references outward, most-cited first, under a budget you set.
+
Your AI assistant can use it. Over MCP, an assistant can search the library and trace the chain of citations between two papers.
+
It is open. Apache-2.0, and the graph exports as GraphML for Gephi, Cytoscape or NetworkX.
Or paste the paper's DOI or title into the app's search box, then open the Citation map. fil path finds the chain of citations between any two papers, and fil export graphml writes the whole graph out.
+
+
Worth knowing first
+
How far the map reaches depends on the field. OpenAlex holds reference lists for most papers in medicine, physics and computer science, and for far fewer in the humanities, where the map may stop after one step. Filiation marks every paper whose references are unknown, so you can tell the data from a fault. Open-access PDFs are common in physics and rare in the humanities; for the rest, add the PDFs you have.
diff --git a/site/tools/guides/zotero-citation-graph.html b/site/tools/guides/zotero-citation-graph.html
new file mode 100644
index 0000000..9b3c38d
--- /dev/null
+++ b/site/tools/guides/zotero-citation-graph.html
@@ -0,0 +1,34 @@
+
+
Keep Zotero for what it does well
+
Zotero stores your references, syncs them, and puts citations and a bibliography into your writing. Filiation does none of that, on purpose. It reads your Zotero library, read-only, and never changes it, so nothing about the way you work in Zotero has to change.
+
+
What Filiation adds
+
+
The citations between your papers. Each paper's reference list comes from OpenAlex, already matched to the works it names, so you see which of your papers cite which, drawn as a map.
+
The papers you don't have yet. Filiation follows your papers' references outward, most-cited first, and shows the works your library keeps citing that are not in it.
+
Their PDFs, when they are free to read. It downloads the legal open-access copies, never from behind a paywall, and copies the PDFs you already keep in Zotero.
+
Search inside every PDF, to the page. A few keywords find the passage and its page, lit on the PDF.
+
Your AI assistant, on your own papers. Over MCP, Claude, Cursor, GitHub Copilot or Gemini can search the library and quote it with pages.
+
+
+
How to bring Zotero in
+
+
Let Zotero talk to other apps
In Zotero 7, choose Edit › Settings › Advanced and tick Allow other applications on this computer to communicate with Zotero.
+
Bring the library in
In the Filiation app, open the Inbox and choose Zotero. From a terminal, see what would come in first, then bring it in:
fil zotero --dry-run
+fil zotero
+
Grow the map
Follow the references outward and keep the open-access PDFs:
fil expand
+fil fetch
+
+
No Zotero on this computer? Export the library as Zotero RDF with its files and use fil zotero --from "My Library.rdf". Every option is in the Zotero documentation.
+
+
Questions
+
+Does Filiation change my Zotero library?
No. It reads through Zotero's local API and writes nothing back. Your Zotero library stays exactly as it was.
+Does it replace Zotero?
No. Filiation does not format citations or build bibliographies. Keep Zotero for writing; use Filiation to see and search what your papers rest on.
+Are my Zotero tags kept?
If you ask: fil zotero --tags turns the tags you added into labels.
+Why do some papers have no reference list?
OpenAlex has reference lists for most papers in the sciences and far fewer in the humanities. Filiation shows this for every paper, so a thin map reads as the data, not as a fault.