diff --git a/docs/coding.md b/docs/coding.md index 1d1577f..54e7479 100644 --- a/docs/coding.md +++ b/docs/coding.md @@ -15,7 +15,7 @@ docent The work is split in two: -- **The framework** is the engine, the same one behind Smartloop Studio. It takes a prompt with its sources and returns the best answer it can. Its orchestrator picks the model that answers and decides on its own whether to search the web, for code as for anything else. See [Model orchestration](./model-orchestration.md). +- **The framework** is the engine, the same one behind Docent Studio. It takes a prompt with its sources and returns the best answer it can. Its orchestrator picks the model that answers and decides on its own whether to search the web, for code as for anything else. See [Model orchestration](./model-orchestration.md). - **Docent** is the harness around it. It builds the prompt from your folder, then takes the answer apart into files to write, checks to run and commands to run, and sends what happened back to the agent. So the models run on your machine, the same as for documents and chat, and only a web search query ever leaves it. See [Web search](./web-search.md). diff --git a/docs/command-line-tool.md b/docs/command-line-tool.md index 7707cfd..db8145f 100644 --- a/docs/command-line-tool.md +++ b/docs/command-line-tool.md @@ -2,9 +2,9 @@ import ThemedVideo from '@site/src/components/ThemedVideo'; # Docent - Command Line Interface -**Docent**, powered by Smartloop, is your private AI assistant in the terminal: think Claude Code for your personal documents, running 100% locally. Chat with your PDFs and Office files, search the web, connect MCP servers, and set up your own local AI infrastructure: the agent, its models, and your projects. It started as the command line companion to Smartloop Studio and still works alongside it. If no local agent is running, Docent downloads the framework and models it needs and starts one itself. +**Docent**, powered by Smartloop, is your private AI assistant in the terminal: think Claude Code for your personal documents, running 100% locally. Chat with your PDFs and Office files, search the web, connect MCP servers, and set up your own local AI infrastructure: the agent, its models, and your projects. It started as the command line companion to Docent Studio and still works alongside it. If no local agent is running, Docent downloads the framework and models it needs and starts one itself. -It installs as `docent`, and as `smartloop`, its old name, so existing commands and scripts keep working; the two are the same binary. For an overview, see [Docent](/#docent) on the home page. +It installs as `docent`, and as `smartloop`, its old name, so existing commands and scripts keep working; the two are the same binary. For an overview, see the [Docent](/docent) page.
=> { tagName: 'link', attributes: { rel: 'stylesheet', - href: 'https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap', + href: 'https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;700&family=Inter+Tight:wght@500;600&family=Instrument+Serif:ital@0;1&display=swap', }, }, ], diff --git a/src/components/Docent/Desktop.tsx b/src/components/Docent/Desktop.tsx new file mode 100644 index 0000000..839a3f4 --- /dev/null +++ b/src/components/Docent/Desktop.tsx @@ -0,0 +1,383 @@ +import { type ReactNode } from 'react'; +import Link from '@docusaurus/Link'; +import Head from '@docusaurus/Head'; +import useLatestRelease from '../../hooks/useLatestRelease'; +import useVisitorPlatform from '../../hooks/useVisitorPlatform'; +import { DirectDownloadButton } from '../StoreBadge'; +import { Check } from './Terminal'; +import styles from '../../pages/home.module.css'; +import local from '../../pages/docent.module.css'; + +// The Desktop tab of /docent: Docent Studio, Docent on the desktop. Built on +// the same sections as the Coding tab (hero, demo, what it does, how it works, +// models, more, FAQ) so the two read as one product. + +const DESCRIPTION = + 'Docent is your personal assistant for work. It produces documents, connects to your external systems and creates skills for the work you repeat, with open models sized for your machine. Your documents never leave it.'; + +// The hero line under the headline, which already says "personal assistant +// for work"; DESCRIPTION (search and social) keeps the full sentence. +const LEDE = + 'Docent Studio is your personal assistant for work, on open models sized for your machine. Your documents never leave it.'; + +// What it does, as chips under the lede: the hero shows the product, not +// just a promise. +const CHIPS: [string, string][] = [ + ['doc', 'produces documents'], + ['plug', 'connects your systems'], + ['spark', 'creates skills'], +]; + +const points: [string, string][] = [ + ['Produces documents.', 'Reports, summaries, comparisons and drafts, written from your files and your systems, with every claim cited to its source.'], + ['Connects to your systems.', 'Notion, Linear, Trello, monday.com and Canva in one click through MCP; any other server by URL.'], + ['Creates skills.', 'Turn the work you repeat into a skill, a markdown file the assistant runs. Type / to start one.'], + ['Reads what you give it.', 'PDFs, Office files, scans and photos, indexed on your machine, with a vision model for the scans.'], +]; + +// Drawn from the legal starter's own documents (starters/gen_docs.py), so the +// panel shows what the download actually answers. +const legal = { + run: { + project: 'Halbrook Wren LLP', + prompt: 'compare the 2026 draft with the current MSA', + rows: [ + ['Termination', '60 days, no fee', '90 days + 50% fee', true], + ['Liability cap', '12 months of fees', '6 months of fees', true], + ['Change of control', '§4.3 exit right', 'deleted', true], + ['Non-renewal notice', '120 days', '120 days', false], + ] as [string, string, string, boolean][], + refs: ['MSA-2024.pdf', 'Amendment-1.pdf', '2026-DRAFT.docx'], + }, + points: [ + ['Five agreements.', 'A services agreement with its amendment and 2026 renewal draft, a mutual NDA, and a one-sided supply agreement.'], + ['Issues list.', 'A first-pass review against a checklist — term, termination, liability, assignment — quoting each clause by section.'], + ['Version compare.', 'What changed between the signed agreement and the draft, clause by clause.'], + ] as [string, string][], + models: [ + ['vision', 'qwen2-vl-2b'], + ['document processing', 'ministral3-3b'], + ['reasoning', 'qwen3.5-2b'], + ] as [string, string][], + starter: { href: '/starters/Halbrook-Wren-LLP.zip', size: '80 KB' }, +}; + +function ChipIcon({ name }: { name: string }): ReactNode { + const props = { width: 14, height: 14, viewBox: '0 0 24 24', fill: 'none', stroke: 'currentColor', strokeWidth: 1.8, strokeLinecap: 'round' as const, strokeLinejoin: 'round' as const, 'aria-hidden': true }; + if (name === 'plug') return ; + if (name === 'spark') return ; + return ; +} + +// The few line icons the legal template panel uses. +function Icon({ name }: { name: 'download' | 'arrow' | 'file' }): ReactNode { + const props = { width: 16, height: 16, viewBox: '0 0 24 24', fill: 'none', stroke: 'currentColor', strokeWidth: 1.7, strokeLinecap: 'round' as const, strokeLinejoin: 'round' as const }; + switch (name) { + case 'file': return ; + case 'download': return ; + case 'arrow': return ; + } +} + +// What happens from install to answer, in order. +const loop: [string, string][] = [ + ['Install, and it fits itself.', 'One installer for your platform. On first launch it checks your memory and GPU and fits the models to them, integrated graphics included.'], + ['Bring your documents.', 'Make a project and drop in your files. They are indexed on your machine. Nothing uploads.'], + ['Ask.', 'The orchestrator splits the request and routes each step to the open model built for it. You never pick one.'], + ['Check the answer.', 'Each answer cites the file and passage it came from, so you can open the source and read it yourself.'], +]; + +const beyond: [string, string][] = [ + ['Web search', 'Bring current sources into an answer. Only the query leaves your machine; local models read the pages and cite them.'], + ['Local API', 'An OpenAI-compatible endpoint on localhost for creating projects, uploading documents and wiring Docent into your own apps.'], + ['The same agent, in your terminal', 'Docent runs the same agent, models and projects from your shell, your scripts or over SSH.'], +]; + +const faqs = [ + { + q: 'What is Docent Studio?', + a: 'Docent Studio is a local AI assistant that runs entirely on your own machine. You install it and start asking; there are no models to choose, nothing to configure, and no account to create. It reads your documents, connects to your tools, and generates content without sending your data anywhere.', + }, + { + q: 'How does Docent Studio work?', + a: 'Docent Studio breaks each request into smaller tasks and routes them to the best on-device model. We curate the models it ships with — open small language models including Google’s Gemma family (such as Gemma 3) and Qwen2-VL for vision — and its orchestration model (sl-mini) picks the right one by capability and workload. You never see that choice; you just get the answer.', + }, + { + q: 'Do I need to pick a model or configure anything?', + a: 'No. That is the point. There are hundreds of open models, each with its own file formats, quantizations, and memory requirements, and most people have no reason to learn the difference. Docent Studio is opinionated: we curate the models, size them to your machine on first launch, and swap in better ones as they land. There is nothing to choose or configure.', + }, + { + q: 'Is Docent Studio free?', + a: 'Yes, Docent Studio is free to use, with models that are regularly updated to handle most everyday tasks efficiently. No account or credit card is needed, and it stays free for organizations running it at scale. The one metered part is AI search, which runs through us: every account gets a monthly allowance of searches, and you can buy more from your dashboard. If you want a hand getting it running, you can contact us to set it up and get it working on your data — on-premise deployment, tuning for your use case, rollout across your team, and a dedicated point of contact. Reach us at support@smartloop.ai.', + }, + { + q: 'Is my data private and offline?', + a: 'Yes. Docent Studio runs models on-device, so your documents and conversations stay on your machine, and it works offline for most everyday tasks. AI search is the exception: it sends only a search query to find current web information, never your documents or conversation, and you can turn it off per project. Docent Studio sizes the models it runs to the memory your machine has. The minimum is an Apple Silicon Mac (M3 or newer) with 16 GB of unified memory, or a Windows 11 / Linux machine with 16 GB of RAM and a Vulkan-capable GPU — integrated Intel, AMD, or NVIDIA graphics all qualify, and the Vulkan runtime ships with the app. More memory is better.', + }, +]; + +export default function DocentDesktop(): ReactNode { + const platform = useVisitorPlatform(); + const { release } = useLatestRelease(); + + const jsonLd = { + '@context': 'https://schema.org', + '@type': 'SoftwareApplication', + name: 'Docent Studio', + applicationCategory: 'BusinessApplication', + operatingSystem: 'macOS, Linux, Windows', + description: DESCRIPTION, + url: 'https://smartloop.ai/docent#desktop', + offers: { '@type': 'Offer', price: '0', priceCurrency: 'USD' }, + author: { '@type': 'Organization', name: 'Smartloop Inc.', url: 'https://smartloop.ai' }, + }; + + const faqJsonLd = { + '@context': 'https://schema.org', + '@type': 'FAQPage', + mainEntity: faqs.map(({ q, a }) => ({ + '@type': 'Question', + name: q, + acceptedAnswer: { '@type': 'Answer', text: a }, + })), + }; + + return ( + <> + + Docent Studio | Your personal assistant for work + + + + + + + + +
+
+ + {/* ── Demo ─────────────────────────────────────────── */} +
+
+ {/* The recording carries its own window and desktop, so it gets no + frame of ours on top. */} +
+
+

