Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.
Clean up website: navbar, footer, landing, fonts; hide Tokamak
mmngn592eb149e35a
diff --git a/docs/next-sitemap.config.js b/docs/next-sitemap.config.jsindex d3c5d3e23..6c8fd0c20 100644--- a/docs/next-sitemap.config.js+++ b/docs/next-sitemap.config.js@@ -4,4 +4,7 @@ module.exports = {generateRobotsTxt: true,changefreq: 'daily',priority: 1.0,+ // /tokamak is intentionally hidden (kept reachable but unlinked); keep it out+ // of the sitemap so it isn't surfaced for indexing.+ exclude: ['/tokamak'],}diff --git a/docs/src/components/Blog/CTA/index.tsx b/docs/src/components/Blog/CTA/index.tsxindex 79d4de5c9..5d2f5922b 100644--- a/docs/src/components/Blog/CTA/index.tsx+++ b/docs/src/components/Blog/CTA/index.tsx@@ -15,7 +15,7 @@ const CTABlog = () => {width={800}height={800}/>- <h1 className="text-4xl !font-normal leading-tight lg:leading-tight font-serif mt-8">+ <h1 className="text-4xl !font-semibold leading-tight lg:leading-tight font-serif mt-8">The Soul of a New Machine</h1><p className="leading-relaxed text-black/60 dark:text-white/60">diff --git a/docs/src/components/Blog/index.tsx b/docs/src/components/Blog/index.tsxindex 16899df2c..2c1afcd4b 100644--- a/docs/src/components/Blog/index.tsx+++ b/docs/src/components/Blog/index.tsx@@ -28,7 +28,7 @@ const Blog = () => {return (<div className="nextra-wrap-container"><div className="mt-14 text-center">- <h1 className="text-6xl !fqont-normal leading-tight lg:leading-tight mt-2 font-serif">+ <h1 className="text-6xl !font-semibold leading-tight lg:leading-tight mt-2 font-serif">Blog</h1><div className="text-black/60 dark:text-white/60">diff --git a/docs/src/components/Changelog/index.tsx b/docs/src/components/Changelog/index.tsxindex e76231cc2..203adbb8b 100644--- a/docs/src/components/Changelog/index.tsx+++ b/docs/src/components/Changelog/index.tsx@@ -3,99 +3,20 @@ import { format } from 'date-fns'import { useData } from 'nextra/data'import Image from 'next/image'import Link from 'next/link'-import { useState } from 'react'-import { useForm } from 'react-hook-form'const Changelog = () => {const data = useData()- const { register, handleSubmit, reset } = useForm({- defaultValues: {- email: '',- },- })-- const [formMessage, setFormMessage] = useState('')-- const onSubmit = (data: { email: string }) => {- const { email } = data- const options = {- method: 'POST',-- body: JSON.stringify({- updateEnabled: false,- email,- listIds: [14],- }),- }-- if (email) {- fetch('https://brevo.jan.ai/', options)- .then((response) => response.json())- .then((response) => {- if (response.id) {- setFormMessage('You have successfully joined our newsletter')- } else {- setFormMessage(response.message)- }- reset()- setTimeout(() => {- setFormMessage('')- }, 5000)- })- .catch((err) => console.error(err))- }- }-return (<div className="nextra-wrap-container"><div className="mt-14 text-center">- <h1 className="text-6xl !fqont-normal leading-tight lg:leading-tight mt-2 font-serif">+ <h1 className="text-6xl !font-semibold leading-tight lg:leading-tight mt-2 font-serif">Changelog</h1><div className="text-black/60 dark:text-white/60"><p className="text-base mt-2 leading-relaxed">- Latest release updates from the Jan team. Check out our - <a- href="https://github.com/orgs/janhq/projects/30"- className="text-blue-600 dark:text-blue-400 cursor-pointer"- >- Roadmap- </a>- {`to see what's next.`}+ Latest release updates from the Jan team.</p>-- <div className="mt-8 w-full lg:w-2/6 mx-auto">- <form className="relative" onSubmit={handleSubmit(onSubmit)}>- <input- type="email"- className="lg:ml-0.5 w-full h-12 p-4 pr-14 rounded-xl bg-white border dark:border-gray-600 dark:bg-[#252525] border-[#F0F0F0] focus-visible:ring-0"- placeholder="Enter your email to receive our updates"- autoComplete="off"- {...register('email')}- />- <button- type="submit"- className="absolute flex p-2 bg-black dark:bg-[#3B3B3C] w-8 h-8 border dark:border-gray-600 rounded-lg top-1/2 right-3 -translate-y-1/2"- >- <svg- width="16"- height="16"- viewBox="0 0 16 16"- fill="none"- xmlns="http://www.w3.org/2000/svg"- >- <path- fillRule="evenodd"- clipRule="evenodd"- d="M6.09026 8.41933L3.72077 7.62985C1.24061 6.80348 0 6.3903 0 5.63033C0 4.87142 1.24061 4.45718 3.72077 3.63081L12.6938 0.639442C14.4393 0.0576106 15.3121 -0.233305 15.7727 0.227312C16.2333 0.687928 15.9424 1.56068 15.3616 3.30512L12.3692 12.2792C11.5428 14.7594 11.1296 16 10.3697 16C9.61076 16 9.19652 14.7594 8.37015 12.2792L7.57962 9.9108L12.1689 5.3215C12.3609 5.1227 12.4672 4.85645 12.4648 4.58008C12.4624 4.30372 12.3515 4.03935 12.1561 3.84392C11.9607 3.64849 11.6963 3.53764 11.4199 3.53524C11.1435 3.53284 10.8773 3.63908 10.6785 3.83108L6.09026 8.41933Z"- fill="white"- />- </svg>- </button>- </form>- {formMessage && <p className="text-left mt-4">{formMessage}</p>}- </div></div><div className="w-full lg:w-3/4 mx-auto text-left"><div className="mt-20">diff --git a/docs/src/components/DocsHome.tsx b/docs/src/components/DocsHome.tsxindex 283b59d8e..5c492c830 100644--- a/docs/src/components/DocsHome.tsx+++ b/docs/src/components/DocsHome.tsx@@ -48,7 +48,7 @@ const DocsHome = () => {return (<div className="nextra-wrap-container py-16 lg:py-24"><div className="text-center max-w-2xl mx-auto px-4">- <h1 className="flex items-center justify-center gap-3 lg:gap-4 text-5xl lg:text-6xl !font-normal leading-none font-serif">+ <h1 className="flex items-center justify-center gap-3 lg:gap-4 text-5xl lg:text-6xl !font-semibold leading-none font-serif"><imgsrc={LogoJanSVG.src}alt=""diff --git a/docs/src/components/Download/index.tsx b/docs/src/components/Download/index.tsxindex ccbf852d5..904f2deba 100644--- a/docs/src/components/Download/index.tsx+++ b/docs/src/components/Download/index.tsx@@ -6,7 +6,7 @@ const Download = () => {return (<div className="nextra-wrap-container py-20"><div className="text-center">- <h1 className="text-6xl !font-normal leading-tight lg:leading-tight mt-2 font-serif">+ <h1 className="text-6xl !font-semibold leading-tight lg:leading-tight mt-2 font-serif">Download Jan for your desktop</h1><p className="text-xl mt-2 leading-relaxed text-black/60 dark:text-white/60">diff --git a/docs/src/components/DropdownDownload/index.tsx b/docs/src/components/DropdownDownload/index.tsxindex 978c36921..00f39acbc 100644--- a/docs/src/components/DropdownDownload/index.tsx+++ b/docs/src/components/DropdownDownload/index.tsx@@ -166,6 +166,35 @@ const DropdownDownload = ({ lastRelease }: Props) => {// eslint-disable-next-line react-hooks/exhaustive-deps}, [gpuInfo])+ // Flatpak isn't a GitHub release asset, so its size can't come from+ // lastRelease.assets like the others. Pull the download size from Flathub.+ useEffect(() => {+ let cancelled = false+ const fetchFlatpakSize = async () => {+ try {+ const res = await fetch('https://flathub.org/api/v2/summary/ai.jan.Jan')+ const data = await res.json()+ const downloadSize =+ data?.branches?.stable?.download_size ?? data?.download_size+ if (!cancelled && typeof downloadSize === 'number') {+ setSystems((prev) =>+ prev.map((system) =>+ system.href?.includes('flathub.org')+ ? { ...system, size: formatFileSize(downloadSize) }+ : system+ )+ )+ }+ } catch (error) {+ console.error('Failed to fetch Flathub download size:', error)+ }+ }+ fetchFlatpakSize()+ return () => {+ cancelled = true+ }+ }, [])+const [menu, setMenu] = useState<HTMLButtonElement | null>(null)const [refDropdownContent, setRefDropdownContent] =diff --git a/docs/src/components/FooterMenu/index.tsx b/docs/src/components/FooterMenu/index.tsxindex 341250c9a..e7867297e 100644--- a/docs/src/components/FooterMenu/index.tsx+++ b/docs/src/components/FooterMenu/index.tsx@@ -1,9 +1,11 @@import { useState } from 'react'-import { useForm } from 'react-hook-form'+import { ChevronDown } from 'lucide-react'+import { cn } from '@/lib/utils'type FooterLink = {name: stringhref: string+ external?: booleancomingSoon?: boolean}@@ -14,163 +16,134 @@ type FooterMenu = {const FOOTER_MENUS: FooterMenu[] = [{- title: 'Company',+ title: 'Product',links: [- // {- // name: 'Open Superintelligence',- // href: '/handbook/why/open-superintelligence',- // },- // { name: 'Handbook', href: '/handbook' },- // { name: 'Community', href: 'https://discord.com/invite/FTk2MvZwJH' },- { name: 'Careers', href: 'https://menlo.bamboohr.com/careers' },- { name: 'Discord', href: 'https://discord.com/invite/FTk2MvZwJH' },- { name: 'GitHub', href: 'https://github.com/janhq/jan' },- { name: 'LinkedIn', href: 'https://www.linkedin.com/company/opensuperintelligence' },- { name: 'X', href: 'https://x.com/jandotai' },+ {+ name: 'Jan Desktop',+ href: '/docs/desktop/quickstart',+ },+ { name: 'Jan Agent', href: '/docs/agent/quickstart' },],},{title: 'Resources',links: [- { name: 'Blog', href: '/blog' },{ name: 'Docs', href: '/docs' },+ { name: 'Research', href: '/research' },+ { name: 'Blog', href: '/blog' },{ name: 'Changelog', href: '/changelog' },- { name: 'API Reference', href: '/docs/desktop/api-server' },- // { name: 'Jan Exam', href: '/', comingSoon: true },],},- // {- // title: 'Store',- // links: [- // { name: 'Model Store', href: '/', comingSoon: true },- // { name: 'MCP Store', href: '/', comingSoon: true },- // ],- // },+ {+ title: 'Company',+ links: [+ { name: 'Careers', href: 'https://menlo.ai/careers', external: true },+ ],+ },+ {+ title: 'Connect',+ links: [+ { name: 'X', href: 'https://x.com/jandotai', external: true },+ {+ name: 'Discord',+ href: 'https://discord.com/invite/FTk2MvZwJH',+ external: true,+ },+ { name: 'GitHub', href: 'https://github.com/janhq/jan', external: true },+ {+ name: 'LinkedIn',+ href: 'https://www.linkedin.com/company/opensuperintelligence',+ external: true,+ },+ ],+ },]export default function Footer() {- const [formMessage, setFormMessage] = useState('')- const { register, handleSubmit, reset } = useForm<{ email: string }>()+ // Which sections are expanded on mobile. Desktop always shows every link+ // (the list is `lg:block`), so this only affects the mobile accordion.+ const [openSections, setOpenSections] = useState<string[]>([])- const onSubmit = (data: { email: string }) => {- const { email } = data- const options = {- method: 'POST',- body: JSON.stringify({- updateEnabled: false,- email,- listIds: [13],- }),- }-- if (email) {- fetch('https://brevo.jan.ai/', options)- .then((response) => response.json())- .then((response) => {- if (response.id) {- setFormMessage('You have successfully joined our newsletter')- } else {- setFormMessage(response.message)- }- reset()- setTimeout(() => {- setFormMessage('')- }, 5000)- })- .catch((err) => console.error(err))- }+ const toggleSection = (title: string) => {+ setOpenSections((prev) =>+ prev.includes(title) ? prev.filter((t) => t !== title) : [...prev, title]+ )}return (<footer className="py-4 w-full">- <div className="mx-auto">- <div className="grid grid-cols-1 lg:grid-cols-6 gap-8">- {/* Jan Logo and Newsletter */}- <div className="md:col-span-1 lg:col-span-2">- <h2 className="text-[52px] font-bold mb-6">Jan</h2>- <div>- <div className="flex items-center gap-2 mb-3">- <span>- <svg- width="24"- height="24"- viewBox="0 0 24 24"- fill="none"- xmlns="http://www.w3.org/2000/svg"- >- <path- d="M2.03057 6.80498C2.04526 6.62516 2.06803 6.44579 2.10662 6.26806L10.4642 11.2488C11.4104 11.8127 12.5896 11.8127 13.5358 11.2488L21.8934 6.26806C21.932 6.44579 21.9547 6.62516 21.9694 6.80498C22 7.17954 22 7.6343 22 8.16144L22 14C22 12.3431 20.6569 11 19 11C17.3431 11 16 12.3431 16 14C14.3432 14 13 15.3431 13 17C13 18.6561 14.3418 19.9987 15.9976 20H6.16136C5.63428 20 5.17951 20 4.80498 19.9694C4.40963 19.9371 4.01641 19.8658 3.63803 19.673C3.07355 19.3854 2.6146 18.9265 2.32698 18.362C2.13419 17.9836 2.06287 17.5904 2.03057 17.195C1.99997 16.8205 1.99999 16.3657 2 15.8386V8.16142C1.99999 7.63432 1.99997 7.17952 2.03057 6.80498Z"- fill="black"- />- <path- d="M20.362 4.32698C20.5139 4.40441 20.6583 4.49426 20.7936 4.59523L12.5119 9.53079C12.1965 9.71876 11.8035 9.71876 11.4881 9.53079L3.20637 4.59524C3.34175 4.49426 3.48607 4.40441 3.63803 4.32698C4.01641 4.13419 4.40963 4.06287 4.80498 4.03057C5.17953 3.99997 5.6343 3.99998 6.1614 4H17.8386C18.3657 3.99998 18.8205 3.99997 19.195 4.03057C19.5904 4.06287 19.9836 4.13419 20.362 4.32698Z"- fill="black"- />- <path- d="M19 13C19.5523 13 20 13.4477 20 14V16H22C22.5523 16 23 16.4477 23 17C23 17.5523 22.5523 18 22 18H20V20C20 20.5523 19.5523 21 19 21C18.4477 21 18 20.5523 18 20V18H16C15.4477 18 15 17.5523 15 17C15 16.4477 15.4477 16 16 16H18V14C18 13.4477 18.4477 13 19 13Z"- fill="black"- />- </svg>- </span>- <p className="text-base font-bold">- Subscribe to our newsletter- </p>- </div>- <form onSubmit={handleSubmit(onSubmit)}>- <div className="relative">- <input- type="email"- placeholder="Enter your email"- {...register('email', { required: true })}- className="flex-1 px-3 py-2 h-[56px] border border-gray-600 focus:outline-none focus:ring-2 focus:ring-blue-500 w-full rounded-xl text-base"+ <div className="nextra-wrap-container">+ {/* Columns: collapsible accordions on mobile, static columns on desktop */}+ <div className="grid grid-cols-1 lg:grid-cols-6 lg:gap-8">+ {FOOTER_MENUS.map((menu, index) => {+ const isOpen = openSections.includes(menu.title)+ const isLast = index === FOOTER_MENUS.length - 1+ return (+ <div+ key={menu.title}+ className={cn('lg:border-0', !isLast && 'border-b border-black/5')}+ >+ <button+ type="button"+ onClick={() => toggleSection(menu.title)}+ aria-expanded={isOpen}+ className="flex w-full items-center justify-between py-4 text-left lg:py-0 lg:mb-4 lg:cursor-default lg:pointer-events-none"+ >+ <h3 className="text-base font-bold">{menu.title}</h3>+ <ChevronDown+ className={cn(+ 'size-4 shrink-0 text-gray-500 transition-transform lg:hidden',+ isOpen && 'rotate-180'+ )}/>- <div className="absolute top-1 right-1 h-full">- <button- type="submit"- className="bg-black text-white px-6 h-[calc(100%-8px)] text-base hover:bg-gray-800 rounded-lg font-medium"- >- Submit- </button>- </div>- </div>- {formMessage && (- <p className="mt-2 text-sm text-green-600">{formMessage}</p>- )}- </form>- </div>- </div>+ </button>+ <ul+ className={cn(+ 'space-y-2 lg:block lg:pb-0',+ isOpen ? 'block pb-4' : 'hidden'+ )}+ >+ {menu.links.map((link) => (+ <li key={link.name}>+ <a+ href={link.href}+ className="text-base text-gray-600 hover:text-gray-900"+ target={link.external ? '_blank' : undefined}+ rel={link.external ? 'noopener noreferrer' : undefined}+ >+ {link.name}+ {link.comingSoon && (+ <span className="text-xs ml-2 bg-gray-200 border border-gray-300 px-1 py-0.5 rounded-3xl">+ Coming Soon+ </span>+ )}+ </a>+ </li>+ ))}+ </ul>+ </div>+ )+ })}- <div className="md:col-span-1"></div>+ {/* Jan Logo — first on mobile (brand → nav → legal), right column on desktop */}+ <div className="order-first mb-6 lg:order-none lg:mb-0 lg:col-span-2 lg:text-right">+ <h2 className="text-[52px] font-bold leading-none">Jan</h2>+ </div>+ </div>- {/* Menu Columns */}- {FOOTER_MENUS.map((menu) => (- <div key={menu.title} className="">- <h3 className="text-base mb-4 font-bold">{menu.title}</h3>- <ul className="space-y-2">- {menu.links.map((link) => (- <li key={link.name}>- <a- href={link.href}- className="text-base text-gray-600 hover:text-gray-900"- target={link.name === 'Discord' ? '_blank' : undefined}- rel={- link.name === 'Discord'- ? 'noopener noreferrer'- : undefined- }- >- {link.name}- {link.comingSoon && (- <span className="text-xs ml-2 bg-gray-200 border border-gray-300 px-1 py-0.5 rounded-3xl">- Coming Soon- </span>- )}- </a>- </li>- ))}- </ul>- </div>- ))}+ <div className="mt-12 border-t border-black/5 pt-6 flex flex-col sm:flex-row sm:items-center sm:justify-between gap-2 text-sm text-gray-600">+ <p>+ Built with ♡ by{' '}+ <a+ href="https://menlo.ai"+ target="_blank"+ rel="noopener noreferrer"+ className="hover:text-gray-900 underline-offset-2 hover:underline"+ >+ Menlo Research+ </a>+ </p>+ <p>© 2026 All rights reserved</p></div></div></footer>diff --git a/docs/src/components/Home/APIStructure/index.tsx b/docs/src/components/Home/APIStructure/index.tsxindex c926bb398..4d196715e 100644--- a/docs/src/components/Home/APIStructure/index.tsx+++ b/docs/src/components/Home/APIStructure/index.tsx@@ -52,7 +52,7 @@ const APIStructure = () => {return (<div className="pt-24 pb-20 nextra-wrap-container"><div className="w-full text-center">- <h1 className="text-5xl lg:text-7xl !font-normal leading-tight lg:leading-tight mt-2 font-serif">+ <h1 className="text-5xl lg:text-7xl !font-semibold leading-tight lg:leading-tight mt-2 font-serif">Fully OpenAI-Equivalent API</h1><div className="lg:w-1/2 mx-auto">diff --git a/docs/src/components/Home/BuiltWithLove/index.tsx b/docs/src/components/Home/BuiltWithLove/index.tsxindex b84fb3634..3889f0b1a 100644--- a/docs/src/components/Home/BuiltWithLove/index.tsx+++ b/docs/src/components/Home/BuiltWithLove/index.tsx@@ -2,18 +2,20 @@ import { IoMapOutline } from 'react-icons/io5'import { FaGithub, FaDiscord } from 'react-icons/fa'import { RiStarSFill } from 'react-icons/ri'import { useDiscordWidget } from '@/hooks/useDiscordWidget'+import { useGitHubStars } from '@/hooks/useGitHubStars'import { useData } from 'nextra/data'import { formatCompactNumber } from '@/utils/format'const BuiltWithLove = () => {const { data: discordWidget } = useDiscordWidget()- const { stars } = useData()+ const { stars: initialStars } = useData()+ const { stars } = useGitHubStars(initialStars)return (<div className="nextra-wrap-container mt-10"><div className="w-full px-4 xl:w-3/4 mx-auto relative py-8"><div className="text-center">- <h1 className="text-5xl !font-normal leading-tight lg:leading-tight mt-2 font-serif">+ <h1 className="text-5xl !font-semibold leading-tight lg:leading-tight mt-2 font-serif">100% Open Source</h1><p className="leading-relaxed text-black/60 dark:text-white/60 mt-2">diff --git a/docs/src/components/Home/CTADownload/index.tsx b/docs/src/components/Home/CTADownload/index.tsxindex c3562cd65..65c00aa74 100644--- a/docs/src/components/Home/CTADownload/index.tsx+++ b/docs/src/components/Home/CTADownload/index.tsx@@ -10,7 +10,7 @@ const CTADownload = () => {<div className="nextra-wrap-container"><div className="flex p-4 lg:justify-between flex-col lg:flex-row"><div className="w-full">- <h1 className="text-5xl lg:text-7xl !font-normal leading-tight lg:leading-tight mt-2 font-serif">+ <h1 className="text-5xl lg:text-7xl !font-semibold leading-tight lg:leading-tight mt-2 font-serif">Turn your computer <br className="hidden lg:block" /> into an AIcomputer</h1>diff --git a/docs/src/components/Home/CTANewsletter/index.tsx b/docs/src/components/Home/CTANewsletter/index.tsxindex 09b193b41..30e52e54c 100644--- a/docs/src/components/Home/CTANewsletter/index.tsx+++ b/docs/src/components/Home/CTANewsletter/index.tsx@@ -57,7 +57,7 @@ const CTANewsletter = () => {width={800}height={800}/>- <h1 className="text-5xl lg:text-7xl !font-normal leading-tight lg:leading-tight font-serif mt-8">+ <h1 className="text-5xl lg:text-7xl !font-semibold leading-tight lg:leading-tight font-serif mt-8">The Soul of a New Machine</h1><p className="leading-relaxed text-black/60 dark:text-white/60">diff --git a/docs/src/components/Home/Customizable/index.tsx b/docs/src/components/Home/Customizable/index.tsxindex 2b659bb55..6bee01dc0 100644--- a/docs/src/components/Home/Customizable/index.tsx+++ b/docs/src/components/Home/Customizable/index.tsx@@ -5,7 +5,7 @@ const Customizable = () => {return (<div className="pt-24 pb-20 nextra-wrap-container"><div className="w-full text-center">- <h1 className="text-5xl lg:text-7xl !font-normal leading-tight lg:leading-tight mt-2 font-serif">+ <h1 className="text-5xl lg:text-7xl !font-semibold leading-tight lg:leading-tight mt-2 font-serif">Highly Customizable</h1><div className="lg:w-1/2 mx-auto">diff --git a/docs/src/components/Home/Feature/index.tsx b/docs/src/components/Home/Feature/index.tsxindex 532b96e7d..3cb5e6b3f 100644--- a/docs/src/components/Home/Feature/index.tsx+++ b/docs/src/components/Home/Feature/index.tsx@@ -61,7 +61,7 @@ const Feature = () => {<div className="w-full mx-auto relative py-8 lg:pt-24"><div className="flex p-4 lg:px-0 lg:justify-between flex-col lg:flex-row items-center"><div className="w-full text-center lg:text-left">- <h1 className="text-5xl lg:text-7xl !font-normal leading-tight lg:leading-tight mt-2 font-serif">+ <h1 className="text-5xl lg:text-7xl !font-semibold leading-tight lg:leading-tight mt-2 font-serif">Features</h1></div>diff --git a/docs/src/components/Home/Hero/index.tsx b/docs/src/components/Home/Hero/index.tsxindex dad394d48..011ff9b98 100644--- a/docs/src/components/Home/Hero/index.tsx+++ b/docs/src/components/Home/Hero/index.tsx@@ -60,7 +60,7 @@ const Hero = () => {<div className="relative inline-block mt-20"><QuoteIcon />- <h1 className="text-6xl lg:text-[80px] !font-normal leading-tight lg:leading-tight mt-2 font-serif">+ <h1 className="text-6xl lg:text-[80px] !font-semibold leading-tight lg:leading-tight mt-2 font-serif">Chat with AI <br /> without privacy concerns</h1>diff --git a/docs/src/components/Home/Principles/index.tsx b/docs/src/components/Home/Principles/index.tsxindex a4db04df5..06e69e4db 100644--- a/docs/src/components/Home/Principles/index.tsx+++ b/docs/src/components/Home/Principles/index.tsx@@ -5,7 +5,7 @@ const Principles = () => {<div className="px-4 lg:px-8 mt-10 pb-24 lg:mt-20"><div className="nx-mx-auto nx-flex nx-max-w-[90rem] nx-pl-[max(env(safe-area-inset-left),1.5rem)] nx-pr-[max(env(safe-area-inset-right),1.5rem)]"><div className="w-full mx-auto relative pt-8 text-center">- <h1 className="text-5xl lg:text-7xl !font-normal leading-tight lg:leading-tight mt-2 font-serif">+ <h1 className="text-5xl lg:text-7xl !font-semibold leading-tight lg:leading-tight mt-2 font-serif">Our Principles</h1><p className="leading-relaxed mt-2 text-black/60 dark:text-white/60 flex gap-x-2 justify-center">diff --git a/docs/src/components/Home/WallOfLove/index.tsx b/docs/src/components/Home/WallOfLove/index.tsxindex 8ef479e32..3b66e653e 100644--- a/docs/src/components/Home/WallOfLove/index.tsx+++ b/docs/src/components/Home/WallOfLove/index.tsx@@ -116,7 +116,7 @@ const WallOfLove = ({ transparent }: Props) => {/></div><div>- <h1 className="text-5xl !font-normal leading-tight lg:leading-tight mt-2 font-serif">+ <h1 className="text-5xl !font-semibold leading-tight lg:leading-tight mt-2 font-serif">People Say Nice Things</h1><p className="leading-relaxed mt-2 text-black/60 dark:text-white/60 flex gap-x-2 justify-center">diff --git a/docs/src/components/Home/index.tsx b/docs/src/components/Home/index.tsxindex 21e739cad..ecdf983c6 100644--- a/docs/src/components/Home/index.tsx+++ b/docs/src/components/Home/index.tsx@@ -105,7 +105,7 @@ const Home = () => {</a></div><div className="mt-4">- <div className="text-center relative lg:w-1/2 mx-auto">+ <div className="text-center relative mx-auto"><div className="flex flex-col lg:flex-row items-center justify-center gap-4 animate-fade-in-up delay-300"><span><img@@ -119,7 +119,7 @@ const Home = () => {</h1></div><p className="px-4 lg:px-0 mt-2 text-lg lg:text-2xl font-medium leading-relaxed text-white animate-fade-in-up delay-500 -tracking-[0.6px]">- Personal Intelligence that answers only to you+ Your personal intelligence. Run any model, your way.</p></div><div className="flex px-4 flex-col lg:flex-row items-start gap-4 w-full justify-center text-center animate-fade-in-up delay-600 mt-8 lg:mt-10">@@ -130,7 +130,7 @@ const Home = () => {lastRelease={lastRelease}/><div className="font-medium text-center mt-2 text-white">- +{totalDownload(release)} downloads+ {totalDownload(release)}+ downloads</div></div><a@@ -229,46 +229,11 @@ const Home = () => {</div></section>- {/* Products */}- <section className="px-3 pt-20">- <div className="container mx-auto">- <h2 className="text-[24px] lg:text-[40px] font-semibold text-center mb-10 -tracking-[1.3px]">- An open model ecosystem- </h2>- <div className="grid md:grid-cols-2 gap-6 max-w-3xl mx-auto">- <div className="rounded-2xl border border-black shadow-[0px_4px_0px_0px_rgba(0,0,0,1)] p-6">- <h3 className="text-xl font-semibold">Jan Agent</h3>- <p className="mt-2 text-black/60">- The core agent, distributed separately — run it on your own- VM or container.- </p>- <a href="/docs/agent" className="inline-block mt-4">- <Button variant="playful" size="lg">- Install Jan Agent- </Button>- </a>- </div>- <div className="rounded-2xl border border-black shadow-[0px_4px_0px_0px_rgba(0,0,0,1)] p-6">- <h3 className="text-xl font-semibold">Tokamak</h3>- <p className="mt-2 text-black/60">- Router, fusion model, and governance/audit — the self-hosted- backend Jan agents connect to.- </p>- <a href="/tokamak" className="inline-block mt-4">- <Button variant="playful" size="lg">- Explore Tokamak- </Button>- </a>- </div>- </div>- </div>- </section>-{/* Statistic and social */}<section className="pt-20"><div className="container mx-auto"><h2 className="text-[24px] lg:text-[52px] font-semibold text-center mb-16 -tracking-[1.3px]">- Over 4 million downloads+ Over 6 million downloads</h2></div><TweetSection />@@ -336,7 +301,7 @@ const Home = () => {<span className="font-bold text-lg">Discord</span><span className="text-sm mt-1">{formatCompactNumber(discordWidget.presence_count)}{' '}- Online+ online</span></span></Button>@@ -626,7 +591,7 @@ const Home = () => {classNameButton="!shadow-none border-2"/><span className="text-xs font-medium text-center mt-2">- +{totalDownload(release)} downloads, Free & Open source+ {totalDownload(release)}+ downloads, Free & Open source</span></div></div>diff --git a/docs/src/components/Navbar.tsx b/docs/src/components/Navbar.tsxindex d3dc1f04c..905156c58 100644--- a/docs/src/components/Navbar.tsx+++ b/docs/src/components/Navbar.tsx@@ -3,40 +3,46 @@ import { useEffect, useState } from 'react'import { useRouter } from 'next/router'import { cn } from '@/lib/utils'import { FaDiscord, FaGithub } from 'react-icons/fa'-import { FiDownload } from 'react-icons/fi'import { FaXTwitter, FaLinkedinIn } from 'react-icons/fa6'import { ChevronDown } from 'lucide-react'import { Button } from './ui/button'-import DocSearch from './DocSearch'import LogoJanSVG from '@/assets/icons/logo-jan.svg'+import { useDownloadLink } from '@/hooks/useDownloadLink'-const MENU_ITEMS = [+type MenuItem = {+ name: string+ href: string+ external?: boolean+ children?: { name: string; href: string; external?: boolean }[]+}++const MENU_ITEMS: MenuItem[] = [{name: 'Jan',href: '/docs/desktop/quickstart',children: [- { name: 'Jan Desktop', href: '/docs/desktop/quickstart' },+ {+ name: 'Jan Desktop',+ href: '/docs/desktop/quickstart',+ },{ name: 'Jan Agent', href: '/docs/agent/quickstart' },],},- { name: 'Tokamak', href: 'https://tokamak.sh', external: true },{ name: 'Research', href: '/research' },{ name: 'Docs', href: '/docs' },{name: 'Company',href: '#',children: [- { name: 'Changelog', href: '/changelog' },{ name: 'Blog', href: '/blog' },- { name: 'About Us', href: '/handbook/who/who-we-are' },- { name: 'Careers', href: 'https://jobs.ashbyhq.com/menlo', external: true },- { name: 'Handbook', href: '/handbook' },+ { name: 'Careers', href: 'https://menlo.ai/careers', external: true },],},]const Navbar = ({ noScroll }: { noScroll?: boolean }) => {const router = useRouter()+ const downloadHref = useDownloadLink()const [isScrolled, setIsScrolled] = useState(false)const [isMobileMenuOpen, setIsMobileMenuOpen] = useState(false)const currentPath = router.asPath@@ -75,7 +81,7 @@ const Navbar = ({ noScroll }: { noScroll?: boolean }) => {className={cn('h-[100px] w-full top-0 z-50 transition-all duration-300 border-b lg:px-6 left-0',isLanding ? 'fixed' : 'sticky !border-opacity-100 !top-0',- isScrolled || noScroll+ !isLanding || isScrolled || noScroll? 'bg-white text-black h-[60px] border-border': 'bg-transparent text-white h-[60px] border-gray-100 border-opacity-10 top-4')}@@ -143,16 +149,9 @@ const Navbar = ({ noScroll }: { noScroll?: boolean }) => {</li>)})}- {/* Landing page keeps the navbar transparent over artwork, where a- filled input would read as a stray form field. */}- {!isLanding && (- <li>- <DocSearch />- </li>- )}<li><a- href="https://github.com/janhq/jan/releases/latest"+ href={downloadHref}target="_blank"rel="noopener noreferrer">@@ -190,20 +189,20 @@ const Navbar = ({ noScroll }: { noScroll?: boolean }) => {<FaXTwitter className="size-5" /></a><a- href="https://linkedin.com/company/opensuperintelligence"+ href="https://github.com/janhq/jan"target="_blank"rel="noopener noreferrer"className="rounded-lg flex items-center justify-center">- <FaLinkedinIn className="size-5" />+ <FaGithub className="size-5" /></a><a- href="https://github.com/janhq/jan"+ href="https://linkedin.com/company/opensuperintelligence"target="_blank"rel="noopener noreferrer"className="rounded-lg flex items-center justify-center">- <FaGithub className="size-5" />+ <FaLinkedinIn className="size-5" /></a></div></li>@@ -212,24 +211,6 @@ const Navbar = ({ noScroll }: { noScroll?: boolean }) => {{/* Mobile Download Button and Hamburger */}<div className="lg:hidden flex items-center gap-3">- <a- href="https://github.com/janhq/jan/releases/latest"- target="_blank"- rel="noopener noreferrer"- >- <Button- size="sm"- className={cn(- !isLanding &&- '!bg-black !text-white !hover:bg-black !hover:text-white',- isScrolled || noScroll- ? 'bg-black text-white hover:bg-gray-800'- : 'bg-white text-black hover:bg-gray-100'- )}- >- Download- </Button>- </a><buttonclassName="flex flex-col items-center justify-center w-8 h-8"onClick={toggleMobileMenu}@@ -274,7 +255,10 @@ const Navbar = ({ noScroll }: { noScroll?: boolean }) => {<div className="p-6">{/* Header with close button */}<div className="flex items-center justify-between mb-6">- <h2 className="text-2xl font-bold text-black">Jan</h2>+ <div className="flex items-center gap-2">+ <img src={LogoJanSVG.src} alt="Jan" className="w-6 h-6" />+ <span className="text-2xl font-bold text-black">Jan</span>+ </div><buttonclassName="w-8 h-8 rounded-full bg-gray-100 flex items-center justify-center text-gray-500 hover:bg-gray-200"onClick={() => setIsMobileMenuOpen(false)}@@ -284,15 +268,6 @@ const Navbar = ({ noScroll }: { noScroll?: boolean }) => {</button></div>- {/* Nextra's own sidebar search is unreachable here: our custom- hamburger drives this modal, not Nextra's sidebar state. */}- <div className="mb-6">- <DocSearch- variant="panel"- onNavigate={() => setIsMobileMenuOpen(false)}- />- </div>-{/* Menu Items */}<nav className="mb-6"><ul className="space-y-4">@@ -358,41 +333,22 @@ const Navbar = ({ noScroll }: { noScroll?: boolean }) => {<FaXTwitter className="size-5" /></a><a- href="https://linkedin.com/company/opensuperintelligence"+ href="https://github.com/janhq/jan"target="_blank"rel="noopener noreferrer"className="text-black rounded-lg flex items-center justify-center">- <FaLinkedinIn className="size-5" />+ <FaGithub className="size-5" /></a><a- href="https://github.com/janhq/jan"+ href="https://linkedin.com/company/opensuperintelligence"target="_blank"rel="noopener noreferrer"className="text-black rounded-lg flex items-center justify-center">- <FaGithub className="size-5" />+ <FaLinkedinIn className="size-5" /></a></div>-- {/* Action Buttons */}- <div className="space-y-3">- <Button- variant="playful-green"- size="xl"- className="w-full lg:w-auto text-left justify-start"- asChild- >- <a- href="https://github.com/janhq/jan/releases/latest"- target="_blank"- rel="noopener noreferrer"- >- <FiDownload className="size-6 mr-2" />- Download Jan- </a>- </Button>- </div></div></div></>diff --git a/docs/src/components/Research.tsx b/docs/src/components/Research.tsxindex 0f81b78f5..d4d8fe520 100644--- a/docs/src/components/Research.tsx+++ b/docs/src/components/Research.tsx@@ -72,7 +72,7 @@ const Research = () => {<div className="nextra-wrap-container mx-auto w-full max-w-[1400px] px-5 py-16 lg:px-10 lg:py-24">{/* ── Header: title + category pills ─────────────────────────────── */}<div className="flex flex-col gap-8 sm:flex-row sm:items-end sm:justify-between">- <h1 className="font-serif text-5xl !font-normal leading-none lg:text-7xl">+ <h1 className="font-serif text-5xl !font-semibold leading-none lg:text-7xl">Research</h1><div className="flex flex-wrap gap-2">@@ -107,7 +107,7 @@ const Research = () => {<Cover post={featured} className="aspect-[4/3]" /><div className="flex flex-col gap-4"><Meta post={featured} />- <h2 className="font-serif text-3xl !font-normal leading-tight transition-opacity group-hover:opacity-70 lg:text-5xl">+ <h2 className="font-serif text-3xl !font-semibold leading-tight transition-opacity group-hover:opacity-70 lg:text-5xl">{featured.title}</h2><p className="text-lg leading-relaxed text-black/60 dark:text-white/60">diff --git a/docs/src/components/ResearchPostLayout.tsx b/docs/src/components/ResearchPostLayout.tsxindex cb72cfb3e..719433d1b 100644--- a/docs/src/components/ResearchPostLayout.tsx+++ b/docs/src/components/ResearchPostLayout.tsx@@ -84,7 +84,7 @@ const ResearchPostLayout = ({</a><div className="max-w-[720px] mx-auto mt-8">- <h1 className="text-4xl lg:text-5xl !font-normal leading-tight font-serif">+ <h1 className="text-4xl lg:text-5xl !font-semibold leading-tight font-serif">{title}</h1>@@ -106,7 +106,7 @@ const ResearchPostLayout = ({{keepReading.length > 0 && (<div className="mx-auto mt-24 max-w-[1100px] border-t border-black/[0.07] pt-16 dark:border-white/[0.08]"><div className="flex items-end justify-between">- <h2 className="font-serif text-3xl !font-normal lg:text-4xl">Keep reading</h2>+ <h2 className="font-serif text-3xl !font-semibold lg:text-4xl">Keep reading</h2><ahref="/research"className="text-xs font-medium uppercase tracking-widest text-black/50 transition-colors hover:text-black dark:text-white/50 dark:hover:text-white"diff --git a/docs/src/components/Tokamak.tsx b/docs/src/components/Tokamak.tsxindex 648067c08..836814277 100644--- a/docs/src/components/Tokamak.tsx+++ b/docs/src/components/Tokamak.tsx@@ -22,7 +22,7 @@ const Tokamak = () => {return (<div className="nextra-wrap-container py-20"><div className="text-center max-w-2xl mx-auto">- <h1 className="text-6xl !font-normal leading-tight lg:leading-tight mt-2 font-serif">+ <h1 className="text-6xl !font-semibold leading-tight lg:leading-tight mt-2 font-serif">Tokamak</h1><p className="text-xl mt-2 leading-relaxed text-black/60 dark:text-white/60">diff --git a/docs/src/components/ui/dropdown-button.tsx b/docs/src/components/ui/dropdown-button.tsxindex 9b60b4fa0..98adb3523 100644--- a/docs/src/components/ui/dropdown-button.tsx+++ b/docs/src/components/ui/dropdown-button.tsx@@ -145,6 +145,35 @@ export function DropdownButton({}}, [lastRelease, changeDefaultSystem])+ // Flatpak isn't a GitHub release asset (it's on Flathub), so its size can't+ // come from lastRelease.assets like the others. Fetch it from Flathub.+ React.useEffect(() => {+ let cancelled = false+ const fetchFlatpakSize = async () => {+ try {+ const res = await fetch('https://flathub.org/api/v2/summary/ai.jan.Jan')+ const data = await res.json()+ const downloadSize =+ data?.branches?.stable?.download_size ?? data?.download_size+ if (!cancelled && typeof downloadSize === 'number') {+ setDownloadOptions((prev) =>+ prev.map((option) =>+ option.id === 'linux-flatpak'+ ? { ...option, size: formatFileSize(downloadSize) }+ : option+ )+ )+ }+ } catch (error) {+ console.error('Failed to fetch Flathub download size:', error)+ }+ }+ fetchFlatpakSize()+ return () => {+ cancelled = true+ }+ }, [])+React.useEffect(() => {const handleEscapeKey = (event: KeyboardEvent) => {if (event.key === 'Escape' && isOpen) {diff --git a/docs/src/hooks/useDownloadLink.ts b/docs/src/hooks/useDownloadLink.tsnew file mode 100644index 000000000..b9979f4c8--- /dev/null+++ b/docs/src/hooks/useDownloadLink.ts@@ -0,0 +1,70 @@+import { useEffect, useState } from 'react'++import axios from 'axios'++// The releases page — used as the initial value and as the fallback when the+// latest-release lookup fails, so the button always works.+const RELEASES_PAGE = 'https://github.com/janhq/jan/releases/latest'++// Mirrors DropdownDownload's per-OS asset mapping: Mac gets the universal dmg,+// Windows the x64 installer, Linux goes to Flathub (same default as the hero).+const assetHref = (userAgent: string, tagName: string): string => {+ const version = tagName.startsWith('v') ? tagName.slice(1) : tagName+ const base = `https://github.com/janhq/jan/releases/download/${tagName}`++ if (userAgent.includes('Windows')) {+ return `${base}/Jan_${version}_x64-setup.exe`+ }+ if (userAgent.includes('Mac')) {+ return `${base}/Jan_${version}_universal.dmg`+ }+ if (userAgent.includes('Linux')) {+ return 'https://flathub.org/apps/ai.jan.Jan'+ }+ // Unknown OS: default to the Windows installer, matching the hero.+ return `${base}/Jan_${version}_x64-setup.exe`+}++// Cache the tag across mounts so navigating the site doesn't refetch the release+// (and keeps us well under GitHub's unauthenticated rate limit).+let cachedTag: string | null = null++// Resolves the direct, OS-specific download link for the latest Jan release.+// Detects the OS in the browser and points straight at the matching asset,+// falling back to the releases page until (or unless) the lookup resolves.+export const useDownloadLink = (): string => {+ const [href, setHref] = useState(RELEASES_PAGE)++ useEffect(() => {+ let cancelled = false++ const resolve = (tag: string) => {+ if (!cancelled) setHref(assetHref(navigator.userAgent, tag))+ }++ if (cachedTag) {+ resolve(cachedTag)+ return+ }++ axios+ .get<{ tag_name: string }>(+ 'https://api.github.com/repos/janhq/jan/releases/latest'+ )+ .then(({ data }) => {+ if (data?.tag_name) {+ cachedTag = data.tag_name+ resolve(data.tag_name)+ }+ })+ .catch(() => {+ // Keep the releases-page fallback already in state.+ })++ return () => {+ cancelled = true+ }+ }, [])++ return href+}diff --git a/docs/src/hooks/useGitHubStars.ts b/docs/src/hooks/useGitHubStars.tsnew file mode 100644index 000000000..34dbe2227--- /dev/null+++ b/docs/src/hooks/useGitHubStars.ts@@ -0,0 +1,32 @@+import { useEffect, useState } from 'react'++import axios, { isAxiosError } from 'axios'++// Fetches the live GitHub star count in the browser. The build-time value from+// getStaticProps is unreliable (GitHub's unauthenticated API is rate-limited to+// 60 req/hour/IP, so CI builds often fall back to a placeholder). Fetching per+// visitor keeps the number correct and current on prod. `initial` seeds the+// first paint until the request resolves.+export const useGitHubStars = (initial = 0) => {+ const [stars, setStars] = useState<number>(initial)++ useEffect(() => {+ const updateStars = async () => {+ try {+ const { data } = await axios.get<{ stargazers_count: number }>(+ 'https://api.github.com/repos/janhq/jan'+ )+ if (typeof data.stargazers_count === 'number') {+ setStars(data.stargazers_count)+ }+ } catch (error) {+ if (isAxiosError(error)) {+ console.error('Failed to get GitHub stars:', error)+ }+ }+ }+ updateStars()+ }, [])++ return { stars }+}diff --git a/docs/src/pages/_meta.json b/docs/src/pages/_meta.jsonindex d2d0c927d..38bc12898 100644--- a/docs/src/pages/_meta.json+++ b/docs/src/pages/_meta.json@@ -54,6 +54,7 @@"tokamak": {"type": "page","title": "Tokamak",+ "display": "hidden","theme": {"layout": "raw"}diff --git a/docs/src/pages/index.mdx b/docs/src/pages/index.mdxindex 7e3fd899c..0623e1230 100644--- a/docs/src/pages/index.mdx+++ b/docs/src/pages/index.mdx@@ -29,7 +29,7 @@ export const getStaticProps = async() => {return {props: {ssg: {- stars: repo.stargazers_count || 2000,+ stars: repo.stargazers_count || 44000, // placeholder before the client-side useGitHubStars fetch resolveslastRelease: latestRelease,release: release,lastVersion: latestRelease.tag_name || 'v.0.0.1'diff --git a/docs/src/pages/tokamak.mdx b/docs/src/pages/tokamak.mdxindex 3c0b9a9fb..c1a499122 100644--- a/docs/src/pages/tokamak.mdx+++ b/docs/src/pages/tokamak.mdx@@ -1,6 +1,7 @@---title: Tokamakdescription: Tokamak is the org-level self-hosted AI backend — router, fusion model, governance and audit.+noindex: true---import Tokamak from "@/components/Tokamak"diff --git a/docs/src/styles/general.scss b/docs/src/styles/general.scssindex 397601370..6d9df0d7e 100644--- a/docs/src/styles/general.scss+++ b/docs/src/styles/general.scss@@ -74,6 +74,11 @@footer {background-color: transparent !important;++ // Nextra renders an <hr> divider above the footer content; drop that top stroke.+ hr {+ display: none !important;+ }}.nextra-wrap-container {@@ -95,3 +100,11 @@}}}++// Trim Nextra's footer wrapper bottom padding (its inner div uses nx-py-12 = 3rem)+// so the credit line isn't floating far above the bottom of the page. Kept OUTSIDE+// @layer base on purpose: the selector references Nextra's runtime `.nx-bg-gray-100`+// class (not present in our source), so inside @layer base Tailwind tree-shakes it out.+footer.nx-bg-gray-100 > div {+ padding-bottom: 1rem !important;+}diff --git a/docs/src/utils/format.ts b/docs/src/utils/format.tsindex 11f0b311c..59b44a989 100644--- a/docs/src/utils/format.ts+++ b/docs/src/utils/format.ts@@ -29,7 +29,8 @@ export const totalDownload = (release: []) => {return formatCompactNumber(count)} else {- // return dummy to avoid rate limit API when in dev mode- return formatCompactNumber(9000000)+ // return dummy to avoid rate limit API when in dev mode (kept close to the+ // real prod total so the dev preview isn't misleading)+ return formatCompactNumber(6600000)}}diff --git a/docs/tailwind.config.ts b/docs/tailwind.config.tsindex fcffa75fe..d2fa4dbd5 100644--- a/docs/tailwind.config.ts+++ b/docs/tailwind.config.ts@@ -37,7 +37,20 @@ const config: Config = {'Helvetica','sans-serif',],- serif: ['PPEditorialNew'],+ // Retired the PPEditorialNew serif site-wide; `font-serif` now renders+ // Studio Feixen Sans like everything else. Kept the token so the existing+ // font-serif display headings resolve without touching 19 files.+ serif: [+ 'StudioFeixenSans',+ '-apple-system',+ 'BlinkMacSystemFont',+ 'Segoe UI',+ 'Roboto',+ 'Oxygen-Sans',+ 'Ubuntu,Cantarell',+ 'Helvetica',+ 'sans-serif',+ ],},extend: {},},diff --git a/docs/theme.config.tsx b/docs/theme.config.tsxindex a2a77bb2a..1f08aac68 100644--- a/docs/theme.config.tsx+++ b/docs/theme.config.tsx@@ -40,8 +40,12 @@ const config: DocsThemeConfig = {text: 'Edit this page on GitHub →',},useNextSeoProps() {+ const { frontMatter } = useConfig()+ const noindex = frontMatter?.noindex === truereturn {titleTemplate: '%s - Jan',+ noindex,+ nofollow: noindex,twitter: {cardType: 'summary_large_image',site: '@jandotai',