Branchwell

Jotley / website / src / lib / site-metadata.ts

1import type { Metadata } from 'next';
2
3export const SITE_URL = 'https://jotley.ai';
4export const OG_IMAGE_PATH = '/og/jotley-v2.png';
5const imageOrigin = (process.env.VERCEL_ENV ?? process.env.CLOUDFLARE_DEPLOYMENT_ENV) === 'preview' && process.env.VERCEL_URL
6 ? `https://${process.env.VERCEL_URL}`
7 : SITE_URL;
8
9export const SITE_PAGES = {
10 home: {
11 path: '/',
12 title: 'Jotley — Free AI Voice Notes for Mac, iPhone & iPad',
13 description: 'Free voice notes and summaries with on-device Apple Intelligence. Record, summarize and organize your notes on Mac, iPhone and iPad.',
14 },
15 download: {
16 path: '/download',
17 title: 'Download Jotley for Mac — Free App & Installation Guide',
18 description: 'Download the free, signed and notarized Jotley Mac app. Follow the installation guide to start transcribing and summarizing with Apple Intelligence.',
19 },
20 mcp: {
21 path: '/mcp',
22 title: 'Jotley MCP for Mac — Connect Claude Code & Codex',
23 description: 'Connect the Claude Code and Codex Mac apps to Jotley. Read and edit notes, manage tags and folders, and use custom summary templates with access you control.',
24 },
25 support: {
26 path: '/help',
27 title: 'Jotley Help — FAQs & Guides',
28 description: 'Find answers about Jotley, on-device Apple Intelligence, live transcription and iCloud sync. Find Jotley tutorials and troubleshooting guides.',
29 },
30 compare: {
31 path: '/compare',
32 title: "Jotley compared with Otter and Whisper Notes",
33 description: "How Jotley, Otter and Whisper Notes differ: three apps that turn speech into notes, compared on devices, where transcription happens, languages and agent access.",
34 },
35 tutorials: {
36 path: '/tutorials',
37 title: 'Jotley Tutorials — iPhone, iPad & Mac Video Guides',
38 description: 'Narrated video tutorials for Jotley on iPhone, iPad and Mac: capture a spoken idea, summarize it, ask your notes, and organize, find and share them.',
39 },
40 privacy: {
41 path: '/privacy',
42 title: 'Jotley Privacy Policy — Your Notes, On Your Device',
43 description: 'How Jotley handles on-device AI, optional iCloud sync, Mac MCP agent access and website analytics. Learn what connected agents can read and change.',
44 },
45 research: {
46 path: '/research',
47 title: 'Research behind Jotley',
48 description: 'Public research on memory, note taking and dictation, summarized in plain words with links to every source.',
49 },
50 appNotices: {
51 path: '/app-notices',
52 title: 'Jotley App Notices',
53 description: 'Jotley software license, connected services, and transcript accuracy notices.',
54 },
55} as const;
56
57export function pageMetadata(page: keyof typeof SITE_PAGES): Metadata {
58 const { path, title, description } = SITE_PAGES[page];
59 return {
60 title,
61 description,
62 robots: (process.env.VERCEL_ENV ?? process.env.CLOUDFLARE_DEPLOYMENT_ENV) === 'preview'
63 ? { index: false, follow: false }
64 : { index: true, follow: true, googleBot: { 'max-image-preview': 'large' } },
65 alternates: { canonical: new URL(path, SITE_URL).href },
66 openGraph: {
67 title,
68 description,
69 url: new URL(path, SITE_URL).href,
70 siteName: 'Jotley',
71 locale: 'en_US',
72 type: 'website',
73 images: [{
74 url: `${imageOrigin}${OG_IMAGE_PATH}`,
75 width: 1200,
76 height: 630,
77 type: 'image/png',
78 alt: 'Jotley — Every word, captured and understood. Free AI voice notes for Mac, iPhone and iPad, powered by on-device Apple Intelligence.',
79 }],
80 },
81 twitter: {
82 card: 'summary_large_image',
83 title,
84 description,
85 images: [{
86 url: `${imageOrigin}${OG_IMAGE_PATH}`,
87 alt: 'Jotley — Free AI voice notes, powered by on-device Apple Intelligence.',
88 }],
89 },
90 };
91}