+ a contract review across five agreements · three open models · 0 bytes uploaded +

+
+
+ +
+
+

What it does

+

From a request to a finished document.

+
    + {points.map(([title, desc]) => ( +
  • {title} {desc}
  • + ))} +
+
+
+ + {/* ── Template: legal ────────────────────────────── */} +
+
+

On-device privacy

+

An associate that never leaves the office.

+

+ Some documents can’t go to a cloud model. Docent Studio reads and reasons over them on your own machine, so privileged material never leaves the device — and every answer cites the clause it came from. +

+ +
+
+

+ The template is a fictional firm’s client file: five agreements and two review skills, ready to import into Studio. +

+
    + {legal.points.map(([lead, rest]) => ( +
  • {lead} {rest}
  • + ))} +
+
+ {/* The template is the lead: download it, then the guide + walks through what to ask it. */} + + download template + {legal.starter.size} + + + read the guide + + contact us +
+
+ + +
+
+
+ + {/* ── From install to answer ───────────────────────── */} +
+
+

How it works

+

What happens when you ask.

+
    + {loop.map(([title, desc], i) => ( +
  1. + {String(i + 1).padStart(2, '0')} +

    {title}

    +

    {desc}

    +
  2. + ))} +
+

+ More in model orchestration. +

+
+
+ + {/* ── Models and platforms ─────────────────────────── */} +
+
+

