Branchwell

Jotley / website / src / lib / site-structured-data.ts

1import { COMPARE } from './compare';
2import { FAQS } from './faqs';
3import { IOS_TESTFLIGHT_URL } from './links';
4import { SITE_PAGES, SITE_URL } from './site-metadata';
5
6const PUBLISHER_ID = `${SITE_URL}/#org`;
7const APP_ID = `${SITE_URL}/#app`;
8
9const PUBLISHER = {
10 '@type': 'Organization',
11 '@id': PUBLISHER_ID,
12 name: 'Jotley',
13 url: `${SITE_URL}/`,
14 logo: `${SITE_URL}/jotley-logo.png`,
15};
16
17// Only publish facts shown on the site; no unverified ratings or reviews.
18const APP = {
19 '@type': 'SoftwareApplication',
20 '@id': APP_ID,
21 name: 'Jotley',
22 alternateName: 'Jotley: Live AI Transcription',
23 url: SITE_URL,
24 description:
25 'Jotley is a free voice notes app for Mac, iPhone and iPad. It transcribes as you speak, then summarizes and answers questions about your notes with Apple Intelligence on your device. On Mac it also transcribes system and app audio.',
26 applicationCategory: 'ProductivityApplication',
27 applicationSubCategory: 'Voice notes and transcription',
28 operatingSystem: 'macOS 27 or later, iOS 27 or later, iPadOS 27 or later',
29 isAccessibleForFree: true,
30 downloadUrl: [IOS_TESTFLIGHT_URL, `${SITE_URL}${SITE_PAGES.download.path}`],
31 image: `${SITE_URL}/jotley-icon.png`,
32 featureList: [
33 'Free, unlimited live transcription',
34 'Free, unlimited AI summaries with built-in or custom templates',
35 'Chat with your notes using Apple Intelligence on your device',
36 'Keeps transcribing when your iPhone is locked',
37 'On Mac, transcribes system audio, app audio and your microphone, with no meeting bots',
38 'Markdown note export',
39 'Optional private iCloud sync',
40 ],
41 author: { '@id': PUBLISHER_ID },
42 publisher: { '@id': PUBLISHER_ID },
43 sameAs: [IOS_TESTFLIGHT_URL],
44};
45
46const WEBSITE = {
47 '@type': 'WebSite',
48 '@id': `${SITE_URL}/#website`,
49 name: 'Jotley',
50 url: SITE_URL,
51 description: SITE_PAGES.home.description,
52 inLanguage: 'en-US',
53 publisher: { '@id': PUBLISHER_ID },
54};
55
56export const SITE_STRUCTURED_DATA = {
57 '@context': 'https://schema.org',
58 '@graph': [PUBLISHER, WEBSITE, APP],
59};
60
61// The support page: the same questions and answers the FAQ shows.
62export const SUPPORT_STRUCTURED_DATA = {
63 '@context': 'https://schema.org',
64 '@graph': [
65 {
66 '@type': 'FAQPage',
67 '@id': `${SITE_URL}${SITE_PAGES.support.path}#faq`,
68 url: `${SITE_URL}${SITE_PAGES.support.path}`,
69 about: { '@id': APP_ID },
70 mainEntity: FAQS.map(({ q, a }) => ({
71 '@type': 'Question',
72 name: q,
73 acceptedAnswer: { '@type': 'Answer', text: a },
74 })),
75 },
76 PUBLISHER,
77 APP,
78 ],
79};
80
81// The compare page: the same questions and answers the page shows.
82export const COMPARE_STRUCTURED_DATA = {
83 '@context': 'https://schema.org',
84 '@graph': [
85 {
86 '@type': 'FAQPage',
87 '@id': `${SITE_URL}${SITE_PAGES.compare.path}#faq`,
88 url: `${SITE_URL}${SITE_PAGES.compare.path}`,
89 about: { '@id': APP_ID },
90 mainEntity: COMPARE.faqs.map(({ q, a }) => ({
91 '@type': 'Question',
92 name: q,
93 acceptedAnswer: { '@type': 'Answer', text: a },
94 })),
95 },
96 PUBLISHER,
97 APP,
98 ],
99};
100
101export function jsonLd(data: object) {
102 return { __html: JSON.stringify(data).replace(/</g, '\\u003c') };
103}