Skip to content

Build your personal knowledge base with Trilium Notes

feat(website): add AI integration section to homepage

Elian Doran0fba5163a45b
diff --git a/apps/website/public/feature_llm.webp b/apps/website/public/feature_llm.webp
new file mode 100644
index 0000000000..014678f676
Binary files /dev/null and b/apps/website/public/feature_llm.webp differ
diff --git a/apps/website/src/assets/boxicons/bx-bot.svg b/apps/website/src/assets/boxicons/bx-bot.svg
new file mode 100644
index 0000000000..fd1ba2fad2
--- /dev/null
+++ b/apps/website/src/assets/boxicons/bx-bot.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M21.928 11.607c-.202-.488-.635-.605-.928-.633V8c0-1.103-.897-2-2-2h-6V4.61c.305-.274.5-.668.5-1.11a1.5 1.5 0 0 0-3 0c0 .442.195.836.5 1.11V6H5c-1.103 0-2 .897-2 2v2.997l-.082.006A1 1 0 0 0 1.99 12v2a1 1 0 0 0 1 1H3v5c0 1.103.897 2 2 2h14c1.103 0 2-.897 2-2v-5a1 1 0 0 0 1-1v-1.938a1.006 1.006 0 0 0-.072-.455zM5 20V8h14l.001 3.996L19 12v2l.001.005.001 5.995H5z"/><ellipse cx="8.5" cy="12" rx="1.5" ry="2"/><ellipse cx="15.5" cy="12" rx="1.5" ry="2"/><path d="M8 16h8v2H8z"/></svg>
\ No newline at end of file
diff --git a/apps/website/src/assets/boxicons/bx-cog.svg b/apps/website/src/assets/boxicons/bx-cog.svg
new file mode 100644
index 0000000000..8aa1b26126
--- /dev/null
+++ b/apps/website/src/assets/boxicons/bx-cog.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 16c2.206 0 4-1.794 4-4s-1.794-4-4-4-4 1.794-4 4 1.794 4 4 4zm0-6c1.084 0 2 .916 2 2s-.916 2-2 2-2-.916-2-2 .916-2 2-2z"/><path d="m2.845 16.136 1 1.73c.531.917 1.809 1.261 2.73.73l.529-.306A8.1 8.1 0 0 0 9 19.402V20c0 1.103.897 2 2 2h2c1.103 0 2-.897 2-2v-.598a8.132 8.132 0 0 0 1.896-1.111l.529.306c.923.53 2.198.188 2.731-.731l.999-1.729a2.001 2.001 0 0 0-.731-2.732l-.505-.292a7.718 7.718 0 0 0 0-2.224l.505-.292a2.002 2.002 0 0 0 .731-2.732l-.999-1.729c-.531-.92-1.808-1.265-2.731-.732l-.529.306A8.1 8.1 0 0 0 15 4.598V4c0-1.103-.897-2-2-2h-2c-1.103 0-2 .897-2 2v.598a8.132 8.132 0 0 0-1.896 1.111l-.529-.306c-.924-.531-2.2-.187-2.731.732l-.999 1.729a2.001 2.001 0 0 0 .731 2.732l.505.292a7.683 7.683 0 0 0 0 2.223l-.505.292a2.003 2.003 0 0 0-.731 2.733zm3.326-2.758A5.703 5.703 0 0 1 6 12c0-.462.058-.926.17-1.378a.999.999 0 0 0-.47-1.108l-1.123-.65.998-1.729 1.145.662a.997.997 0 0 0 1.188-.142 6.071 6.071 0 0 1 2.384-1.399A1 1 0 0 0 11 5.3V4h2v1.3a1 1 0 0 0 .708.956 6.083 6.083 0 0 1 2.384 1.399.999.999 0 0 0 1.188.142l1.144-.661 1 1.729-1.124.649a1 1 0 0 0-.47 1.108c.112.452.17.916.17 1.378 0 .461-.058.925-.171 1.378a1 1 0 0 0 .471 1.108l1.123.649-.998 1.729-1.145-.661a.996.996 0 0 0-1.188.142 6.071 6.071 0 0 1-2.384 1.399A1 1 0 0 0 13 18.7l.002 1.3H11v-1.3a1 1 0 0 0-.708-.956 6.083 6.083 0 0 1-2.384-1.399.992.992 0 0 0-1.188-.141l-1.144.662-1-1.729 1.124-.651a1 1 0 0 0 .471-1.108z"/></svg>
\ No newline at end of file
diff --git a/apps/website/src/assets/boxicons/bx-key.svg b/apps/website/src/assets/boxicons/bx-key.svg
new file mode 100644
index 0000000000..e17817706e
--- /dev/null
+++ b/apps/website/src/assets/boxicons/bx-key.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M7 17a5.007 5.007 0 0 0 4.898-4H14v2h2v-2h2v3h2v-3h1v-2h-9.102A5.007 5.007 0 0 0 7 7c-2.757 0-5 2.243-5 5s2.243 5 5 5zm0-8c1.654 0 3 1.346 3 3s-1.346 3-3 3-3-1.346-3-3 1.346-3 3-3z"/></svg>
\ No newline at end of file
diff --git a/apps/website/src/pages/Home/index.css b/apps/website/src/pages/Home/index.css
index 3e944825b5..84e02a53d3 100644
--- a/apps/website/src/pages/Home/index.css
+++ b/apps/website/src/pages/Home/index.css
@@ -142,6 +142,61 @@ section.accented {
padding: 1em;
}
+section.ai-integration .section-subtitle {
+ max-width: 46em;
+ margin: -0.5em auto 2em;
+ text-align: center;
+ color: var(--muted-color);
+}
+
+section.ai-integration .ai-integration-split {
+ display: flex;
+ flex-direction: column;
+ gap: 2em;
+ align-items: center;
+}
+
+section.ai-integration .ai-screenshot img {
+ display: block;
+ width: 100%;
+ height: auto;
+ border-radius: 12px;
+ box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
+}
+
+section.ai-integration .ai-cards {
+ display: flex;
+ flex-direction: column;
+ gap: 1em;
+}
+
+section.ai-integration .ai-integration-cta {
+ margin-top: 2.5em;
+ display: flex;
+ justify-content: center;
+
+ .button {
+ padding: 0.75em 2em;
+ }
+}
+
+@media (min-width: 720px) {
+ section.ai-integration .ai-integration-split {
+ flex-direction: row;
+ align-items: center;
+ gap: 3em;
+ }
+
+ section.ai-integration .ai-screenshot {
+ flex: 0 0 40%;
+ max-width: 420px;
+ }
+
+ section.ai-integration .ai-cards {
+ flex: 1;
+ }
+}
+
section.final-cta {
text-align: center;
padding: 6em 0;
diff --git a/apps/website/src/pages/Home/index.tsx b/apps/website/src/pages/Home/index.tsx
index 488d44e348..524e9ac03b 100644
--- a/apps/website/src/pages/Home/index.tsx
+++ b/apps/website/src/pages/Home/index.tsx
@@ -4,9 +4,11 @@ import { ComponentChildren } from 'preact';
import { useEffect, useState } from 'preact/hooks';
import { Trans, useTranslation } from 'react-i18next';
+import botIcon from "../../assets/boxicons/bx-bot.svg?raw";
import calendarIcon from "../../assets/boxicons/bx-calendar.svg?raw";
import hoistingIcon from "../../assets/boxicons/bx-chevrons-up.svg?raw";
import codeIcon from "../../assets/boxicons/bx-code.svg?raw";
+import aiToolsIcon from "../../assets/boxicons/bx-cog.svg?raw";
import boardIcon from "../../assets/boxicons/bx-columns-3.svg?raw";
import dashboardIcon from "../../assets/boxicons/bx-dashboard.svg?raw";
import dockerIcon from "../../assets/boxicons/bx-docker.svg?raw";
@@ -16,6 +18,7 @@ import noteStructureIcon from "../../assets/boxicons/bx-folder.svg?raw";
import gitHubIcon from "../../assets/boxicons/bx-github.svg?raw";
import shareIcon from "../../assets/boxicons/bx-globe.svg?raw";
import revisionsIcon from "../../assets/boxicons/bx-history.svg?raw";
+import apiKeyIcon from "../../assets/boxicons/bx-key.svg?raw";
import geomapIcon from "../../assets/boxicons/bx-map.svg?raw";
import mindmapIcon from "../../assets/boxicons/bx-network-chart.svg?raw";
import textNoteIcon from "../../assets/boxicons/bx-note.svg?raw";
@@ -49,6 +52,7 @@ export function Home() {
<NoteTypesSection />
<ExtensibilityBenefitsSection />
<CollectionsSection />
+ <AiIntegrationSection />
<FaqSection />
<FinalCta />
</>
@@ -279,6 +283,29 @@ function CollectionsSection() {
);
}
+function AiIntegrationSection() {
+ const { t } = useTranslation();
+ return (
+ <Section className="benefits accented ai-integration" title={t("ai_integration.title")}>
+ <p className="section-subtitle">{t("ai_integration.subtitle")}</p>
+ <div className="ai-integration-split">
+ <div className="ai-screenshot">
+ <img src="/feature_llm.webp" alt={t("ai_integration.screenshot_alt")} loading="lazy" />
+ </div>
+ <div className="benefits-container ai-cards">
+ <Card iconSvg={botIcon} title={t("ai_integration.chat_title")}>{t("ai_integration.chat_description")}</Card>
+ <Card iconSvg={aiToolsIcon} title={t("ai_integration.tools_title")}>{t("ai_integration.tools_description")}</Card>
+ <Card iconSvg={apiKeyIcon} title={t("ai_integration.providers_title")}>{t("ai_integration.providers_description")}</Card>
+ </div>
+ </div>
+
+ <div className="ai-integration-cta">
+ <Button outline text={t("ai_integration.learn_more")} href="https://docs.triliumnotes.org/user-guide/llm" openExternally />
+ </div>
+ </Section>
+ );
+}
+
function ListWithScreenshot({ items, cardExtra }: {
items: { title: string, imageUrl: string, description: string, moreInfo: string, iconSvg?: string }[];
cardExtra?: ComponentChildren;
diff --git a/apps/website/src/translations/en/translation.json b/apps/website/src/translations/en/translation.json
index d12581cd8a..669a236572 100644
--- a/apps/website/src/translations/en/translation.json
+++ b/apps/website/src/translations/en/translation.json
@@ -84,6 +84,18 @@
"dashboard_title": "Dashboard",
"dashboard_description": "Arrange your notes as draggable, resizable tiles on a grid. Notes becomes live widgets showing their content at a glance; ideal for building a personal homepage or a project overview that brings everything in one place."
},
+ "ai_integration": {
+ "title": "AI integration",
+ "subtitle": "Optional, and entirely on your terms. AI features are opt-in and disabled by default — your notes are never sent anywhere unless you enable them and connect your own provider.",
+ "screenshot_alt": "The Trilium AI chat creating notes on your behalf through built-in tools",
+ "chat_title": "Chat with your notes",
+ "chat_description": "Ask questions and brainstorm in a built-in chat that can draw on the content of your own notes.",
+ "tools_title": "AI that works with your notes",
+ "tools_description": "Let an assistant search, create and update notes on your behalf through a set of built-in tools.",
+ "providers_title": "Your provider, your keys",
+ "providers_description": "Connect OpenAI, Anthropic or Google with your own API key, or point Trilium at a self-hosted, OpenAI-compatible model. Expose your notes to external assistants over MCP.",
+ "learn_more": "Learn more"
+ },
"faq": {
"title": "Frequently Asked Questions",
"mobile_question": "Is there a mobile application?",