Open models

+

Your models, sized to your machine.

+
+
+

Fitted on first launch

+

+ Docent Studio checks the memory and GPU you have and fits open models such as Gemma, Qwen and Ministral to them. Nothing to pick, quantize or configure. +

+
+
+

Routed for you

+

+ A small orchestrator model plans each request and hands every step to the model built for it: vision for scans, a document model for reading, a reasoning model to compose. +

+
+
+

macOS, Linux, Windows

+

+ Apple Silicon Macs (M3 or newer) with 16 GB, or Windows 11 and Linux with 16 GB and a Vulkan-capable GPU, integrated graphics included. No account needed. +

+
+
+
+
+ + {/* ── Beyond chat ──────────────────────────────────── */} +
+
+

More than chat

+

Your documents, your tools, your apps.

+
    + {beyond.map(([title, desc]) => ( +
  • {title}. {desc}
  • + ))} +
+

+ See documents, skills, connections and the local API. +

+
+
+ + {/* ── FAQ ──────────────────────────────────────────── */} +
+
+
+

FAQ

+

Questions, answered.

+
+
+ {faqs.map(({ q, a }) => ( +
+ {q} +

+ {a.split('support@smartloop.ai').flatMap((part, idx) => + idx === 0 + ? [part] + : [support@smartloop.ai, part], + )} +

+
+ ))} +
+
+
+ + ); +} diff --git a/src/components/Docent/Terminal.tsx b/src/components/Docent/Terminal.tsx new file mode 100644 index 0000000..8cf3a0d --- /dev/null +++ b/src/components/Docent/Terminal.tsx @@ -0,0 +1,367 @@ +import { useEffect, type ReactNode } from 'react'; +import Link from '@docusaurus/Link'; +import Head from '@docusaurus/Head'; +import useDocusaurusContext from '@docusaurus/useDocusaurusContext'; +import DocentInstall, { installCommands, useInstallShell } from '../DocentInstall'; +import styles from '../../pages/home.module.css'; +import local from '../../pages/docent.module.css'; + +// smartloop.ai/docent: the page to link from posts and launches, so docent +// traffic shows up as its own page in analytics (with any utm_* tags on the +// link) instead of blending into the homepage. + +const DESCRIPTION = + 'docent is an open-source AI coding agent for your terminal that runs on open models. It writes code as diffs, checks it against your language servers and build, fixes its own errors, and runs the commands once you say so.'; + +const points: [string, string][] = [ + ['Writes code.', 'New files whole, changes as small edits, each shown as a diff as it streams.'], + ['Checks its work.', 'Runs your language servers and build, and hands errors back to the model until it passes.'], + ['Runs the work.', 'Commits, installs and tests, once you say so.'], + ['Open models.', 'No vendor lock-in: pick the model, and run it locally so your code stays private.'], +]; + +// What you type at each step, then what docent does with it. +const steps: { title: string; code: string; desc: string }[] = [ + { + title: 'Install', + code: installCommands.unix, // swapped for the visitor's shell below + desc: 'One line puts docent on your PATH. macOS, Linux and Windows.', + }, + { + title: 'Open a project', + code: 'cd my-app && docent', + desc: 'The first run fetches what it needs. Type /models to pick an open model, like MiniMax M3.', + }, + { + title: 'Ask for a change', + code: '> add a CLI that asks for a name and greets it', + desc: 'docent writes the diff, builds it, fixes what breaks, and asks before it runs anything.', + }, +]; + +// ── Long-form content: the detail people (and search engines) look for. +// Every claim here comes from the docent README and the coding docs. + +// What happens on each prompt, in order. +const loop: [string, string][] = [ + ['It reads the project.', 'The file tree, the files your prompt is about and the git state (branch, remotes, what changed), plus your OS, shell, package managers and toolchains, so it answers from your code and uses brew on a Mac and apt-get on Ubuntu.'], + ['You see diffs as they stream.', 'Each file shows as numbered hunks, additions in green and removals in red, and is written into the folder as soon as it is done. Changes to files that already exist ask first.'], + ['It checks the build and fixes it.', 'A fast check for the kind of project runs after every change. Errors go back to the model, round after round, until the check passes.'], + ['Commands wait for your OK.', 'Commits, installs and test runs come back as shell commands. Enter runs them, Tab approves the rest of the session, Esc skips. Their output goes back to the agent, so a failing test gets fixed next.'], + ['Long runs go to the background.', 'Dev servers and watchers keep running under the prompt while you keep chatting. /tasks shows them and /stop ends them.'], +]; + +// Language → the language server and the build check docent uses. +const stack: [string, string, string][] = [ + ['Rust', 'rust-analyzer', 'cargo check'], + ['Go', 'gopls', 'go build'], + ['TypeScript · JavaScript', 'typescript-language-server', 'tsc --noEmit'], + ['Python', 'pyright', 'py_compile'], + ['C · C++', 'clangd', 'your build'], + ['Shell scripts', '—', 'bash -n'], +]; + +const beyond: [string, string][] = [ + ['Chat with your files', 'Drop a PDF, Office file, CSV, text file or image on the terminal and ask about it. Documents are indexed on your machine.'], + ['Web search', 'Sign in with /login for AI search, so answers can cite current docs and library APIs, with their sources.'], + ['MCP servers', 'Connect tools with /mcp add and docent can call them while it works.'], + ['Scriptable', 'Pipe a plain answer into your scripts with --plain, or run docent over SSH.'], +]; + +const faqs: { q: string; a: string }[] = [ + { + q: 'What is docent?', + a: 'docent is an open-source AI coding agent for the terminal, made by Smartloop. Open it in a project, ask for a change, and it writes the code as diffs, checks it with your language servers and build, fixes its own errors, and runs commands like commits and tests once you approve them. It also answers questions about your documents and the web.', + }, + { + q: 'Is docent free and open source?', + a: 'Yes. docent is MIT licensed, with the source on GitHub, and it is free to use with no account. Signing in is optional: it unlocks AI web search and the cloud models, which draw on a monthly allowance.', + }, + { + q: 'Which models does docent use?', + a: 'Open models. Small ones such as Qwen, Gemma and Ministral run on your own machine, and larger open models such as MiniMax M3, GLM and the bigger Qwen models are available in the cloud when you sign in. Pick and switch models with /models; the one that suits your machine is marked.', + }, + { + q: 'Does my code leave my machine?', + a: 'Not with local models: docent runs the model and its agent on your computer, with GPU acceleration through Metal on macOS and Vulkan on Linux and Windows. Cloud models are marked in /models, and web search sends only the search query, never your files.', + }, + { + q: 'Which languages does docent support?', + a: 'Any language it can read, with built-in checks for Rust (cargo check), Go (go build), TypeScript and JavaScript (tsc --noEmit), Python (py_compile) and shell scripts (bash -n). It also uses your language servers, such as rust-analyzer, gopls, typescript-language-server, pyright and clangd, to catch errors.', + }, + { + q: 'Which platforms does it run on?', + a: 'macOS on Apple Silicon (signed and notarized), Linux on x86_64 and arm64, and Windows on x86_64 (signed). Install with one command: curl -fsSL https://smartloop.ai/install | sh on macOS and Linux, or irm https://smartloop.ai/install.ps1 | iex in PowerShell.', + }, + { + q: 'Will it run commands without asking?', + a: 'No. Files it creates are written straight away, but changes to existing files ask first, and every shell command (a commit, an install, a test run) waits for you to press Enter. Press Tab to approve the rest of a session, or Esc to skip.', + }, +]; + +export function GitHubIcon(): ReactNode { + return ( + + ); +} + +export function Check(): ReactNode { + return ( + + + + ); +} + +export default function DocentTerminal(): ReactNode { + const { siteConfig } = useDocusaurusContext(); + const shell = useInstallShell(); + // Latest Docent CLI version, baked in at build time (docusaurus.config.ts). + const docentVersion = siteConfig.customFields?.docentVersion as string | null | undefined; + + // Keep campaign tags for the session, as the homepage does. + useEffect(() => { + const params = new URLSearchParams(window.location.search); + ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content'].forEach((key) => { + const value = params.get(key); + if (value) sessionStorage.setItem(key, value); + }); + }, []); + + const jsonLd = { + '@context': 'https://schema.org', + '@type': 'SoftwareApplication', + name: 'docent', + applicationCategory: 'DeveloperApplication', + operatingSystem: 'macOS, Linux, Windows', + description: DESCRIPTION, + url: 'https://smartloop.ai/docent', + license: 'https://opensource.org/licenses/MIT', + offers: { '@type': 'Offer', price: '0', priceCurrency: 'USD' }, + author: { '@type': 'Organization', name: 'Smartloop Inc.', url: 'https://smartloop.ai' }, + }; + + const faqJsonLd = { + '@context': 'https://schema.org', + '@type': 'FAQPage', + mainEntity: faqs.map(({ q, a }) => ({ + '@type': 'Question', + name: q, + acceptedAnswer: { '@type': 'Answer', text: a }, + })), + }; + + return ( + <> + + docent | Open-source AI coding agent for your terminal + + + + + + + +
+
+ + {/* ── Demo: install to a running Rust program, narrated ── */} +
+
+ {/* The recording carries its own window and desktop, so it + gets no frame of ours on top. It plays on request, muted by + default; the narration is there if you unmute. */} +
+
+

