Free & Open-Source Invoice Generator - No Sign-Up, No Ads, Instant PDF Export, 100% In-Browser, and Fully Customizable Templates.
TypeScript fintechinvoiceinvoice-generatorinvoice-pdfinvoice-templateinvoicesnextjsopen-sourcequotesreactreact-pdf-rendererself-hostedshadcn-uitailwindcsstypescript
Refactor SEO implementation and enhance JSON-LD structure (#244)
Vlad Sazonau4347363f4798
diff --git a/README.md b/README.mdindex 06d0a45..8c962e5 100644--- a/README.md+++ b/README.md@@ -6,7 +6,7 @@<h1>EasyInvoicePDF</h1><h3>Free & Open-Source Invoice Generator</h3><p>Create professional invoices instantly in your browser with <strong>Live Preview</strong>, <strong>Instant PDF Export</strong>, <strong>Multiple Customizable Templates</strong> (including a Stripe-style design). <strong>No Ads</strong>. <strong>No Sign-Up Required</strong>.</p>- <p><a href="https://easyinvoicepdf.com/?template=stripe&ref=github"><strong>Start Invoicing</strong></a></p>+ <p><a href="https://easyinvoicepdf.com"><strong>Start Invoicing</strong></a></p><p><a href="https://easyinvoicepdf.com/en/about?ref=github">About us</a>·@@ -25,7 +25,7 @@</div>- <a href="https://easyinvoicepdf.com/?template=stripe&ref=github">+ <a href="https://easyinvoicepdf.com/?template=stripe"><!-- source: .github/screenshots/stripe-template.png --><img width="1920" height="1536" alt="EasyInvoicePDF Product Screenshot" src="https://github.com/user-attachments/assets/6f0e2156-24e0-4f8b-b8f1-1d2bf5ac157a" /></a>@@ -37,19 +37,16 @@## ✨ Key Features of EasyInvoicePDF:-- 📺 **Live PDF Preview**: See changes in real-time as you type-- ⭐ **No Sign-Up Required**: Start creating invoices immediately without any registration-- 📄 **Instant PDF**: One-click download ready for printing or sending-- ✏️ **Custom Logo Upload**: Add your company branding by uploading a logo image that appears on the invoice-- ❌ **No Ads**: Enjoy a completely ad-free experience-- 🔗 **Shareable Links**: Send invoices directly to clients without attachments-- 🎨 **Multiple Templates**: Including modern **Stripe-style design**-- 🌍 **Multi-Language & Currency**: Support for 10+ languages and 120+ currencies-- 🖥️ **Browser Only**: No server uploads, your data stays private-- 💰 **Flexible Tax Support**: VAT, GST, Sales Tax, and custom tax formats with automatic calculations-- 📱 **Mobile-Friendly**: Create invoices on the go from any device-- 🏞️ **QR Code Support**: Add payment QR codes with any invoice-related information (payment links, UPI, contact details, custom data)-- 📑 **Multi-Page PDFs**: Seamless multi-page support with automatic pagination and page breaks+- 📺 **Instant PDF generation** with live preview+- 🚀 **No sign-up required** - start immediately+- 🎉 **Ad-free experience**+- 👤 **Saved profiles** - reuse seller & buyer details+- 🎨 **Multiple fully customizable templates** including modern Stripe-style design+- 🧾 **Smart invoicing tools** - VAT, GST, sales tax & custom tax support with automatic calculations+- 🏷️ **Logo support** for custom branding+- 📱 **Mobile-friendly** - works on any device+- 🌍 **Multi-language & multi-currency** (10+ languages, 120+ currencies)+- 🔒 **Privacy-first** - browser-only, no server uploads<h4>Learn more about <a href="https://easyinvoicepdf.com/en/about#features">features</a>.</h4>@@ -187,6 +184,8 @@ https://github.com/user-attachments/assets/23bb5448-c9fb-4ff2-98f3-0b80d75b7683Watch a quick demo of EasyInvoicePDF in action to see how easy it is to create professional invoices in seconds. The video demonstrates key features like **Live Preview**, **Instant PDF Download**, and **Customization Options**.+More demo videos on [YouTube](https://www.youtube.com/@vladsazon).+https://github.com/user-attachments/assets/d46c6e4e-b78a-4aa1-ab44-d20d6485b682## 👨💻 Made By@@ -195,6 +194,7 @@ Built by [Vlad Sazonau](https://x.com/vladsazonau)- 🐦 Twitter: [@vladsazonau](https://twitter.com/vladsazonau)- 💼 LinkedIn: [Vlad Sazonau](https://www.linkedin.com/in/vlad-sazonau/)+- ▶️ YouTube: [@vladsazon](https://www.youtube.com/@vladsazon) (demo videos)- 🌐 Website: [vladsazon.com](https://vladsazon.com)## ❤️ Support the Projectdiff --git a/src/app/(app)/home-json-ld.tsx b/src/app/(app)/home-json-ld.tsxnew file mode 100644index 0000000..84857b3--- /dev/null+++ b/src/app/(app)/home-json-ld.tsx@@ -0,0 +1,41 @@+import { PROD_WEBSITE_URL } from "@/config";+import type { Graph } from "schema-dts";++import { JsonLdScript } from "@/lib/seo/render-json-ld";+import { JSON_LD_IDS } from "@/lib/seo/json-ld-ids";+import {+ buildFullWebSite,+ buildWebApplication,+ HOME_PAGE_DESCRIPTION,+ SITE_NAME,+} from "@/lib/seo/site-entities";++export function buildHomeJsonLdGraph(): Graph {+ const pageUrl = `${PROD_WEBSITE_URL}/`;++ return {+ "@context": "https://schema.org",+ "@graph": [+ buildFullWebSite(),+ buildWebApplication(),+ {+ "@type": "WebPage",+ "@id": `${pageUrl}#webpage`,+ url: pageUrl,+ name: SITE_NAME,+ description: HOME_PAGE_DESCRIPTION,+ inLanguage: "en",+ isPartOf: {+ "@id": JSON_LD_IDS.website,+ },+ mainEntity: {+ "@id": JSON_LD_IDS.app,+ },+ },+ ],+ };+}++export function HomeJsonLd() {+ return <JsonLdScript id="json-ld-home" data={buildHomeJsonLdGraph()} />;+}diff --git a/src/app/(app)/page.tsx b/src/app/(app)/page.tsxindex 5b1ef12..ae79bbe 100644--- a/src/app/(app)/page.tsx+++ b/src/app/(app)/page.tsx@@ -4,6 +4,8 @@ import { APP_URL, STATIC_ASSETS_URL, TWITTER_CREATOR } from "@/config";import { fetchGithubStars } from "@/actions/fetch-github-stars";import { getLatestChangelogSummary } from "@/app/changelog/utils";import { CTAToastProvider } from "./contexts/cta-toast-context";+import { HomeJsonLd } from "./home-json-ld";+import { computeIndexingFlags } from "@/lib/seo/indexing-utils";import * as Sentry from "@sentry/nextjs";const APP_PAGE_DESCRIPTION =@@ -131,19 +133,9 @@ export async function generateMetadata({}: {searchParams: { [key: string]: string | string[] | undefined };}): Promise<Metadata> {- const hasShareableData = Boolean(searchParams?.data);+ const { shouldIndex } = computeIndexingFlags(searchParams);const isStripeTemplate = Boolean(searchParams?.template === "stripe");- const isProd =- process.env.VERCEL_ENV === "production" &&- `https://${process.env.VERCEL_PROJECT_PRODUCTION_URL}` ===- "https://easyinvoicepdf.com";-- /**- * Only allow indexing on production and when there's no shareable data- */- const shouldIndex = isProd && !hasShareableData;-const templateMetadata = buildTemplateMetadata(isStripeTemplate ? STRIPE_TEMPLATE_META : DEFAULT_TEMPLATE_META,);@@ -156,7 +148,13 @@ export async function generateMetadata({};}-export default async function AppPage() {+export default async function AppPage({+ searchParams,+}: {+ searchParams: { [key: string]: string | string[] | undefined };+}) {+ const { shouldIndex } = computeIndexingFlags(searchParams);+const [githubStarsCount, latestChangelog] = await Promise.all([fetchGithubStars(),getLatestChangelogSummary().catch((error) => {@@ -175,6 +173,7 @@ export default async function AppPage() {return (<CTAToastProvider>+ {shouldIndex ? <HomeJsonLd /> : null}<AppPageClientgithubStarsCount={githubStarsCount}latestChangelog={latestChangelog}diff --git a/src/app/(seo-landings)/build-seo-landing-json-ld.ts b/src/app/(seo-landings)/build-seo-landing-json-ld.tsindex f745ad1..3930b23 100644--- a/src/app/(seo-landings)/build-seo-landing-json-ld.ts+++ b/src/app/(seo-landings)/build-seo-landing-json-ld.ts@@ -1,14 +1,22 @@-import { APP_URL } from "@/config";+import { PROD_WEBSITE_URL } from "@/config";import type { Graph } from "schema-dts";+import { buildBreadcrumbList } from "@/lib/seo/breadcrumb";+import {+ JSON_LD_IDS,+ pageBreadcrumbId,+ pageFaqId,+ pageWebPageId,+} from "@/lib/seo/json-ld-ids";+import type { SeoLandingDefinition } from "./seo-landing-definitions";export function buildSeoLandingJsonLd(definition: SeoLandingDefinition,- baseUrl = APP_URL,+ baseUrl = PROD_WEBSITE_URL,): Graph {const pageUrl = `${baseUrl}/${definition.slug}` as const;- const faqUrl = `${pageUrl}#faq` as const;+ const faqUrl = pageFaqId(pageUrl);const faqEntities = definition.faq.map((item) => ({"@type": "Question" as const,@@ -24,12 +32,19 @@ export function buildSeoLandingJsonLd("@graph": [{"@type": "WebPage",- "@id": pageUrl,+ "@id": pageWebPageId(pageUrl),url: pageUrl,name: definition.metadata.title,description: definition.metadata.description,+ inLanguage: "en",+ isPartOf: {+ "@id": JSON_LD_IDS.website,+ },+ breadcrumb: {+ "@id": pageBreadcrumbId(pageUrl),+ },mainEntity: {- "@id": pageUrl,+ "@id": faqUrl,},},{@@ -37,6 +52,10 @@ export function buildSeoLandingJsonLd("@id": faqUrl,mainEntity: faqEntities,},+ buildBreadcrumbList(pageUrl, [+ { name: "Home", item: `${baseUrl}/` },+ { name: definition.metadata.title },+ ]),],};}diff --git a/src/app/(seo-landings)/components/seo-landing-json-ld.tsx b/src/app/(seo-landings)/components/seo-landing-json-ld.tsxindex 07f0660..9f32d94 100644--- a/src/app/(seo-landings)/components/seo-landing-json-ld.tsx+++ b/src/app/(seo-landings)/components/seo-landing-json-ld.tsx@@ -1,5 +1,6 @@import { buildSeoLandingJsonLd } from "../build-seo-landing-json-ld";import type { SeoLandingDefinition } from "../seo-landing-definitions";+import { JsonLdScript } from "@/lib/seo/render-json-ld";interface SeoLandingJsonLdProps {definition: SeoLandingDefinition;@@ -16,10 +17,6 @@ export function SeoLandingJsonLd({ definition }: SeoLandingJsonLdProps) {const graph = buildSeoLandingJsonLd(definition);return (- <script- id={`json-ld-seo-landing-${definition.slug}`}- type="application/ld+json"- dangerouslySetInnerHTML={{ __html: JSON.stringify(graph) }}- />+ <JsonLdScript id={`json-ld-seo-landing-${definition.slug}`} data={graph} />);}diff --git a/src/app/[locale]/about/__tests__/about-json-ld-graph.test.ts b/src/app/[locale]/about/__tests__/about-json-ld-graph.test.tsindex 612f2ef..5f63f6b 100644--- a/src/app/[locale]/about/__tests__/about-json-ld-graph.test.ts+++ b/src/app/[locale]/about/__tests__/about-json-ld-graph.test.ts@@ -16,14 +16,18 @@ describe("buildAboutJsonLdGraph", () => {const webPage = parsed["@graph"][0];const faqPage = parsed["@graph"][1];+ const breadcrumb = parsed["@graph"][2];expect(webPage).toMatchObject({"@type": "WebPage",- "@id": "https://easyinvoicepdf.com/pl/about",+ "@id": "https://easyinvoicepdf.com/pl/about#webpage",url: "https://easyinvoicepdf.com/pl/about",name: plMessages.Metadata.about.title,description: plMessages.Metadata.about.description,- mainEntity: { "@id": "https://easyinvoicepdf.com/pl/about" },+ inLanguage: "pl-PL",+ isPartOf: { "@id": "https://easyinvoicepdf.com/#website" },+ breadcrumb: { "@id": "https://easyinvoicepdf.com/pl/about#breadcrumb" },+ mainEntity: { "@id": "https://easyinvoicepdf.com/pl/about#faq" },});expect(faqPage).toMatchObject({@@ -31,6 +35,11 @@ describe("buildAboutJsonLdGraph", () => {"@id": "https://easyinvoicepdf.com/pl/about#faq",});+ expect(breadcrumb).toMatchObject({+ "@type": "BreadcrumbList",+ "@id": "https://easyinvoicepdf.com/pl/about#breadcrumb",+ });+const mainEntity = faqPage.mainEntity as { name: string }[];expect(Array.isArray(mainEntity)).toBe(true);expect(mainEntity.length).toBe(6);@@ -52,11 +61,12 @@ describe("buildAboutJsonLdGraph", () => {expect(webPage).toMatchObject({"@type": "WebPage",- "@id": "https://easyinvoicepdf.com/en/about",+ "@id": "https://easyinvoicepdf.com/en/about#webpage",url: "https://easyinvoicepdf.com/en/about",name: enMessages.Metadata.about.title,description: enMessages.Metadata.about.description,- mainEntity: { "@id": "https://easyinvoicepdf.com/en/about" },+ inLanguage: "en-US",+ mainEntity: { "@id": "https://easyinvoicepdf.com/en/about#faq" },});expect(faqPage).toMatchObject({diff --git a/src/app/[locale]/about/about-json-ld-graph.ts b/src/app/[locale]/about/about-json-ld-graph.tsindex 3e9a524..94589c4 100644--- a/src/app/[locale]/about/about-json-ld-graph.ts+++ b/src/app/[locale]/about/about-json-ld-graph.ts@@ -1,26 +1,33 @@-import { APP_URL } from "@/config";+import { PROD_WEBSITE_URL } from "@/config";import type { Locale } from "next-intl";import type Messages from "../../../../messages/en.json";import type { Graph } from "schema-dts";+import { buildBreadcrumbList } from "@/lib/seo/breadcrumb";+import {+ JSON_LD_IDS,+ pageBreadcrumbId,+ pageFaqId,+ pageWebPageId,+} from "@/lib/seo/json-ld-ids";+import { ABOUT_FAQ_ITEM_KEYS } from "./about-faq-item-keys";+import { toSchemaLanguage } from "@/lib/seo/locale-utils";+/*** Builds a JSON-LD graph for the about page with schema.org structured data.- * Includes WebPage and FAQPage schemas with FAQ questions and answers.- *- * @param messages - Translated message content containing FAQ items and metadata- * @param locale - The current locale (e.g., 'en', 'pl')- * @param baseUrl - Base URL for constructing page URLs (defaults to APP_URL)- * @returns A Graph object containing WebPage and FAQPage schema definitions+ * Includes WebPage, FAQPage, and BreadcrumbList schemas.*/export function buildAboutJsonLdGraph(messages: typeof Messages,locale: Locale,- baseUrl: string = APP_URL,+ baseUrl: string = PROD_WEBSITE_URL,): Graph {const pageUrl = `${baseUrl}/${locale}/about`;- const faqUrl = `${pageUrl}#faq`;+ const faqUrl = pageFaqId(pageUrl);+ const homeLabel = "Home";+ const aboutLabel = messages.Metadata.about.title;const faqEntities = ABOUT_FAQ_ITEM_KEYS.map((key) => {const item = messages.FAQ.items[key];@@ -44,12 +51,19 @@ export function buildAboutJsonLdGraph("@graph": [{"@type": "WebPage",- "@id": pageUrl,+ "@id": pageWebPageId(pageUrl),url: pageUrl,name: messages.Metadata.about.title,description: messages.Metadata.about.description,+ inLanguage: toSchemaLanguage(locale),+ isPartOf: {+ "@id": JSON_LD_IDS.website,+ },+ breadcrumb: {+ "@id": pageBreadcrumbId(pageUrl),+ },mainEntity: {- "@id": pageUrl,+ "@id": faqUrl,},},{@@ -57,6 +71,10 @@ export function buildAboutJsonLdGraph("@id": faqUrl,mainEntity: faqEntities,},+ buildBreadcrumbList(pageUrl, [+ { name: homeLabel, item: `${baseUrl}/` },+ { name: aboutLabel },+ ]),],};}diff --git a/src/app/[locale]/about/about-json-ld.tsx b/src/app/[locale]/about/about-json-ld.tsxindex 5812efc..48dedd7 100644--- a/src/app/[locale]/about/about-json-ld.tsx+++ b/src/app/[locale]/about/about-json-ld.tsx@@ -1,6 +1,7 @@import type Messages from "../../../../messages/en.json";import type { Locale } from "next-intl";import { buildAboutJsonLdGraph } from "./about-json-ld-graph";+import { JsonLdScript } from "@/lib/seo/render-json-ld";/*** Renders a JSON-LD script tag for the about page with structured schema.org data.@@ -16,11 +17,5 @@ export async function AboutJsonLd({ locale }: { locale: Locale }) {const graph = buildAboutJsonLdGraph(messages, locale);- return (- <script- id="json-ld-about"- type="application/ld+json"- dangerouslySetInnerHTML={{ __html: JSON.stringify(graph) }}- />- );+ return <JsonLdScript id="json-ld-about" data={graph} />;}diff --git a/src/app/[locale]/about/layout.tsx b/src/app/[locale]/about/layout.tsxindex 3a0677b..22e44df 100644--- a/src/app/[locale]/about/layout.tsx+++ b/src/app/[locale]/about/layout.tsx@@ -7,18 +7,7 @@ import type EnMessages from "../../../../messages/en.json";import { APP_URL, STATIC_ASSETS_URL, TWITTER_CREATOR } from "@/config";import { AboutJsonLd } from "./about-json-ld";-const OPEN_GRAPH_LOCALE_BY_LOCALE = {- en: "en_US",- pl: "pl_PL",- de: "de_DE",- es: "es_ES",- pt: "pt_PT",- ru: "ru_RU",- uk: "uk_UA",- fr: "fr_FR",- it: "it_IT",- nl: "nl_NL",-} as const satisfies Record<Locale, string>;+import { OPEN_GRAPH_LOCALE_BY_LOCALE } from "@/lib/seo/locale-utils";// Add metadata to make sure search engines can index the pageexport async function generateMetadata({diff --git a/src/app/changelog/[slug]/page.tsx b/src/app/changelog/[slug]/page.tsxindex 1e26002..ff6279b 100644--- a/src/app/changelog/[slug]/page.tsx+++ b/src/app/changelog/[slug]/page.tsx@@ -17,6 +17,7 @@ import Link from "next/link";import { notFound } from "next/navigation";import { Suspense } from "react";import { ChangelogAuthorByline } from "../components/changelog-author-byline";+import { ChangelogPostJsonLd } from "../changelog-post-json-ld";import { ChangelogVersionBadgeLink } from "../components/changelog-version-badge-link";import { DateTime } from "../components/date-time";@@ -122,198 +123,201 @@ export default async function ChangelogEntryPage({]);return (- <div className="min-h-screen bg-white dark:bg-gray-900">- <div className="mx-auto max-w-4xl px-4 py-16 sm:px-6 lg:px-8">- {/* Back to changelog link */}- <div className="mb-8">- <Link- href="/changelog"- className="group inline-flex items-center text-start text-base font-medium text-slate-700 dark:text-gray-400"- >- <ArrowLeftIcon className="inline-block size-4 transition-transform group-hover:-translate-x-0.5" />- <span className="ml-1">Back to All Posts</span>- </Link>- </div>-- {/* Entry header */}- <article className="prose prose-gray max-w-none dark:prose-invert">- <div className="not-prose mb-4 sm:mb-8">- <div className="mb-4 flex items-center gap-4 text-sm text-gray-600 dark:text-gray-400">- <DateTime dateTime={entry.metadata.date}>- {formattedDate}- </DateTime>- </div>- <div className="mb-4 flex items-center gap-3">- <h1 className="text-pretty text-3xl font-bold text-gray-900 dark:text-gray-100 sm:text-4xl">- {entry.metadata.title || `Update ${formattedDate}`}- </h1>- </div>- {entry.metadata.version ? (- <div className="mt-2 flex items-center gap-2">- <ChangelogVersionBadgeLink version={entry.metadata.version} />- </div>- ) : null}+ <>+ <ChangelogPostJsonLd entry={entry} />+ <div className="min-h-screen bg-white dark:bg-gray-900">+ <div className="mx-auto max-w-4xl px-4 py-16 sm:px-6 lg:px-8">+ {/* Back to changelog link */}+ <div className="mb-8">+ <Link+ href="/changelog"+ className="group inline-flex items-center text-start text-base font-medium text-slate-700 dark:text-gray-400"+ >+ <ArrowLeftIcon className="inline-block size-4 transition-transform group-hover:-translate-x-0.5" />+ <span className="ml-1">Back to All Posts</span>+ </Link></div>- {/* Author and social sharing */}- <div className="my-4 flex flex-col justify-between sm:my-8 sm:flex-row sm:items-center">- <div className="flex items-center gap-x-8">- <ChangelogAuthorByline />+ {/* Entry header */}+ <article className="prose prose-gray max-w-none dark:prose-invert">+ <div className="not-prose mb-4 sm:mb-8">+ <div className="mb-4 flex items-center gap-4 text-sm text-gray-600 dark:text-gray-400">+ <DateTime dateTime={entry.metadata.date}>+ {formattedDate}+ </DateTime>+ </div>+ <div className="mb-4 flex items-center gap-3">+ <h1 className="text-pretty text-3xl font-bold text-gray-900 dark:text-gray-100 sm:text-4xl">+ {entry.metadata.title || `Update ${formattedDate}`}+ </h1>+ </div>+ {entry.metadata.version ? (+ <div className="mt-2 flex items-center gap-2">+ <ChangelogVersionBadgeLink version={entry.metadata.version} />+ </div>+ ) : null}</div>- <div className="flex items-center gap-x-6">- {/* Twitter/X share */}- <a- target="_blank"- rel="noopener noreferrer"- className="transition-all hover:scale-110"- href={`https://twitter.com/intent/tweet?text=${encodeURIComponent(- `EasyInvoicePDF: ${entry.metadata.title || `Update ${formattedDate}`}`,- )}&url=${encodeURIComponent(`${APP_URL}/changelog/${slug}`)}`}- >- <svg- width="300"- height="300"- viewBox="0 0 300 300"- version="1.1"- xmlns="http://www.w3.org/2000/svg"- className="size-5 p-px text-black dark:text-white"++ {/* Author and social sharing */}+ <div className="my-4 flex flex-col justify-between sm:my-8 sm:flex-row sm:items-center">+ <div className="flex items-center gap-x-8">+ <ChangelogAuthorByline />+ </div>+ <div className="flex items-center gap-x-6">+ {/* Twitter/X share */}+ <a+ target="_blank"+ rel="noopener noreferrer"+ className="transition-all hover:scale-110"+ href={`https://twitter.com/intent/tweet?text=${encodeURIComponent(+ `EasyInvoicePDF: ${entry.metadata.title || `Update ${formattedDate}`}`,+ )}&url=${encodeURIComponent(`${APP_URL}/changelog/${slug}`)}`}>- <path- stroke="currentColor"- d="M178.57 127.15 290.27 0h-26.46l-97.03 110.38L89.34 0H0l117.13 166.93L0 300.25h26.46l102.4-116.59 81.8 116.59h89.34M36.01 19.54H76.66l187.13 262.13h-40.66"- />- </svg>- </a>- {/* LinkedIn share */}- <a- target="_blank"- rel="noopener noreferrer"- className="transition-all hover:scale-110"- href={`http://www.linkedin.com/shareArticle?mini=true&url=${encodeURIComponent(- `${APP_URL}/changelog/${slug}`,- )}&title=${encodeURIComponent(`EasyInvoicePDF: ${entry.metadata.title || `Update ${formattedDate}`}`)}`}- >- <svg- xmlns="http://www.w3.org/2000/svg"- width="24"- height="24"- viewBox="0 0 24 24"- className="size-6 text-[#0077b5] dark:text-[#0077b5]"+ <svg+ width="300"+ height="300"+ viewBox="0 0 300 300"+ version="1.1"+ xmlns="http://www.w3.org/2000/svg"+ className="size-5 p-px text-black dark:text-white"+ >+ <path+ stroke="currentColor"+ d="M178.57 127.15 290.27 0h-26.46l-97.03 110.38L89.34 0H0l117.13 166.93L0 300.25h26.46l102.4-116.59 81.8 116.59h89.34M36.01 19.54H76.66l187.13 262.13h-40.66"+ />+ </svg>+ </a>+ {/* LinkedIn share */}+ <a+ target="_blank"+ rel="noopener noreferrer"+ className="transition-all hover:scale-110"+ href={`http://www.linkedin.com/shareArticle?mini=true&url=${encodeURIComponent(+ `${APP_URL}/changelog/${slug}`,+ )}&title=${encodeURIComponent(`EasyInvoicePDF: ${entry.metadata.title || `Update ${formattedDate}`}`)}`}>- <path- fill="currentColor"- d="M19 0h-14c-2.761 0-5 2.239-5 5v14c0 2.761 2.239 5 5 5h14c2.762 0 5-2.239 5-5v-14c0-2.761-2.238-5-5-5zm-11 19h-3v-11h3v11zm-1.5-12.268c-.966 0-1.75-.79-1.75-1.764s.784-1.764 1.75-1.764 1.75.79 1.75 1.764-.783 1.764-1.75 1.764zm13.5 12.268h-3v-5.604c0-3.368-4-3.113-4 0v5.604h-3v-11h3v1.765c1.396-2.586 7-2.777 7 2.476v6.759z"- />- </svg>- </a>- {/* Facebook share */}- <a- target="_blank"- rel="noopener noreferrer"- className="transition-all hover:scale-110"- href={`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(- `${APP_URL}/changelog/${slug}`,- )}&title=${encodeURIComponent(`EasyInvoicePDF: ${entry.metadata.title || `Update ${formattedDate}`}`)}`}- >- <svg- xmlns="http://www.w3.org/2000/svg"- width="1365.12"- height="1365.12"- viewBox="0 0 14222 14222"- className="size-6 text-[#1877f2] dark:text-[#1877f2]"+ <svg+ xmlns="http://www.w3.org/2000/svg"+ width="24"+ height="24"+ viewBox="0 0 24 24"+ className="size-6 text-[#0077b5] dark:text-[#0077b5]"+ >+ <path+ fill="currentColor"+ d="M19 0h-14c-2.761 0-5 2.239-5 5v14c0 2.761 2.239 5 5 5h14c2.762 0 5-2.239 5-5v-14c0-2.761-2.238-5-5-5zm-11 19h-3v-11h3v11zm-1.5-12.268c-.966 0-1.75-.79-1.75-1.764s.784-1.764 1.75-1.764 1.75.79 1.75 1.764-.783 1.764-1.75 1.764zm13.5 12.268h-3v-5.604c0-3.368-4-3.113-4 0v5.604h-3v-11h3v1.765c1.396-2.586 7-2.777 7 2.476v6.759z"+ />+ </svg>+ </a>+ {/* Facebook share */}+ <a+ target="_blank"+ rel="noopener noreferrer"+ className="transition-all hover:scale-110"+ href={`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(+ `${APP_URL}/changelog/${slug}`,+ )}&title=${encodeURIComponent(`EasyInvoicePDF: ${entry.metadata.title || `Update ${formattedDate}`}`)}`}>- <circle cx="7111" cy="7112" r="7111" fill="currentColor" />- <path- d="M9879 9168l315-2056H8222V5778c0-562 275-1111 1159-1111h897V2917s-814-139-1592-139c-1624 0-2686 984-2686 2767v1567H4194v2056h1806v4969c362 57 733 86 1111 86s749-30 1111-86V9168z"- fill="white"- />- </svg>- </a>- {/* Hacker News share */}- <a- target="_blank"- rel="noopener noreferrer"- className="transition-all hover:scale-110"- href={`https://news.ycombinator.com/submitlink?u=${encodeURIComponent(- `${APP_URL}/changelog/${slug}`,- )}&t=${encodeURIComponent(`EasyInvoicePDF: ${entry.metadata.title || `Update ${formattedDate}`}`)}`}- >- <svg- xmlns="http://www.w3.org/2000/svg"- width="24"- height="24"- viewBox="0 0 24 24"- className="size-6 text-[#ff6600] dark:text-[#ff6600]"+ <svg+ xmlns="http://www.w3.org/2000/svg"+ width="1365.12"+ height="1365.12"+ viewBox="0 0 14222 14222"+ className="size-6 text-[#1877f2] dark:text-[#1877f2]"+ >+ <circle cx="7111" cy="7112" r="7111" fill="currentColor" />+ <path+ d="M9879 9168l315-2056H8222V5778c0-562 275-1111 1159-1111h897V2917s-814-139-1592-139c-1624 0-2686 984-2686 2767v1567H4194v2056h1806v4969c362 57 733 86 1111 86s749-30 1111-86V9168z"+ fill="white"+ />+ </svg>+ </a>+ {/* Hacker News share */}+ <a+ target="_blank"+ rel="noopener noreferrer"+ className="transition-all hover:scale-110"+ href={`https://news.ycombinator.com/submitlink?u=${encodeURIComponent(+ `${APP_URL}/changelog/${slug}`,+ )}&t=${encodeURIComponent(`EasyInvoicePDF: ${entry.metadata.title || `Update ${formattedDate}`}`)}`}>- <path- fill="currentColor"- d="M0 24V0h24v24H0zM6.951 5.896l4.112 7.708v5.064h1.583v-4.972l4.148-7.799h-1.749l-2.457 4.875c-.372.745-.688 1.434-.688 1.434s-.297-.708-.651-1.434L8.831 5.896h-1.88z"- />- </svg>- </a>+ <svg+ xmlns="http://www.w3.org/2000/svg"+ width="24"+ height="24"+ viewBox="0 0 24 24"+ className="size-6 text-[#ff6600] dark:text-[#ff6600]"+ >+ <path+ fill="currentColor"+ d="M0 24V0h24v24H0zM6.951 5.896l4.112 7.708v5.064h1.583v-4.972l4.148-7.799h-1.749l-2.457 4.875c-.372.745-.688 1.434-.688 1.434s-.297-.708-.651-1.434L8.831 5.896h-1.88z"+ />+ </svg>+ </a>+ </div></div>- </div>- {/* Entry content */}- <div className="prose-headings:mt-8 prose-headings:font-semibold prose-headings:text-black prose-h1:text-3xl prose-h2:text-2xl prose-h3:text-xl prose-h4:text-lg prose-h5:text-base prose-h6:text-sm prose-p:text-gray-600 prose-blockquote:border-l-blue-500 prose-strong:text-gray-900 prose-code:rounded prose-code:bg-gray-100 prose-code:px-2 prose-code:py-1 prose-pre:bg-gray-100 prose-li:text-gray-600 prose-img:rounded-lg prose-img:shadow-lg dark:prose-headings:text-white dark:prose-p:text-gray-300 dark:prose-strong:text-gray-100 dark:prose-code:bg-gray-800 dark:prose-pre:bg-gray-800 dark:prose-li:text-gray-300">- <Suspense- fallback={- <div className="h-64 animate-pulse rounded bg-gray-200 dark:bg-gray-700"></div>- }- >- <entry.Component />- </Suspense>- </div>- </article>+ {/* Entry content */}+ <div className="prose-headings:mt-8 prose-headings:font-semibold prose-headings:text-black prose-h1:text-3xl prose-h2:text-2xl prose-h3:text-xl prose-h4:text-lg prose-h5:text-base prose-h6:text-sm prose-p:text-gray-600 prose-blockquote:border-l-blue-500 prose-strong:text-gray-900 prose-code:rounded prose-code:bg-gray-100 prose-code:px-2 prose-code:py-1 prose-pre:bg-gray-100 prose-li:text-gray-600 prose-img:rounded-lg prose-img:shadow-lg dark:prose-headings:text-white dark:prose-p:text-gray-300 dark:prose-strong:text-gray-100 dark:prose-code:bg-gray-800 dark:prose-pre:bg-gray-800 dark:prose-li:text-gray-300">+ <Suspense+ fallback={+ <div className="h-64 animate-pulse rounded bg-gray-200 dark:bg-gray-700"></div>+ }+ >+ <entry.Component />+ </Suspense>+ </div>+ </article>- {/* Previous and Next post navigation */}- {(previousEntry || nextEntry) && (- <div className="mt-16 border-t border-gray-200 pt-8 dark:border-gray-700">- <div className="flex flex-row gap-8 sm:justify-between">- {/* Previous post link */}- {previousEntry ? (- <Link- href={`/changelog/${previousEntry.slug}`}- className="group ml-2 flex-1 text-left sm:ml-10"- >- <p className="flex items-center justify-end gap-1 text-sm font-medium text-slate-500 dark:text-gray-400 sm:text-base">- <ArrowLeftIcon className="inline-block size-4 transition-transform group-hover:-translate-x-0.5" />- Previous- </p>- <h3 className="mt-1 text-pretty text-end text-sm font-semibold text-gray-900 group-hover:underline dark:text-gray-100 sm:text-base">- {previousEntry.metadata.title ||- `Update ${formatChangelogDate(previousEntry.metadata.date)}`}- </h3>- </Link>- ) : (- <div className="flex-1"></div>- )}+ {/* Previous and Next post navigation */}+ {(previousEntry || nextEntry) && (+ <div className="mt-16 border-t border-gray-200 pt-8 dark:border-gray-700">+ <div className="flex flex-row gap-8 sm:justify-between">+ {/* Previous post link */}+ {previousEntry ? (+ <Link+ href={`/changelog/${previousEntry.slug}`}+ className="group ml-2 flex-1 text-left sm:ml-10"+ >+ <p className="flex items-center justify-end gap-1 text-sm font-medium text-slate-500 dark:text-gray-400 sm:text-base">+ <ArrowLeftIcon className="inline-block size-4 transition-transform group-hover:-translate-x-0.5" />+ Previous+ </p>+ <h3 className="mt-1 text-pretty text-end text-sm font-semibold text-gray-900 group-hover:underline dark:text-gray-100 sm:text-base">+ {previousEntry.metadata.title ||+ `Update ${formatChangelogDate(previousEntry.metadata.date)}`}+ </h3>+ </Link>+ ) : (+ <div className="flex-1"></div>+ )}- {/* Center divider */}- <div className="block w-px self-stretch bg-gray-200 dark:bg-gray-700" />+ {/* Center divider */}+ <div className="block w-px self-stretch bg-gray-200 dark:bg-gray-700" />- {/* Next post link */}- {nextEntry ? (- <Link- href={`/changelog/${nextEntry.slug}`}- className="group mr-2 flex-1 text-right sm:mr-10"- >- <p className="flex items-center justify-start gap-1 text-sm font-medium text-slate-500 dark:text-gray-400 sm:text-base">- Next- <ArrowRightIcon className="inline-block size-4 transition-transform group-hover:translate-x-0.5" />- </p>- <h3 className="mt-1 text-pretty text-start text-sm font-semibold text-gray-900 group-hover:underline dark:text-gray-100 sm:text-base">- {nextEntry.metadata.title ||- `Update ${formatChangelogDate(nextEntry.metadata.date)}`}- </h3>- </Link>- ) : (- <div className="flex-1"></div>- )}+ {/* Next post link */}+ {nextEntry ? (+ <Link+ href={`/changelog/${nextEntry.slug}`}+ className="group mr-2 flex-1 text-right sm:mr-10"+ >+ <p className="flex items-center justify-start gap-1 text-sm font-medium text-slate-500 dark:text-gray-400 sm:text-base">+ Next+ <ArrowRightIcon className="inline-block size-4 transition-transform group-hover:translate-x-0.5" />+ </p>+ <h3 className="mt-1 text-pretty text-start text-sm font-semibold text-gray-900 group-hover:underline dark:text-gray-100 sm:text-base">+ {nextEntry.metadata.title ||+ `Update ${formatChangelogDate(nextEntry.metadata.date)}`}+ </h3>+ </Link>+ ) : (+ <div className="flex-1"></div>+ )}+ </div></div>- </div>- )}+ )}+ </div></div>- </div>+ </>);}diff --git a/src/app/changelog/build-changelog-json-ld.ts b/src/app/changelog/build-changelog-json-ld.tsnew file mode 100644index 0000000..a0f37c1--- /dev/null+++ b/src/app/changelog/build-changelog-json-ld.ts@@ -0,0 +1,125 @@+import { PROD_WEBSITE_URL } from "@/config";+import type { Graph } from "schema-dts";++import { buildBreadcrumbList } from "@/lib/seo/breadcrumb";+import {+ JSON_LD_IDS,+ pageBreadcrumbId,+ pageWebPageId,+} from "@/lib/seo/json-ld-ids";+import { OG_IMAGE_URL } from "@/lib/seo/site-entities";++import { formatChangelogDate, type ChangelogEntry } from "./utils";++const CHANGELOG_INDEX_URL = `${PROD_WEBSITE_URL}/changelog`;++const CHANGELOG_INDEX_TITLE =+ "Changelog | EasyInvoicePDF - Free Invoice PDF Generator";++const CHANGELOG_INDEX_DESCRIPTION =+ "Explore the latest updates, new features, and improvements to EasyInvoicePDF.com - the free, open-source invoice generator.";++export function buildChangelogIndexJsonLdGraph(+ latestDateModified: string | null,+): Graph {+ return {+ "@context": "https://schema.org",+ "@graph": [+ {+ "@type": "CollectionPage",+ "@id": pageWebPageId(CHANGELOG_INDEX_URL),+ url: CHANGELOG_INDEX_URL,+ name: CHANGELOG_INDEX_TITLE,+ description: CHANGELOG_INDEX_DESCRIPTION,+ inLanguage: "en",+ isPartOf: {+ "@id": JSON_LD_IDS.website,+ },+ breadcrumb: {+ "@id": pageBreadcrumbId(CHANGELOG_INDEX_URL),+ },+ about: {+ "@id": JSON_LD_IDS.person,+ },+ },+ {+ "@type": "Blog",+ "@id": JSON_LD_IDS.blog,+ isPartOf: {+ "@id": JSON_LD_IDS.website,+ },+ mainEntityOfPage: {+ "@id": pageWebPageId(CHANGELOG_INDEX_URL),+ },+ name: "EasyInvoicePDF Changelog",+ description: CHANGELOG_INDEX_DESCRIPTION,+ inLanguage: "en",+ ...(latestDateModified ? { dateModified: latestDateModified } : {}),+ publisher: {+ "@id": JSON_LD_IDS.person,+ },+ },+ buildBreadcrumbList(CHANGELOG_INDEX_URL, [+ { name: "Home", item: `${PROD_WEBSITE_URL}/` },+ { name: "Changelog" },+ ]),+ ],+ };+}++export function buildChangelogPostJsonLdGraph(entry: ChangelogEntry): Graph {+ const pageUrl = `${PROD_WEBSITE_URL}/changelog/${entry.slug}`;+ const title =+ entry.metadata.title ||+ `Update ${formatChangelogDate(entry.metadata.date)}`;++ return {+ "@context": "https://schema.org",+ "@graph": [+ {+ "@type": "WebPage",+ "@id": pageWebPageId(pageUrl),+ url: pageUrl,+ name: title,+ description: entry.metadata.description,+ inLanguage: "en",+ isPartOf: {+ "@id": JSON_LD_IDS.website,+ },+ breadcrumb: {+ "@id": pageBreadcrumbId(pageUrl),+ },+ },+ {+ "@type": "BlogPosting",+ "@id": `${pageUrl}#blogposting`,+ url: pageUrl,+ headline: title,+ description: entry.metadata.description,+ datePublished: entry.metadata.date,+ dateModified: entry.metadata.date,+ mainEntityOfPage: {+ "@id": pageWebPageId(pageUrl),+ },+ isPartOf: {+ "@id": JSON_LD_IDS.blog,+ },+ author: {+ "@id": JSON_LD_IDS.person,+ },+ publisher: {+ "@id": JSON_LD_IDS.person,+ },+ image: {+ "@type": "ImageObject",+ url: OG_IMAGE_URL,+ },+ },+ buildBreadcrumbList(pageUrl, [+ { name: "Home", item: `${PROD_WEBSITE_URL}/` },+ { name: "Changelog", item: CHANGELOG_INDEX_URL },+ { name: title },+ ]),+ ],+ };+}diff --git a/src/app/changelog/changelog-index-json-ld.tsx b/src/app/changelog/changelog-index-json-ld.tsxnew file mode 100644index 0000000..87b8ad6--- /dev/null+++ b/src/app/changelog/changelog-index-json-ld.tsx@@ -0,0 +1,16 @@+import { getLatestChangelogSummary } from "./utils";+import { buildChangelogIndexJsonLdGraph } from "./build-changelog-json-ld";+import { JsonLdScript } from "@/lib/seo/render-json-ld";++export async function ChangelogIndexJsonLd() {+ const latest = await getLatestChangelogSummary().catch((error) => {+ console.error(+ "[ChangelogIndexJsonLd] Failed to load latest changelog summary",+ error,+ );+ return null;+ });+ const graph = buildChangelogIndexJsonLdGraph(latest?.date ?? null);++ return <JsonLdScript id="json-ld-changelog-index" data={graph} />;+}diff --git a/src/app/changelog/changelog-post-json-ld.tsx b/src/app/changelog/changelog-post-json-ld.tsxnew file mode 100644index 0000000..a8c653c--- /dev/null+++ b/src/app/changelog/changelog-post-json-ld.tsx@@ -0,0 +1,13 @@+import type { ChangelogEntry } from "./utils";+import { buildChangelogPostJsonLdGraph } from "./build-changelog-json-ld";+import { JsonLdScript } from "@/lib/seo/render-json-ld";++interface ChangelogPostJsonLdProps {+ entry: ChangelogEntry;+}++export function ChangelogPostJsonLd({ entry }: ChangelogPostJsonLdProps) {+ const graph = buildChangelogPostJsonLdGraph(entry);++ return <JsonLdScript id={`json-ld-changelog-${entry.slug}`} data={graph} />;+}diff --git a/src/app/changelog/layout.tsx b/src/app/changelog/layout.tsxindex 8a910c8..34a7633 100644--- a/src/app/changelog/layout.tsx+++ b/src/app/changelog/layout.tsx@@ -6,6 +6,7 @@ import {TWITTER_CREATOR,} from "@/config";import type { Metadata } from "next";+import { ChangelogIndexJsonLd } from "./changelog-index-json-ld";// Enable static generation for changelog layoutexport const dynamic = "force-static";@@ -85,6 +86,7 @@ interface ChangelogLayoutProps {export default function ChangelogLayout({ children }: ChangelogLayoutProps) {return (<>+ <ChangelogIndexJsonLd /><Header />{children}<Footer />diff --git a/src/app/constants/seo.ts b/src/app/constants/seo.tsdeleted file mode 100644index 7509b6a..0000000--- a/src/app/constants/seo.ts+++ /dev/null@@ -1,140 +0,0 @@-import {- type SoftwareApplication,- type WebSite,- type WithContext,-} from "schema-dts";-import { type BreadcrumbList, type SiteNavigationElement } from "schema-dts";-import { STATIC_ASSETS_URL } from "@/config";--export const WEBSITE_JSONLD = {- "@context": "https://schema.org",- "@type": "WebSite",- url: "https://easyinvoicepdf.com/",- name: "EasyInvoicePDF | Free & Open-Source Invoice Generator – Live Preview, No Sign-Up",- description:- "Create and download professional invoices instantly with EasyInvoicePDF. Free and open-source. No signup required.",- keywords: [- "invoice pdf generator",- "free invoice pdf",- "create invoice pdf",- "invoice generator open source",- "pdf invoice template",- "invoice generator",- "free invoice generator",- "online invoice generator",- "invoice maker pdf",- "professional invoice generator",- ],- image: `${STATIC_ASSETS_URL}/easy-invoice-opengraph-image.png?v=1755773879597`,- mainEntityOfPage: {- "@type": "SoftwareApplication",- "@id": `https://easyinvoicepdf.com/`,- name: "EasyInvoicePDF | Free & Open-Source Invoice Generator – Live Preview, No Sign-Up",- description:- "Create and download professional invoices instantly with EasyInvoicePDF. Free and open-source. No signup required.",- featureList: [- "Live Preview: See changes in real-time as you type",- "Shareable Links: Send invoices directly to clients without attachments",- "No Sign-Up Required: Start creating invoices immediately without any registration",- "Browser Only: No server uploads, your data stays private",- "Multi-Language: Support for 10+ languages and all major currencies",- "Flexible Tax Support: VAT, GST, Sales Tax, and custom tax formats with automatic calculations",- "Multiple Templates: Including modern Stripe-style design",- "Instant PDF: One-click download ready for printing or sending",- "Mobile-Friendly: Fully responsive design works perfectly on all devices",- ],- operatingSystem: "All",- applicationCategory: "BusinessApplication",- },- author: {- "@type": "Person",- name: "Uladzislau Sazonau",- url: "https://vladsazon.com",- },-} as const satisfies WithContext<WebSite>;--export const BREADCRUMB_JSONLD = {- "@context": "https://schema.org",- "@type": "BreadcrumbList",- itemListElement: [- {- "@type": "ListItem",- position: 1,- name: "Invoice Generator",- item: "https://easyinvoicepdf.com/",- },- {- "@type": "ListItem",- position: 2,- name: "About",- item: "https://easyinvoicepdf.com/en/about",- },- {- "@type": "ListItem",- position: 3,- name: "Changelog",- item: "https://easyinvoicepdf.com/changelog",- },- ],-} as const satisfies WithContext<BreadcrumbList>;--export const SITE_NAVIGATION_JSONLD = {- "@context": "https://schema.org",- "@type": "SiteNavigationElement",- name: "Main Navigation",- url: "https://easyinvoicepdf.com/",- hasPart: [- {- "@type": "SiteNavigationElement",- name: "Invoice Generator",- description: "Create professional invoices instantly with live preview",- url: "https://easyinvoicepdf.com/",- },- {- "@type": "SiteNavigationElement",- name: "About",- description:- "Learn about our free invoice generator features and benefits",- url: "https://easyinvoicepdf.com/en/about",- },- {- "@type": "SiteNavigationElement",- name: "Features",- description:- "Discover all the powerful features of our invoice generator",- url: "https://easyinvoicepdf.com/en/about#features",- },- {- "@type": "SiteNavigationElement",- name: "FAQ",- description: "Frequently asked questions about the invoice generator",- url: "https://easyinvoicepdf.com/en/about#faq",- },- {- "@type": "SiteNavigationElement",- name: "Changelog",- description: "Latest updates and improvements to the application",- url: "https://easyinvoicepdf.com/changelog",- },- {- "@type": "SiteNavigationElement",- name: "How it works",- description:- "Video tutorials for creating invoices, saving seller and buyer details, and weekly invoicing",- url: "https://easyinvoicepdf.com/how-it-works",- },- ],-} as const satisfies WithContext<SiteNavigationElement>;--export const SOFTWARE_APPLICATION_JSONLD = {- "@context": "https://schema.org",- "@type": "SoftwareApplication",- name: "EasyInvoicePDF | Free & Open-Source Invoice Generator – Live Preview, No Sign-Up",- applicationCategory: "BusinessApplication",- operatingSystem: "Web",- offers: {- "@type": "Offer",- price: "0",- priceCurrency: "EUR",- },-} as const satisfies WithContext<SoftwareApplication>;diff --git a/src/app/founder/build-founder-json-ld.ts b/src/app/founder/build-founder-json-ld.tsnew file mode 100644index 0000000..93958b0--- /dev/null+++ b/src/app/founder/build-founder-json-ld.ts@@ -0,0 +1,45 @@+import { PROD_WEBSITE_URL } from "@/config";+import type { Graph } from "schema-dts";++import { buildBreadcrumbList } from "@/lib/seo/breadcrumb";+import {+ JSON_LD_IDS,+ pageBreadcrumbId,+ pageWebPageId,+} from "@/lib/seo/json-ld-ids";+import {+ FOUNDER_PAGE_DESCRIPTION,+ FOUNDER_PAGE_TITLE,+ FOUNDER_PAGE_URL,+} from "@/lib/seo/site-entities";++export function buildFounderJsonLdGraph(): Graph {+ const pageUrl = FOUNDER_PAGE_URL;++ return {+ "@context": "https://schema.org",+ "@graph": [+ {+ "@type": "ProfilePage",+ "@id": pageWebPageId(pageUrl),+ url: pageUrl,+ name: FOUNDER_PAGE_TITLE,+ description: FOUNDER_PAGE_DESCRIPTION,+ inLanguage: "en",+ isPartOf: {+ "@id": JSON_LD_IDS.website,+ },+ breadcrumb: {+ "@id": pageBreadcrumbId(pageUrl),+ },+ mainEntity: {+ "@id": JSON_LD_IDS.person,+ },+ },+ buildBreadcrumbList(pageUrl, [+ { name: "Home", item: `${PROD_WEBSITE_URL}/` },+ { name: "Founder" },+ ]),+ ],+ };+}diff --git a/src/app/founder/founder-json-ld.tsx b/src/app/founder/founder-json-ld.tsxnew file mode 100644index 0000000..bbabd47--- /dev/null+++ b/src/app/founder/founder-json-ld.tsx@@ -0,0 +1,6 @@+import { buildFounderJsonLdGraph } from "./build-founder-json-ld";+import { JsonLdScript } from "@/lib/seo/render-json-ld";++export function FounderJsonLd() {+ return <JsonLdScript id="json-ld-founder" data={buildFounderJsonLdGraph()} />;+}diff --git a/src/app/founder/layout.tsx b/src/app/founder/layout.tsxindex ea98414..7818fc9 100644--- a/src/app/founder/layout.tsx+++ b/src/app/founder/layout.tsx@@ -5,17 +5,16 @@ import {STATIC_ASSETS_URL,TWITTER_CREATOR,} from "@/config";+import {+ FOUNDER_PAGE_DESCRIPTION,+ FOUNDER_PAGE_TITLE,+ FOUNDER_PAGE_URL,+} from "@/lib/seo/site-entities";import type { Metadata } from "next";+import { FounderJsonLd } from "./founder-json-ld";export const dynamic = "force-static";-const FOUNDER_PAGE_URL = `https://easyinvoicepdf.com/founder`;--const FOUNDER_PAGE_TITLE = "Vlad Sazonau | Founder of EasyInvoicePDF";--const FOUNDER_PAGE_DESCRIPTION =- "Meet Vlad Sazonau, founder of EasyInvoicePDF, the free open-source invoice PDF generator with live preview. Product engineer and design enthusiast with 8+ years building digital products.";-const ogImageAlt = "Vlad Sazonau, founder of EasyInvoicePDF — product engineer";export const metadata: Metadata = {@@ -86,6 +85,7 @@ interface FounderLayoutProps {export default function FounderLayout({ children }: FounderLayoutProps) {return (<>+ <FounderJsonLd /><Header />{children}<Footer />diff --git a/src/app/how-it-works/build-how-it-works-json-ld.ts b/src/app/how-it-works/build-how-it-works-json-ld.tsindex d7891e2..ecabc44 100644--- a/src/app/how-it-works/build-how-it-works-json-ld.ts+++ b/src/app/how-it-works/build-how-it-works-json-ld.ts@@ -1,8 +1,20 @@-import { APP_URL, HOW_IT_WORKS_VIDEOS } from "@/config";+import { PROD_WEBSITE_URL, HOW_IT_WORKS_VIDEOS } from "@/config";import type { Graph } from "schema-dts";-export function buildHowItWorksJsonLd(baseUrl = APP_URL): Graph {- const pageUrl = `${baseUrl}/how-it-works` as const;+import { buildBreadcrumbList } from "@/lib/seo/breadcrumb";+import {+ JSON_LD_IDS,+ pageBreadcrumbId,+ pageWebPageId,+} from "@/lib/seo/json-ld-ids";++const PAGE_TITLE = "How EasyInvoicePDF Works | Video Tutorials";++const PAGE_DESCRIPTION =+ "Watch step-by-step video tutorials on creating invoices, saving seller and buyer details, and generating weekly invoices with EasyInvoicePDF.";++export function buildHowItWorksJsonLd(baseUrl = PROD_WEBSITE_URL): Graph {+ const pageUrl = `${baseUrl}/how-it-works`;const videoItems = HOW_IT_WORKS_VIDEOS.map((video, index) => ({"@type": "ListItem" as const,@@ -27,11 +39,17 @@ export function buildHowItWorksJsonLd(baseUrl = APP_URL): Graph {"@graph": [{"@type": "WebPage",- "@id": pageUrl,+ "@id": pageWebPageId(pageUrl),url: pageUrl,- name: "How EasyInvoicePDF Works | Video Tutorials",- description:- "Watch step-by-step video tutorials on creating invoices, saving seller and buyer details, and generating weekly invoices with EasyInvoicePDF.",+ name: PAGE_TITLE,+ description: PAGE_DESCRIPTION,+ inLanguage: "en",+ isPartOf: {+ "@id": JSON_LD_IDS.website,+ },+ breadcrumb: {+ "@id": pageBreadcrumbId(pageUrl),+ },mainEntity: {"@type": "ItemList","@id": `${pageUrl}#tutorials`,@@ -39,6 +57,10 @@ export function buildHowItWorksJsonLd(baseUrl = APP_URL): Graph {itemListElement: videoItems,},},+ buildBreadcrumbList(pageUrl, [+ { name: "Home", item: `${baseUrl}/` },+ { name: "How it works" },+ ]),],};}diff --git a/src/app/how-it-works/how-it-works-json-ld.tsx b/src/app/how-it-works/how-it-works-json-ld.tsxindex 419a0bc..c18c60a 100644--- a/src/app/how-it-works/how-it-works-json-ld.tsx+++ b/src/app/how-it-works/how-it-works-json-ld.tsx@@ -1,13 +1,8 @@import { buildHowItWorksJsonLd } from "./build-how-it-works-json-ld";+import { JsonLdScript } from "@/lib/seo/render-json-ld";export function HowItWorksJsonLd() {- const graph = buildHowItWorksJsonLd();-return (- <script- id="json-ld-how-it-works"- type="application/ld+json"- dangerouslySetInnerHTML={{ __html: JSON.stringify(graph) }}- />+ <JsonLdScript id="json-ld-how-it-works" data={buildHowItWorksJsonLd()} />);}diff --git a/src/app/layout.tsx b/src/app/layout.tsxindex 55afe6a..ba503a6 100644--- a/src/app/layout.tsx+++ b/src/app/layout.tsx@@ -10,12 +10,8 @@ import Script from "next/script";import { Toaster } from "sonner";import { PERSONAL_WEBSITE_URL, STATIC_ASSETS_URL } from "@/config";-import {- BREADCRUMB_JSONLD,- SITE_NAVIGATION_JSONLD,- SOFTWARE_APPLICATION_JSONLD,- WEBSITE_JSONLD,-} from "./constants/seo";+import { JsonLdScript } from "@/lib/seo/render-json-ld";+import { buildSiteWideJsonLdGraph } from "@/lib/seo/site-entities";import "./globals.css";@@ -82,6 +78,8 @@ export default async function RootLayout({inAppInfo,} = await checkDeviceUserAgent();+ const siteWideJsonLd = buildSiteWideJsonLdGraph();+return (<html lang="en"><body>@@ -115,34 +113,7 @@ export default async function RootLayout({/></>)}- <script- id="website-json-ld"- type="application/ld+json"- dangerouslySetInnerHTML={{- __html: JSON.stringify(WEBSITE_JSONLD),- }}- />- <script- id="breadcrumb-json-ld"- type="application/ld+json"- dangerouslySetInnerHTML={{- __html: JSON.stringify(BREADCRUMB_JSONLD),- }}- />- <script- id="site-navigation-json-ld"- type="application/ld+json"- dangerouslySetInnerHTML={{- __html: JSON.stringify(SITE_NAVIGATION_JSONLD),- }}- />- <script- id="software-application-json-ld"- type="application/ld+json"- dangerouslySetInnerHTML={{- __html: JSON.stringify(SOFTWARE_APPLICATION_JSONLD),- }}- />+ <JsonLdScript id="site-wide-json-ld" data={siteWideJsonLd} /></NextIntlClientProvider></DeviceContextProvider></body>diff --git a/src/config.ts b/src/config.tsindex 6d2b2ef..d204864 100644--- a/src/config.ts+++ b/src/config.ts@@ -91,6 +91,9 @@ export const HOW_IT_WORKS_VIDEOS = [export const PROD_WEBSITE_URL = "https://easyinvoicepdf.com";+export const FOUNDER_AVATAR_URL =+ "https://ik.imagekit.io/fl2lbswwo/avatar.jpeg?updatedAt=1757456439459";+export const GITHUB_URL = "https://github.com/VladSez/easy-invoice-pdf";export const LINKEDIN_URL = "https://www.linkedin.com/in/vlad-sazonau/";diff --git a/src/lib/seo/__tests__/changelog-json-ld.test.ts b/src/lib/seo/__tests__/changelog-json-ld.test.tsnew file mode 100644index 0000000..3fa0c3d--- /dev/null+++ b/src/lib/seo/__tests__/changelog-json-ld.test.ts@@ -0,0 +1,114 @@+import { describe, expect, it } from "vitest";++import {+ buildChangelogIndexJsonLdGraph,+ buildChangelogPostJsonLdGraph,+} from "../../../app/changelog/build-changelog-json-ld";+import { JSON_LD_IDS } from "../json-ld-ids";++describe("buildChangelogIndexJsonLdGraph", () => {+ it("includes CollectionPage, Blog, and BreadcrumbList", () => {+ const graph = buildChangelogIndexJsonLdGraph("2026-01-15");+ const parsed = JSON.parse(JSON.stringify(graph)) as {+ "@graph": Array<Record<string, unknown>>;+ };+ const nodes = parsed["@graph"];++ expect(nodes[0]).toMatchObject({+ "@type": "CollectionPage",+ "@id": "https://easyinvoicepdf.com/changelog#webpage",+ isPartOf: { "@id": JSON_LD_IDS.website },+ about: { "@id": JSON_LD_IDS.person },+ });++ expect(nodes[1]).toMatchObject({+ "@type": "Blog",+ "@id": JSON_LD_IDS.blog,+ dateModified: "2026-01-15",+ publisher: { "@id": JSON_LD_IDS.person },+ });++ expect(nodes[2]).toMatchObject({+ "@type": "BreadcrumbList",+ "@id": "https://easyinvoicepdf.com/changelog#breadcrumb",+ });+ });++ it("should omit dateModified when latestDateModified is null", () => {+ const graph = buildChangelogIndexJsonLdGraph(null);+ const parsed = JSON.parse(JSON.stringify(graph)) as {+ "@graph": Array<Record<string, unknown>>;+ };+ const blog = parsed["@graph"][1];++ expect(blog).toMatchObject({+ "@type": "Blog",+ "@id": JSON_LD_IDS.blog,+ });+ expect(blog).not.toHaveProperty("dateModified");+ });+});++describe("buildChangelogPostJsonLdGraph", () => {+ it("links BlogPosting to blog and person", () => {+ const graph = buildChangelogPostJsonLdGraph({+ slug: "test-release",+ metadata: {+ title: "Test Release",+ description: "A test changelog entry.",+ date: "2026-02-01",+ version: "1.0.0",+ },+ Component: () => null,+ });++ const parsed = JSON.parse(JSON.stringify(graph)) as {+ "@graph": Array<Record<string, unknown>>;+ };+ const blogPosting = parsed["@graph"][1];++ expect(blogPosting).toMatchObject({+ "@type": "BlogPosting",+ "@id": "https://easyinvoicepdf.com/changelog/test-release#blogposting",+ headline: "Test Release",+ datePublished: "2026-02-01",+ author: { "@id": JSON_LD_IDS.person },+ publisher: { "@id": JSON_LD_IDS.person },+ isPartOf: { "@id": JSON_LD_IDS.blog },+ });++ expect(blogPosting).not.toHaveProperty("aggregateRating");+ });++ it("should fall back to a date-based title when metadata title is blank", () => {+ const graph = buildChangelogPostJsonLdGraph({+ slug: "untitled-release",+ metadata: {+ title: "",+ description: "A test changelog entry.",+ date: "2026-02-01",+ version: "1.0.0",+ },+ Component: () => null,+ });++ const parsed = JSON.parse(JSON.stringify(graph)) as {+ "@graph": Array<Record<string, unknown>>;+ };+ const webPage = parsed["@graph"][0];+ const blogPosting = parsed["@graph"][1];+ const breadcrumb = parsed["@graph"][2] as {+ itemListElement: Array<{ name: string }>;+ };++ expect(webPage).toMatchObject({+ "@type": "WebPage",+ name: "Update February 1, 2026",+ });+ expect(blogPosting).toMatchObject({+ "@type": "BlogPosting",+ headline: "Update February 1, 2026",+ });+ expect(breadcrumb.itemListElement[2]?.name).toBe("Update February 1, 2026");+ });+});diff --git a/src/lib/seo/__tests__/founder-json-ld.test.ts b/src/lib/seo/__tests__/founder-json-ld.test.tsnew file mode 100644index 0000000..a358f50--- /dev/null+++ b/src/lib/seo/__tests__/founder-json-ld.test.ts@@ -0,0 +1,20 @@+import { describe, expect, it } from "vitest";++import { buildFounderJsonLdGraph } from "../../../app/founder/build-founder-json-ld";+import { JSON_LD_IDS } from "../json-ld-ids";++describe("buildFounderJsonLdGraph", () => {+ it("uses ProfilePage with mainEntity pointing to person", () => {+ const graph = buildFounderJsonLdGraph();+ const parsed = JSON.parse(JSON.stringify(graph)) as {+ "@graph": Array<Record<string, unknown>>;+ };++ expect(parsed["@graph"][0]).toMatchObject({+ "@type": "ProfilePage",+ "@id": "https://easyinvoicepdf.com/founder#webpage",+ isPartOf: { "@id": JSON_LD_IDS.website },+ mainEntity: { "@id": JSON_LD_IDS.person },+ });+ });+});diff --git a/src/lib/seo/__tests__/home-json-ld.test.ts b/src/lib/seo/__tests__/home-json-ld.test.tsnew file mode 100644index 0000000..3c30607--- /dev/null+++ b/src/lib/seo/__tests__/home-json-ld.test.ts@@ -0,0 +1,31 @@+import { describe, expect, it } from "vitest";++import { buildHomeJsonLdGraph } from "../../../app/(app)/home-json-ld";+import { JSON_LD_IDS } from "../json-ld-ids";++describe("buildHomeJsonLdGraph", () => {+ it("includes full WebSite, WebApplication, and WebPage linked by @id", () => {+ const graph = buildHomeJsonLdGraph();+ const parsed = JSON.parse(JSON.stringify(graph)) as {+ "@graph": Array<Record<string, unknown>>;+ };++ expect(parsed["@graph"]).toHaveLength(3);+ expect(parsed["@graph"][0]).toMatchObject({+ "@type": "WebSite",+ "@id": JSON_LD_IDS.website,+ publisher: { "@id": JSON_LD_IDS.person },+ });+ expect(parsed["@graph"][1]).toMatchObject({+ "@type": "WebApplication",+ "@id": JSON_LD_IDS.app,+ offers: { price: "0", priceCurrency: "EUR" },+ });+ expect(parsed["@graph"][2]).toMatchObject({+ "@type": "WebPage",+ "@id": "https://easyinvoicepdf.com/#webpage",+ isPartOf: { "@id": JSON_LD_IDS.website },+ mainEntity: { "@id": JSON_LD_IDS.app },+ });+ });+});diff --git a/src/lib/seo/__tests__/site-entities.test.ts b/src/lib/seo/__tests__/site-entities.test.tsnew file mode 100644index 0000000..6d8917e--- /dev/null+++ b/src/lib/seo/__tests__/site-entities.test.ts@@ -0,0 +1,71 @@+import { describe, expect, it } from "vitest";++import { buildBreadcrumbList } from "../breadcrumb";+import { JSON_LD_IDS } from "../json-ld-ids";+import {+ buildFullWebSite,+ buildPerson,+ buildSlimWebSite,+ buildWebApplication,+} from "../site-entities";++describe("site-entities", () => {+ it("should use stable website @id for buildSlimWebSite", () => {+ expect(buildSlimWebSite()).toMatchObject({+ "@type": "WebSite",+ "@id": JSON_LD_IDS.website,+ url: "https://easyinvoicepdf.com/",+ });+ });++ it("should link publisher to person in buildFullWebSite", () => {+ expect(buildFullWebSite()).toMatchObject({+ "@id": JSON_LD_IDS.website,+ publisher: { "@id": JSON_LD_IDS.person },+ });+ });++ it("should use real name without role suffix for buildPerson", () => {+ const person = buildPerson();+ expect(person.name).toBe("Uladzislau Sazonau");+ expect(person.name).not.toContain("Founder");+ expect(person.sameAs).toHaveLength(4);+ });++ it("should include offers.price 0 and no aggregateRating in buildWebApplication", () => {+ const app = buildWebApplication();+ expect(app.offers).toMatchObject({+ price: "0",+ priceCurrency: "EUR",+ });+ expect(app).not.toHaveProperty("aggregateRating");+ expect(app.creator).toMatchObject({ "@id": JSON_LD_IDS.person });+ });+});++describe("buildBreadcrumbList", () => {+ it("should build ordered crumbs with optional last item URL", () => {+ const breadcrumb = buildBreadcrumbList("https://easyinvoicepdf.com/foo", [+ { name: "Home", item: "https://easyinvoicepdf.com/" },+ { name: "Foo" },+ ]);++ expect(breadcrumb).toMatchObject({+ "@type": "BreadcrumbList",+ "@id": "https://easyinvoicepdf.com/foo#breadcrumb",+ itemListElement: [+ {+ "@type": "ListItem",+ position: 1,+ name: "Home",+ item: "https://easyinvoicepdf.com/",+ },+ {+ "@type": "ListItem",+ position: 2,+ name: "Foo",+ },+ ],+ });+ });+});diff --git a/src/lib/seo/breadcrumb.ts b/src/lib/seo/breadcrumb.tsnew file mode 100644index 0000000..f2bc27f--- /dev/null+++ b/src/lib/seo/breadcrumb.ts@@ -0,0 +1,25 @@+import type { BreadcrumbList } from "schema-dts";++import { pageBreadcrumbId } from "./json-ld-ids";++interface BreadcrumbItem {+ name: string;+ /** Omit for the current page (last crumb). */+ item?: string;+}++export function buildBreadcrumbList(+ pageUrl: string,+ items: BreadcrumbItem[],+): BreadcrumbList {+ return {+ "@type": "BreadcrumbList",+ "@id": pageBreadcrumbId(pageUrl),+ itemListElement: items.map((crumb, index) => ({+ "@type": "ListItem" as const,+ position: index + 1,+ name: crumb.name,+ ...(crumb.item ? { item: crumb.item } : {}),+ })),+ };+}diff --git a/src/lib/seo/indexing-utils.ts b/src/lib/seo/indexing-utils.tsnew file mode 100644index 0000000..bc84a8b--- /dev/null+++ b/src/lib/seo/indexing-utils.ts@@ -0,0 +1,23 @@+import { PROD_WEBSITE_URL } from "@/config";++/**+ * Determine indexing-related flags from request search parameters and environment.+ *+ * @param searchParams - Query params from request URL.+ * @returns Object with:+ * hasShareableData: Whether query contains 'data' parameter (shareable invoice).+ * isProd: True if running on canonical production deployment.+ * shouldIndex: True if page should be indexed (prod, no share data).+ */+export function computeIndexingFlags(searchParams: {+ [key: string]: string | string[] | undefined;+}) {+ const hasShareableData = Boolean(searchParams?.data);++ const isProd =+ process.env.VERCEL_ENV === "production" &&+ `https://${process.env.VERCEL_PROJECT_PRODUCTION_URL}` === PROD_WEBSITE_URL;+ const shouldIndex = isProd && !hasShareableData;++ return { hasShareableData, isProd, shouldIndex };+}diff --git a/src/lib/seo/json-ld-ids.ts b/src/lib/seo/json-ld-ids.tsnew file mode 100644index 0000000..4f555cd--- /dev/null+++ b/src/lib/seo/json-ld-ids.ts@@ -0,0 +1,36 @@+import { PROD_WEBSITE_URL } from "@/config";++/**+ * Stable @id fragments for JSON-LD cross-linking.+ *+ * Validate after deploy (Rich Results Test):+ * - https://easyinvoicepdf.com/+ * - https://easyinvoicepdf.com/en/about+ * - https://easyinvoicepdf.com/how-it-works+ * - https://easyinvoicepdf.com/changelog+ * - https://easyinvoicepdf.com/changelog/{latest-slug}+ * - https://easyinvoicepdf.com/founder+ * - https://easyinvoicepdf.com/{seo-landing-slug}+ */+export const JSON_LD_BASE = PROD_WEBSITE_URL;++export const JSON_LD_IDS = {+ website: `${JSON_LD_BASE}/#website`,+ person: `${JSON_LD_BASE}/#person`,+ personImage: `${JSON_LD_BASE}/#person-image`,+ websiteImage: `${JSON_LD_BASE}/#website-image`,+ app: `${JSON_LD_BASE}/#app`,+ blog: `${JSON_LD_BASE}/changelog/#blog`,+} as const;++export function pageWebPageId(url: string) {+ return `${url}#webpage`;+}++export function pageBreadcrumbId(url: string) {+ return `${url}#breadcrumb`;+}++export function pageFaqId(url: string) {+ return `${url}#faq`;+}diff --git a/src/lib/seo/locale-utils.ts b/src/lib/seo/locale-utils.tsnew file mode 100644index 0000000..7a33f79--- /dev/null+++ b/src/lib/seo/locale-utils.ts@@ -0,0 +1,23 @@+import type { Locale } from "next-intl";++export const OPEN_GRAPH_LOCALE_BY_LOCALE = {+ en: "en_US",+ pl: "pl_PL",+ de: "de_DE",+ es: "es_ES",+ pt: "pt_PT",+ ru: "ru_RU",+ uk: "uk_UA",+ fr: "fr_FR",+ it: "it_IT",+ nl: "nl_NL",+} as const satisfies Record<Locale, string>;++/**+ * Convert locale to language code for schema.org ("en_US" -> "en-US").+ * @param locale - Locale string, e.g. 'en', 'pl'+ * @returns Schema.org formatted language code, e.g. 'en-US'+ */+export function toSchemaLanguage(locale: Locale) {+ return OPEN_GRAPH_LOCALE_BY_LOCALE[locale].replace("_", "-");+}diff --git a/src/lib/seo/render-json-ld.tsx b/src/lib/seo/render-json-ld.tsxnew file mode 100644index 0000000..95f238c--- /dev/null+++ b/src/lib/seo/render-json-ld.tsx@@ -0,0 +1,23 @@+import type { Graph, WithContext, Thing } from "schema-dts";++interface JsonLdScriptProps {+ id: string;+ data: Graph | WithContext<Thing>;+}++/**+ * Render JSON-LD as <script type="application/ld+json"> for SEO.+ *+ * @param {Object} props+ * @param {string} props.id - Unique id for script tag (for deduping/SSR stability).+ * @param {Graph | WithContext<Thing>} props.data - JSON-LD object (schema.org graph or context-wrapped thing).+ */+export function JsonLdScript({ id, data }: JsonLdScriptProps) {+ return (+ <script+ id={id}+ type="application/ld+json"+ dangerouslySetInnerHTML={{ __html: JSON.stringify(data) }}+ />+ );+}diff --git a/src/lib/seo/site-entities.ts b/src/lib/seo/site-entities.tsnew file mode 100644index 0000000..27336c4--- /dev/null+++ b/src/lib/seo/site-entities.ts@@ -0,0 +1,131 @@+/**+ * Site-wide JSON-LD entities (WebSite, Person, WebApplication).+ *+ * Content-accuracy rules:+ * - Never add JSON-LD for content not rendered on the page.+ * - Skip page-level JSON-LD on noindex routes (share links, non-indexable homepage).+ * - author.name = person name only (no role suffix per Google Article guide).+ */++import {+ FOUNDER_AVATAR_URL,+ GITHUB_URL,+ LINKEDIN_URL,+ PERSONAL_WEBSITE_URL,+ PROD_WEBSITE_URL,+ STATIC_ASSETS_URL,+ TWITTER_URL,+} from "@/config";++import { JSON_LD_BASE, JSON_LD_IDS } from "./json-ld-ids";++export const SITE_NAME =+ "EasyInvoicePDF | Free & Open-Source Invoice Generator – Live Preview, No Sign-Up";++const SITE_DESCRIPTION =+ "Create and download professional invoices instantly with EasyInvoicePDF. Free and open-source. No signup required.";++export const HOME_PAGE_DESCRIPTION =+ "Create invoices online for free with our PDF invoice generator. Customize templates, download instantly, no signup required.";++export const FOUNDER_PAGE_URL = `${PROD_WEBSITE_URL}/founder`;++export const FOUNDER_PAGE_TITLE = "Vlad Sazonau | Founder of EasyInvoicePDF";++export const FOUNDER_PAGE_DESCRIPTION =+ "Meet Vlad Sazonau, founder of EasyInvoicePDF, the free open-source invoice PDF generator with live preview. Product engineer and design enthusiast with 8+ years building digital products.";++export const OG_IMAGE_URL = `${STATIC_ASSETS_URL}/easy-invoice-opengraph-image.png?v=1755773879597`;++const WEB_APPLICATION_FEATURES = [+ "Live preview as you type",+ "No sign-up needed",+ "No ads",+ "Save seller and buyer details for future reuse",+ "Flexible tax: VAT, GST, custom options",+ "Fully customizable invoice templates",+ "Supports 10+ languages, all major currencies",+ "One-click instant PDF download",+ "Browser only, data stays private",+ "Share via link, no attachments",+ "Mobile friendly",+] as const;++export function buildSlimWebSite() {+ return {+ "@type": "WebSite" as const,+ "@id": JSON_LD_IDS.website,+ url: `${JSON_LD_BASE}/`,+ name: SITE_NAME,+ };+}++export function buildFullWebSite() {+ return {+ "@type": "WebSite" as const,+ "@id": JSON_LD_IDS.website,+ url: `${JSON_LD_BASE}/`,+ name: SITE_NAME,+ alternateName: ["EasyInvoicePDF", "easyinvoicepdf.com"],+ description: SITE_DESCRIPTION,+ inLanguage: "en",+ publisher: {+ "@id": JSON_LD_IDS.person,+ },+ image: {+ "@type": "ImageObject" as const,+ "@id": JSON_LD_IDS.websiteImage,+ url: OG_IMAGE_URL,+ caption: "EasyInvoicePDF",+ },+ };+}++export function buildPerson() {+ return {+ "@type": "Person" as const,+ "@id": JSON_LD_IDS.person,+ url: FOUNDER_PAGE_URL,+ name: "Uladzislau Sazonau",+ givenName: "Uladzislau",+ familyName: "Sazonau",+ description:+ "Founder of EasyInvoicePDF, the free open-source invoice PDF generator with live preview.",+ image: {+ "@type": "ImageObject" as const,+ "@id": JSON_LD_IDS.personImage,+ url: FOUNDER_AVATAR_URL,+ caption: "Uladzislau Sazonau",+ },+ sameAs: [PERSONAL_WEBSITE_URL, GITHUB_URL, LINKEDIN_URL, TWITTER_URL],+ };+}++export function buildWebApplication() {+ return {+ "@type": "WebApplication" as const,+ "@id": JSON_LD_IDS.app,+ url: `${JSON_LD_BASE}/`,+ name: SITE_NAME,+ description: SITE_DESCRIPTION,+ operatingSystem: "Web",+ applicationCategory: "BusinessApplication",+ featureList: [...WEB_APPLICATION_FEATURES],+ creator: {+ "@id": JSON_LD_IDS.person,+ },+ sameAs: [GITHUB_URL],+ offers: {+ "@type": "Offer" as const,+ price: "0",+ priceCurrency: "EUR",+ },+ };+}++export function buildSiteWideJsonLdGraph() {+ return {+ "@context": "https://schema.org" as const,+ "@graph": [buildSlimWebSite(), buildPerson()],+ };+}