|
| 1 | +import { SITE_URL, SOCIAL_LINKS } from "@/constants/site-constants"; |
| 2 | +import { getTranslation } from "@i18next-toolkit/nextjs-approuter/server"; |
| 3 | + |
| 4 | +export async function HomepageJsonLd({ locale }: { locale: string }) { |
| 5 | + const { t } = await getTranslation(locale); |
| 6 | + |
| 7 | + const faqItems = [ |
| 8 | + { |
| 9 | + question: t("What is Cutia?"), |
| 10 | + answer: t( |
| 11 | + "Cutia is an AI-native, open-source video editor that runs entirely in your browser. It is a free, privacy-first alternative to CapCut — no installation or sign-up required, just open the website and start editing.", |
| 12 | + ), |
| 13 | + }, |
| 14 | + { |
| 15 | + question: t("Is Cutia free to use?"), |
| 16 | + answer: t( |
| 17 | + "Yes, Cutia is completely free. It is open-source software licensed under a permissive license. There are no hidden fees, subscriptions, or premium tiers.", |
| 18 | + ), |
| 19 | + }, |
| 20 | + { |
| 21 | + question: t("Does Cutia upload my files to a server?"), |
| 22 | + answer: t( |
| 23 | + "All your media files and editing operations stay on your device. However, AI-related features (such as AI image generation) may send data to third-party AI services or Cutia's temporary relay server for processing.", |
| 24 | + ), |
| 25 | + }, |
| 26 | + { |
| 27 | + question: t("What export formats does Cutia support?"), |
| 28 | + answer: t( |
| 29 | + "Cutia supports exporting videos in MP4 and WebM formats with adjustable quality settings (low, medium, high, and very high).", |
| 30 | + ), |
| 31 | + }, |
| 32 | + { |
| 33 | + question: t("Does Cutia work offline?"), |
| 34 | + answer: t( |
| 35 | + "Cutia runs in your browser and requires an initial page load. Once loaded, most editing features work without an active internet connection since all processing is done locally.", |
| 36 | + ), |
| 37 | + }, |
| 38 | + { |
| 39 | + question: t("Is Cutia open source?"), |
| 40 | + answer: t( |
| 41 | + "Yes, Cutia is fully open source and community-driven. You can inspect the source code, contribute, or fork it on GitHub.", |
| 42 | + ), |
| 43 | + }, |
| 44 | + { |
| 45 | + question: t("How is Cutia different from CapCut?"), |
| 46 | + answer: t( |
| 47 | + "Unlike CapCut, Cutia is fully open source and runs entirely in your browser. Your media files stay on your device — only AI features may communicate with external services. Cutia is AI-native with built-in AI agent, image generation, and audio transcription, with no account or subscription required.", |
| 48 | + ), |
| 49 | + }, |
| 50 | + ]; |
| 51 | + |
| 52 | + const webApplicationSchema = { |
| 53 | + "@context": "https://schema.org", |
| 54 | + "@type": "WebApplication", |
| 55 | + name: "Cutia", |
| 56 | + url: SITE_URL, |
| 57 | + description: t( |
| 58 | + "Cutia is an AI-native, open-source video editor that runs entirely in your browser. A free, privacy-first alternative to CapCut with AI-powered editing, multi-track timeline, and MP4/WebM export — no uploads, no tracking.", |
| 59 | + ), |
| 60 | + applicationCategory: "MultimediaApplication", |
| 61 | + operatingSystem: "Any (Browser-based)", |
| 62 | + browserRequirements: t( |
| 63 | + "Requires a modern web browser with WebCodecs support", |
| 64 | + ), |
| 65 | + offers: { |
| 66 | + "@type": "Offer", |
| 67 | + price: "0", |
| 68 | + priceCurrency: "USD", |
| 69 | + }, |
| 70 | + featureList: [ |
| 71 | + t("AI-native video editing workflow"), |
| 72 | + t("AI agent for automated video editing"), |
| 73 | + t("AI image generation"), |
| 74 | + t("Audio transcription and caption generation"), |
| 75 | + t("Multi-track video timeline"), |
| 76 | + t("Browser-based video editing"), |
| 77 | + t("Privacy-first local processing"), |
| 78 | + t("MP4 and WebM export"), |
| 79 | + t("Text and sticker overlays"), |
| 80 | + t("Drag-and-drop media import"), |
| 81 | + ], |
| 82 | + alternativeFor: "CapCut", |
| 83 | + screenshot: `${SITE_URL}/icon.svg`, |
| 84 | + softwareVersion: "1.0", |
| 85 | + author: { |
| 86 | + "@type": "Organization", |
| 87 | + name: "Cutia", |
| 88 | + url: SITE_URL, |
| 89 | + }, |
| 90 | + }; |
| 91 | + |
| 92 | + const organizationSchema = { |
| 93 | + "@context": "https://schema.org", |
| 94 | + "@type": "Organization", |
| 95 | + name: "Cutia", |
| 96 | + url: SITE_URL, |
| 97 | + logo: `${SITE_URL}/logos/cutia/svg/logo.svg`, |
| 98 | + sameAs: [SOCIAL_LINKS.github, "https://x.com/moonrailgun"], |
| 99 | + }; |
| 100 | + |
| 101 | + const faqSchema = { |
| 102 | + "@context": "https://schema.org", |
| 103 | + "@type": "FAQPage", |
| 104 | + mainEntity: faqItems.map((item) => ({ |
| 105 | + "@type": "Question", |
| 106 | + name: item.question, |
| 107 | + acceptedAnswer: { |
| 108 | + "@type": "Answer", |
| 109 | + text: item.answer, |
| 110 | + }, |
| 111 | + })), |
| 112 | + }; |
| 113 | + |
| 114 | + const schemas = [webApplicationSchema, organizationSchema, faqSchema]; |
| 115 | + |
| 116 | + return ( |
| 117 | + <> |
| 118 | + {schemas.map((schema, index) => ( |
| 119 | + // biome-ignore lint: JSON-LD requires dangerouslySetInnerHTML |
| 120 | + <script key={index} type="application/ld+json" dangerouslySetInnerHTML={{ __html: JSON.stringify(schema) }} /> |
| 121 | + ))} |
| 122 | + </> |
| 123 | + ); |
| 124 | +} |
0 commit comments