+ install → pick an open model → a Rust program that builds and runs · 1:33 +

+
+
+ +
+
+

What it does

+

Ask for a change. Get a build that passes.

+
    + {points.map(([title, desc]) => ( +
  • {title} {desc}
  • + ))} +
+
+
+ + {/* ── Each prompt, step by step ─────────────────── */} +
+
+

How it works

+

What happens when you ask for a change.

+
    + {loop.map(([title, desc], i) => ( +
  1. + {String(i + 1).padStart(2, '0')} +

    {title}

    +

    {desc}

    +
  2. + ))} +
+

+ More in the coding guide. +

+
+
+ + {/* ── Languages ─────────────────────────────────── */} +
+
+

Works with your stack

+

Checked by the tools you already use.

+

+ docent reads code in any language. For these it also knows the language server and the build check, so errors are caught and fixed before you see them. +

+
+
+ Language + Language server + Build check +
+ {stack.map(([lang, lsp, check]) => ( +
+ {lang} + {lsp} + {check} +
+ ))} +
+
+
+ + {/* ── Models and platforms ──────────────────────── */} +
+
+

Open models

+

Your model, your machine.

+
+
+

Local, on your GPU

+

+ Small open models such as Qwen, Gemma and Ministral run on your computer, through Metal on macOS and Vulkan on Linux and Windows. Your code stays on the machine. +

