Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

README.md

Next.js example

App Router skeleton. Components must be rendered as client components because they use browser APIs (Canvas, File, Blob, Workers).

Setup

npx create-next-app@latest my-app --ts --app --no-tailwind
cd my-app
npm install @convertprivately/core @convertprivately/react \
  heic2any browser-image-compression pdf-lib pdfjs-dist \
  tesseract.js qrcode papaparse

app/page.tsx

"use client";

import { HeicConvert } from "@convertprivately/react";

export default function Page() {
  return (
    <main>
      <h1>Convert HEIC privately</h1>
      <HeicConvert />
    </main>
  );
}

The "use client" directive is required — these components use useState, useRef, and browser-only APIs.

SEO note

Add noindex to pages that mirror convertprivately.com tools, or apply canonical pointing at the canonical URL on convertprivately.com, to avoid SEO cannibalization.

// app/convert-heic/page.tsx
export const metadata = {
  robots: { index: false, follow: true },
  alternates: { canonical: "https://convertprivately.com/heic-convert" },
};