Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -274,9 +274,9 @@ Full MCP tool list: [MCP setup](https://gowtham0992.github.io/link/mcp.html).

## Privacy And Safety

Link is local-first:
Link itself is local-first:

- No telemetry.
- No telemetry in the installed CLI, MCP server, local web UI, or wiki runtime.
- No hosted backend.
- No external API calls from `serve.py` or `link-mcp`.
- Raw sources and generated wiki pages are ignored by git by default.
Expand Down
2 changes: 2 additions & 0 deletions docs/api.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<meta property="og:image" content="https://gowtham0992.github.io/link/assets/logo-512.png">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://gowtham0992.github.io/link/assets/logo-512.png">
<script src="assets/site.js" defer></script>
</head>
<body>
<nav class="site-nav" aria-label="Main">
Expand Down Expand Up @@ -106,6 +107,7 @@ <h2 id="large">Large Wiki Endpoints</h2>

<footer>
<div class="section-inner"><a href="security.html">Security</a> · <a href="cli.html">CLI reference</a> · <a href="mcp.html">MCP setup</a> · If Link helps your agents remember better, <a href="https://github.com/gowtham0992/link">star it on GitHub</a>.</div>
<p class="analytics-note">The installed Link product has no telemetry. This public docs site may use lightweight analytics to understand install interest.</p>
</footer>
</body>
</html>
31 changes: 31 additions & 0 deletions docs/assets/site.css
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,7 @@ figcaption {
}

pre {
position: relative;
overflow-x: auto;
margin: 0;
padding: 20px;
Expand All @@ -396,6 +397,29 @@ pre {
box-shadow: var(--shadow);
}

pre.copy-ready {
padding-top: 52px;
}

.copy-command {
position: absolute;
top: 10px;
right: 10px;
min-height: 30px;
padding: 0 10px;
border: 2px solid var(--paper-2);
background: var(--yellow);
color: var(--ink);
font-family: "SFMono-Regular", Consolas, monospace;
font-size: 12px;
font-weight: 900;
cursor: pointer;
}

.copy-command:hover {
background: var(--green);
}

code { font-family: "SFMono-Regular", Consolas, monospace; }

.compare,
Expand Down Expand Up @@ -535,6 +559,13 @@ footer a {
color: var(--paper-2);
}

.analytics-note {
max-width: 1160px;
margin: 14px auto 0;
color: #c7bea5;
font-size: 13px;
}

@media (max-width: 920px) {
.doc-grid,
.grid,
Expand Down
215 changes: 215 additions & 0 deletions docs/assets/site.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,215 @@
(function () {
"use strict";

var POSTHOG_PROJECT_KEY = "phc_vaf796qeQoUXA2FBHi3kGV36FQFBQcyzjup6g5PhDYes";
var POSTHOG_API_HOST = "https://us.i.posthog.com";
var PUBLIC_DOCS_HOST = "gowtham0992.github.io";
var PAGE = (window.location.pathname.split("/").pop() || "index.html").toLowerCase();
var POSTHOG_LOADED = false;

function isPublicDocsHost() {
return window.location.hostname === PUBLIC_DOCS_HOST;
}

function allowsAnalytics() {
return Boolean(POSTHOG_PROJECT_KEY) &&
isPublicDocsHost() &&
navigator.doNotTrack !== "1" &&
navigator.globalPrivacyControl !== true;
}

function cleanPageName() {
return PAGE.replace(/[^a-z0-9._-]/g, "") || "index.html";
}

function capture(eventName, properties) {
if (!POSTHOG_LOADED || !window.posthog || typeof window.posthog.capture !== "function") {
return;
}
window.posthog.capture(eventName, Object.assign({
docs_page: cleanPageName(),
docs_surface: "github_pages"
}, properties || {}));
}

function loadPostHog() {
if (!allowsAnalytics()) {
return;
}

!function(t,e){var o,n,p,r;e.__SV||(window.posthog=e,e._i=[],e.init=function(i,s,a){function g(t,e){var o=e.split(".");2==o.length&&(t=t[o[0]],e=o[1]),t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}}(p=t.createElement("script")).type="text/javascript",p.crossOrigin="anonymous",p.async=!0,p.src=s.api_host.replace(".i.posthog.com","-assets.i.posthog.com")+"/static/array.js",(r=t.getElementsByTagName("script")[0]).parentNode.insertBefore(p,r);var u=e;for(void 0!==a?u=e[a]=[]:a="posthog",u.people=u.people||[],u.toString=function(t){var e="posthog";return"posthog"!==a&&(e+="."+a),t||(e+=" (stub)"),e},u.people.toString=function(){return u.toString(1)+".people (stub)"},o="init capture register register_once register_for_session unregister unregister_for_session getFeatureFlag getFeatureFlagPayload isFeatureEnabled reloadFeatureFlags updateEarlyAccessFeatureEnrollment getEarlyAccessFeatures on onFeatureFlags onSessionId getSurveys getActiveMatchingSurveys renderSurvey canRenderSurvey getNextSurveyStep identify setPersonProperties group resetGroups setPersonPropertiesForFlags resetPersonPropertiesForFlags setGroupPropertiesForFlags reset get_distinct_id getGroups get_session_id get_session_replay_url alias set_config startSessionRecording stopSessionRecording sessionRecordingStarted captureException loadToolbar get_property getSessionProperty createPersonProfile opt_in_capturing opt_out_capturing has_opted_in_capturing has_opted_out_capturing clear_opt_in_out_capturing debug".split(" "),n=0;n<o.length;n++)g(u,o[n]);e._i.push([i,s,a])},e.__SV=1)}(document,window.posthog||[]);

window.posthog.init(POSTHOG_PROJECT_KEY, {
api_host: POSTHOG_API_HOST,
defaults: "2026-01-30",
autocapture: false,
capture_pageview: false,
capture_pageleave: false,
capture_dead_clicks: false,
disable_persistence: true,
disable_session_recording: true,
disable_surveys: true,
enable_heatmaps: false,
person_profiles: "identified_only",
advanced_disable_feature_flags: true,
advanced_disable_feature_flags_on_first_load: true,
property_denylist: ["$current_url", "$referrer"],
before_send: function (event) {
if (event && event.properties) {
event.properties.$current_url = null;
event.properties.$referrer = null;
event.properties.$pathname = null;
}
return event;
},
loaded: function () {
POSTHOG_LOADED = true;
capture("docs_viewed", { page_title: document.title });
if (PAGE === "mcp.html") {
capture("mcp_setup_viewed");
}
if (PAGE === "security.html") {
capture("security_page_viewed");
}
}
});
}

function commandCategory(text) {
var lower = text.toLowerCase();
if (lower.indexOf("brew install gowtham0992/link/link") !== -1) {
return "homebrew";
}
if (lower.indexOf("pip install") !== -1 && lower.indexOf("link-mcp") !== -1) {
return "pypi";
}
if (lower.indexOf("link demo") !== -1 || lower.indexOf("link.py demo") !== -1) {
return "demo";
}
if (lower.indexOf("integrations/") !== -1 && lower.indexOf("install.sh") !== -1) {
return "agent_installer";
}
return "other";
}

function captureCopyEvents(text, category) {
var props = {
command_category: category,
command_lines: text.split(/\r?\n/).filter(Boolean).length
};
if (category === "homebrew") {
capture("install_brew_copied", props);
}
if (category === "pypi") {
capture("install_pypi_copied", props);
}
if (category === "demo") {
capture("demo_command_copied", props);
}
}

function addCopyButtons() {
document.querySelectorAll("pre").forEach(function (pre) {
var code = pre.querySelector("code");
if (!code) {
return;
}

var text = code.innerText.trim();
if (!text) {
return;
}

var button = document.createElement("button");
button.type = "button";
button.className = "copy-command";
button.textContent = "copy";
button.setAttribute("aria-label", "Copy command block");
pre.classList.add("copy-ready");
pre.appendChild(button);

button.addEventListener("click", function () {
var category = commandCategory(text);
copyText(text).then(function () {
button.textContent = "copied";
captureCopyEvents(text, category);
window.setTimeout(function () {
button.textContent = "copy";
}, 1400);
}).catch(function () {
selectCodeBlock(pre);
button.textContent = "selected";
window.setTimeout(function () {
button.textContent = "copy";
}, 1400);
});
});
});
}

function selectCodeBlock(pre) {
var range = document.createRange();
var selection = window.getSelection();
range.selectNodeContents(pre.querySelector("code") || pre);
selection.removeAllRanges();
selection.addRange(range);
}

function copyText(text) {
if (navigator.clipboard && typeof navigator.clipboard.writeText === "function" && window.isSecureContext) {
return navigator.clipboard.writeText(text).catch(function () {
return fallbackCopyText(text);
});
}
return fallbackCopyText(text);
}

function fallbackCopyText(text) {
return new Promise(function (resolve, reject) {
var textarea = document.createElement("textarea");
textarea.value = text;
textarea.setAttribute("readonly", "");
textarea.style.position = "fixed";
textarea.style.top = "-1000px";
textarea.style.left = "-1000px";
document.body.appendChild(textarea);
textarea.select();
try {
if (document.execCommand("copy")) {
resolve();
} else {
reject(new Error("copy failed"));
}
} catch (error) {
reject(error);
} finally {
document.body.removeChild(textarea);
}
});
}

function captureOutboundClicks() {
document.addEventListener("click", function (event) {
var anchor = event.target.closest && event.target.closest("a[href]");
if (!anchor) {
return;
}
var href = anchor.getAttribute("href") || "";
if (href.indexOf("https://github.com/gowtham0992/link") === 0) {
capture("github_clicked", { link_target: "github_repo" });
} else if (href.indexOf("https://github.com/gowtham0992/homebrew-link") === 0) {
capture("homebrew_tap_clicked", { link_target: "homebrew_tap" });
} else if (href.indexOf("https://pypi.org/project/link-mcp") === 0) {
capture("pypi_clicked", { link_target: "pypi_package" });
} else if (href.indexOf("https://registry.modelcontextprotocol.io") === 0) {
capture("mcp_registry_clicked", { link_target: "mcp_registry" });
}
});
}

document.addEventListener("DOMContentLoaded", function () {
addCopyButtons();
captureOutboundClicks();
loadPostHog();
});
})();
2 changes: 2 additions & 0 deletions docs/cli.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<meta property="og:image" content="https://gowtham0992.github.io/link/assets/logo-512.png">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://gowtham0992.github.io/link/assets/logo-512.png">
<script src="assets/site.js" defer></script>
</head>
<body>
<nav class="site-nav" aria-label="Main">
Expand Down Expand Up @@ -152,6 +153,7 @@ <h2 id="all">All Commands</h2>

<footer>
<div class="section-inner"><a href="getting-started.html">First 10 minutes</a> · <a href="mcp.html">MCP setup</a> · <a href="security.html">Security</a> · If Link helps your agents remember better, <a href="https://github.com/gowtham0992/link">star it on GitHub</a>.</div>
<p class="analytics-note">The installed Link product has no telemetry. This public docs site may use lightweight analytics to understand install interest.</p>
</footer>
</body>
</html>
2 changes: 2 additions & 0 deletions docs/concepts.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<meta property="og:image" content="https://gowtham0992.github.io/link/assets/logo-512.png">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://gowtham0992.github.io/link/assets/logo-512.png">
<script src="assets/site.js" defer></script>
</head>
<body>
<nav class="site-nav" aria-label="Main">
Expand Down Expand Up @@ -115,6 +116,7 @@ <h2 id="scale">Scale Model</h2>

<footer>
<div class="section-inner"><a href="getting-started.html">First 10 minutes</a> · <a href="mcp.html">MCP setup</a> · <a href="security.html">Security</a> · If Link helps your agents remember better, <a href="https://github.com/gowtham0992/link">star it on GitHub</a>.</div>
<p class="analytics-note">The installed Link product has no telemetry. This public docs site may use lightweight analytics to understand install interest.</p>
</footer>
</body>
</html>
2 changes: 2 additions & 0 deletions docs/contributing.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<meta property="og:image" content="https://gowtham0992.github.io/link/assets/logo-512.png">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://gowtham0992.github.io/link/assets/logo-512.png">
<script src="assets/site.js" defer></script>
</head>
<body>
<nav class="site-nav" aria-label="Main">
Expand Down Expand Up @@ -110,6 +111,7 @@ <h2 id="principles">Design Principles</h2>

<footer>
<div class="section-inner"><a href="index.html">Link home</a> · <a href="security.html">Security</a> · <a href="troubleshooting.html">Troubleshooting</a> · If Link helps your agents remember better, <a href="https://github.com/gowtham0992/link">star it on GitHub</a>.</div>
<p class="analytics-note">The installed Link product has no telemetry. This public docs site may use lightweight analytics to understand install interest.</p>
</footer>
</body>
</html>
2 changes: 2 additions & 0 deletions docs/getting-started.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<meta property="og:image" content="https://gowtham0992.github.io/link/assets/logo-512.png">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://gowtham0992.github.io/link/assets/logo-512.png">
<script src="assets/site.js" defer></script>
</head>
<body>
<nav class="site-nav" aria-label="Main">
Expand Down Expand Up @@ -154,6 +155,7 @@ <h2 id="verify">6. Verify The Loop</h2>

<footer>
<div class="section-inner"><a href="index.html">Link home</a> · <a href="concepts.html">Concepts</a> · <a href="mcp.html">MCP setup</a> · If Link helps your agents remember better, <a href="https://github.com/gowtham0992/link">star it on GitHub</a>.</div>
<p class="analytics-note">The installed Link product has no telemetry. This public docs site may use lightweight analytics to understand install interest.</p>
</footer>
</body>
</html>
2 changes: 2 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<meta property="og:image" content="https://gowtham0992.github.io/link/assets/logo-512.png">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://gowtham0992.github.io/link/assets/logo-512.png">
<script src="assets/site.js" defer></script>
</head>
<body>
<nav class="site-nav" aria-label="Main">
Expand Down Expand Up @@ -197,6 +198,7 @@ <h2>Start small, then make it your agent memory.</h2>

<footer>
<div class="section-inner">MIT licensed. Built for local-first agent memory. <a href="https://github.com/gowtham0992/link">GitHub</a> · If Link helps your agents remember better, <a href="https://github.com/gowtham0992/link">star it on GitHub</a>.</div>
<p class="analytics-note">The installed Link product has no telemetry. This public docs site may use lightweight analytics to understand install interest.</p>
</footer>
</body>
</html>
2 changes: 2 additions & 0 deletions docs/mcp.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<meta property="og:image" content="https://gowtham0992.github.io/link/assets/logo-512.png">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://gowtham0992.github.io/link/assets/logo-512.png">
<script src="assets/site.js" defer></script>
</head>
<body>
<nav class="site-nav" aria-label="Main">
Expand Down Expand Up @@ -163,6 +164,7 @@ <h2 id="verify">Verify Setup</h2>

<footer>
<div class="section-inner"><a href="getting-started.html">First 10 minutes</a> · <a href="cli.html">CLI reference</a> · <a href="troubleshooting.html">Troubleshooting</a> · If Link helps your agents remember better, <a href="https://github.com/gowtham0992/link">star it on GitHub</a>.</div>
<p class="analytics-note">The installed Link product has no telemetry. This public docs site may use lightweight analytics to understand install interest.</p>
</footer>
</body>
</html>
Loading
Loading