+
+
+

Bigger open models, when you need them

+

+ Sign in to add larger open models such as MiniMax M3, GLM and the bigger Qwen models. Switch any time with /models; no vendor lock-in. +

+
+
+

macOS, Linux, Windows

+

+ Signed builds for Apple Silicon Macs, Linux on x86_64 and arm64, and Windows on x86_64. One command installs it; no account needed. +

+
+
+
+
+ + {/* ── Beyond code ───────────────────────────────── */} +
+
+

More than code

+

An agent harness, not just an autocomplete.

+
    + {beyond.map(([title, desc]) => ( +
  • {title}. {desc}
  • + ))} +
+

+ Every command and shortcut is in the command-line reference; see also documents and MCP servers. +

+
+
+ +
+
+

Get started

+

From install to a passing build.

+

Three things to type. docent does the rest.

+
    + {steps.map(({ title, code, desc }, i) => ( +
  1. + {String(i + 1).padStart(2, '0')} +
    +

    {title}

    +

    {desc}

    +
    + {i === 0 ? installCommands[shell] : code} +
  2. + ))} +
+
+
+ + {/* ── FAQ ───────────────────────────────────────── */} +
+
+
+

FAQ

+

Questions, answered.

+
+
+ {faqs.map(({ q, a }) => ( +
+ {q} +

{a}

+
+ ))} +
+
+
+ + + ); +} diff --git a/src/components/Header/index.tsx b/src/components/Header/index.tsx index 1ddf054..21ba4e1 100644 --- a/src/components/Header/index.tsx +++ b/src/components/Header/index.tsx @@ -118,8 +118,28 @@ export default function Header() { diff --git a/src/components/HeroDrift/index.tsx b/src/components/HeroDrift/index.tsx new file mode 100644 index 0000000..7d9090a --- /dev/null +++ b/src/components/HeroDrift/index.tsx @@ -0,0 +1,39 @@ +import { type ReactNode } from 'react'; +import styles from '../../pages/home.module.css'; + +// The open models we run and the machines we fit them to. They drift past +// either side of the hero headline on the home and Studio pages. +export const MODELS = ['Gemma 4', 'Qwen 3.5', 'Qwen2-VL', 'Ministral 3', 'sl-mini', 'Gemma 3', 'Qwen3', 'Phi']; +export const HARDWARE = ['Apple Silicon', 'NVIDIA', 'AMD', 'Intel', 'Integrated graphics', 'Windows 11', 'Linux', 'macOS']; + +export function Marquee({ items, reverse = false, slow = false }: { items: string[]; reverse?: boolean; slow?: boolean }): ReactNode { + // Two copies of the row, translated by half: the seam is invisible. + const row = [...items, ...items]; + return ( +
+
+ {row.map((item, i) => ( + {item} + ))} +
+
+ ); +} + +/** Model and hardware names drifting past both sides of the hero; wide screens only. */ +export default function HeroDrift(): ReactNode { + return ( + <> +