clipwright/dashboard/index.html
victorcavero14 4fcc1cd5ed fix(analytics): make product analytics opt-in and host-scoped
The OpenPanel endpoint and client id were hardcoded in dashboard/index.html, so
every clone, fork and self-hosted deployment inherited them and reported into
the hosted instance's dashboard. src/lib/analytics.js already documents the
intended behaviour ('analytics can never leak into the open-source experience');
this makes that true.

- apiUrl and clientId now come from VITE_OPENPANEL_API_URL /
  VITE_OPENPANEL_CLIENT_ID, substituted by Vite at build time and unset by
  default, so npm run dev and a plain npm run build initialise nothing.
- The third-party script is only fetched once analytics is actually enabled: a
  default build makes no external analytics request at all.
- Reporting is additionally gated on a hostname allowlist, so a dist/ built with
  credentials stays inert if it is served anywhere else.

Verified with a headless browser against real production builds:
  credentials + non-allowlisted host -> no requests
  credentials + allowlisted host     -> initialises and reports
  no credentials + allowlisted host  -> no requests

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-28 09:58:33 +02:00

300 lines
No EOL
18 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/png" href="/logo-openshorts.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- Fonts: Lumen system (Instrument Serif display · Geist body · JetBrains Mono labels) -->
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Instrument+Serif&family=Geist:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap"
rel="stylesheet" />
<!-- Primary SEO Meta Tags -->
<title>OpenShorts - Open Source AI Clip Generator | Free Self-Hosted, Cloud from $12/mo</title>
<meta name="description" content="Open source AI clip generator. Turn long videos into viral 9:16 shorts for TikTok, Reels and Shorts. Self-host free under MIT, or use the cloud from $12/month with 20 free minutes." />
<meta name="author" content="OpenShorts" />
<meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1" />
<!-- Canonical must match the host actually served. The apex redirects to www,
so pointing this at the apex named a URL that only ever redirects. -->
<link rel="canonical" href="https://www.openshorts.app/" />
<!-- Open Graph / Facebook -->
<meta property="og:type" content="website" />
<meta property="og:url" content="https://www.openshorts.app/" />
<meta property="og:title"
content="OpenShorts - Open Source AI Clip Generator" />
<meta property="og:description"
content="Turn long videos into viral 9:16 shorts, or generate UGC videos with AI actors. Self-host free under MIT, or use the cloud from $12/month with 20 free minutes." />
<meta property="og:image" content="https://www.openshorts.app/og-image.png" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta property="og:site_name" content="OpenShorts" />
<meta property="og:locale" content="en_US" />
<!-- Twitter Cards -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:url" content="https://www.openshorts.app/" />
<meta name="twitter:title"
content="OpenShorts - Open Source AI Clip Generator" />
<meta name="twitter:description"
content="Self-host free under MIT with no watermark and no cap, or use OpenShorts Cloud from $12/month." />
<meta name="twitter:image" content="https://www.openshorts.app/og-image.png" />
<!-- JSON-LD Structured Data
Two products, described separately and on purpose. The previous graph
declared a single SoftwareApplication priced at 0, which is true of the
self-hosted edition and false of the hosted one, so engines summarised the
whole product as free. SoftwareApplication below is the MIT project;
Service is OpenShorts Cloud, with the real price range on it. -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@graph": [
{
"@type": "WebSite",
"@id": "https://www.openshorts.app/#website",
"url": "https://www.openshorts.app/",
"name": "OpenShorts",
"publisher": { "@id": "https://www.openshorts.app/#organization" },
"inLanguage": "en-US"
},
{
"@type": "WebPage",
"@id": "https://www.openshorts.app/#webpage",
"name": "OpenShorts - Open Source AI Clip Generator",
"description": "Open source AI clip generator that turns long videos into viral 9:16 clips for TikTok, Instagram Reels and YouTube Shorts. Free and self-hostable under MIT, or hosted from $12/month.",
"url": "https://www.openshorts.app/",
"isPartOf": { "@id": "https://www.openshorts.app/#website" },
"about": { "@id": "https://www.openshorts.app/#software" },
"datePublished": "2024-06-01",
"dateModified": "2026-07-27",
"inLanguage": "en-US",
"speakable": {
"@type": "SpeakableSpecification",
"cssSelector": ["h1", ".hero-description", ".faq-answer"]
}
},
{
"@type": "SoftwareApplication",
"@id": "https://www.openshorts.app/#software",
"name": "OpenShorts",
"alternateName": "OpenShorts self-hosted",
"description": "Open source AI clip generator, MIT licensed and self-hosted with Docker. Turns long-form videos into viral-ready 9:16 clips for TikTok, Instagram Reels and YouTube Shorts using Google Gemini 3.0 Flash for moment detection, faster-whisper for word-level subtitles and MediaPipe for face-tracked reframing. This edition is free with no watermark and no usage cap; you supply your own API keys. The hosted service is priced separately.",
"applicationCategory": "MultimediaApplication",
"operatingSystem": "Cross-platform (Docker)",
"url": "https://www.openshorts.app/",
"downloadUrl": "https://github.com/mutonby/openshorts",
"codeRepository": "https://github.com/mutonby/openshorts",
"license": "https://opensource.org/licenses/MIT",
"isAccessibleForFree": true,
"softwareVersion": "2.0",
"screenshot": "https://www.openshorts.app/og-image.png",
"featureList": [
"AI viral moment detection with Google Gemini 3.0 Flash",
"Smart 9:16 vertical cropping with MediaPipe face tracking and YOLOv8 fallback",
"Automatic subtitle generation with word-level timestamps",
"AI voice dubbing in 30+ languages via ElevenLabs",
"Local video file upload and YouTube link ingest",
"Hook text overlays with styled fonts",
"AI-generated video effects via FFmpeg",
"Direct posting to TikTok, Instagram Reels and YouTube Shorts",
"AI YouTube thumbnail generator",
"AI YouTube title generator with 10 viral suggestions",
"AI YouTube description generator with chapter timestamps",
"AI UGC video creator with AI actors and lip-sync from $0.65 per video",
"S3 cloud backup",
"Self-hosted Docker Compose deployment"
],
"offers": {
"@type": "Offer",
"price": "0",
"priceCurrency": "USD",
"availability": "https://schema.org/InStock",
"description": "Self-hosted edition. Free and open source under MIT, no watermark, no usage cap. Requires Docker and your own API keys."
},
"author": { "@id": "https://www.openshorts.app/#organization" }
},
{
"@type": "Service",
"@id": "https://www.openshorts.app/#cloud",
"name": "OpenShorts Cloud",
"serviceType": "Hosted AI video clipping service",
"description": "The hosted edition of OpenShorts. Runs the same pipeline on an NVIDIA GPU with the API keys included, so there is nothing to install or configure. The free tier is 20 minutes per month with a watermark and no credit card. Paid plans remove the watermark and start at $12/month for 100 minutes.",
"url": "https://www.openshorts.app/",
"provider": { "@id": "https://www.openshorts.app/#organization" },
"areaServed": "Worldwide",
"offers": {
"@type": "AggregateOffer",
"priceCurrency": "USD",
"lowPrice": "12",
"highPrice": "59",
"offerCount": "4",
"availability": "https://schema.org/InStock",
"offers": [
{
"@type": "Offer",
"name": "Free",
"price": "0",
"priceCurrency": "USD",
"description": "20 minutes of video per month, watermarked, no credit card required."
},
{
"@type": "Offer",
"name": "Starter",
"price": "12",
"priceCurrency": "USD",
"description": "100 minutes of video per month, no watermark.",
"priceSpecification": {
"@type": "UnitPriceSpecification",
"price": "12",
"priceCurrency": "USD",
"billingDuration": 1,
"billingIncrement": 1,
"unitCode": "MON"
}
}
]
}
},
{
"@type": "FAQPage",
"@id": "https://www.openshorts.app/#faq",
"mainEntity": [
{
"@type": "Question",
"name": "What is OpenShorts?",
"acceptedAnswer": {
"@type": "Answer",
"text": "OpenShorts is an open source AI clip generator that turns long videos (podcasts, webinars, livestreams, vlogs, interviews) into viral-ready 9:16 vertical clips for TikTok, Instagram Reels and YouTube Shorts. faster-whisper transcribes the audio with word-level timestamps, PySceneDetect finds the scene boundaries, and Google Gemini 3.0 Flash scores the transcript to pick the 3 to 15 strongest moments. Each clip is then reframed to vertical with MediaPipe face tracking and subtitled automatically. It comes in two editions: self-hosted, which is free and open source under MIT, and OpenShorts Cloud, which is the hosted service with a free 20 minute per month tier and paid plans from $12 per month."
}
},
{
"@type": "Question",
"name": "Is OpenShorts free? What is the catch?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Both answers are true of different editions, so the distinction matters. OpenShorts self-hosted is free and open source under the MIT licence: you run it with Docker on your own machine, bring your own API keys, and there is no watermark, no usage cap and no subscription. What it costs you is hardware and time, because on a typical CPU an 8-minute video takes 5 to 8 minutes to process, and you need your own Google Gemini API key, whose free tier covers 1,500 requests per day. OpenShorts Cloud is the hosted service: an NVIDIA GPU clips that same 8-minute video in about 50 seconds, the API keys are included, and auto-posting to TikTok, Instagram and YouTube is already wired up. Cloud has a free plan of 20 minutes per month with a watermark and no credit card, and paid plans from $12 per month for 100 minutes with no watermark, up to $59 per month. So it is free if you run it yourself, and paid above 20 minutes a month if you want it hosted."
}
},
{
"@type": "Question",
"name": "How much does OpenShorts Cloud cost?",
"acceptedAnswer": {
"@type": "Answer",
"text": "OpenShorts Cloud has a permanently free tier of 20 minutes of video per month, watermarked, with no credit card required. Paid plans remove the watermark and start at $12 per month for 100 minutes, rising to $59 per month at the top tier. This is separate from the self-hosted edition, which is free under MIT and has no cap because there is no metering in it."
}
},
{
"@type": "Question",
"name": "How does OpenShorts detect viral moments in videos?",
"acceptedAnswer": {
"@type": "Answer",
"text": "It uses a multi-step pipeline. faster-whisper transcribes the video with word-level timestamps. PySceneDetect identifies the scene boundaries. Google Gemini 3.0 Flash then receives the timestamped transcript and the scene data together, and returns the 3 to 15 strongest segments of 15 to 60 seconds each, scored on hook strength, emotional payload and whether the segment stands alone without its surrounding context. Passing the transcript and the scene boundaries together is what stops a clip from starting mid-shot."
}
},
{
"@type": "Question",
"name": "How does the AI vertical cropping work?",
"acceptedAnswer": {
"@type": "Answer",
"text": "There are two cropping modes. TRACK mode uses MediaPipe face detection with a YOLOv8 fallback to follow a single subject, damped by a stabiliser that holds the camera still inside a safe zone instead of chasing every head movement, which is what prevents the visible swinging that reads as amateur. GENERAL mode handles group shots and landscapes by preserving the full width over a blurred backdrop. A speaker tracker stops the crop from flipping between people and holds position through brief occlusions."
}
},
{
"@type": "Question",
"name": "Is there a free alternative to Opus Clip?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Yes. OpenShorts self-hosted is a free and open source alternative to Opus Clip, MIT licensed, with no watermark and no usage cap, running on your own machine via Docker. As of July 2026 Opus Clip costs $15 per month for the Starter plan with 150 minutes, and $29 per month for Pro with 300 minutes, on top of a watermarked free tier of 60 minutes. Opus Clip bills one credit per minute of source video imported rather than per clip exported. OpenShorts offers comparable AI moment detection using Google Gemini, face-tracked vertical cropping and automatic subtitles, and adds AI voice dubbing into 30+ languages, which Opus Clip does not have. Opus Clip ships a larger caption-style library and needs no setup."
}
},
{
"@type": "Question",
"name": "Can OpenShorts add subtitles and translate videos?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Yes. Subtitles are generated with faster-whisper at word-level timestamps and burned into the video with FFmpeg. For translation, ElevenLabs AI dubbing translates the audio into more than 30 languages while preserving the original speaker's voice characteristics, and the dubbed audio is then automatically re-transcribed so the burned-in subtitles are in the target language rather than the original."
}
},
{
"@type": "Question",
"name": "Is there an open source clip generator?",
"acceptedAnswer": {
"@type": "Answer",
"text": "OpenShorts is the open source option in this category, MIT licensed with full source at github.com/mutonby/openshorts, self-hosted with Docker Compose. Opus Clip, Klap, Vizard and Submagic are all closed-source cloud products; as of July 2026 their entry prices are $15, $29, $19.99 and around $14 per month respectively. Self-hosting means the source video never leaves your machine and you can change how the pipeline behaves rather than filing a feature request."
}
}
]
},
{
"@type": "Organization",
"@id": "https://www.openshorts.app/#organization",
"name": "OpenShorts",
"url": "https://www.openshorts.app/",
"logo": {
"@type": "ImageObject",
"url": "https://www.openshorts.app/logo-openshorts.png"
},
"description": "OpenShorts builds an open source AI clip generator that turns long-form video into vertical short-form clips, available both as MIT-licensed self-hosted software and as a hosted service.",
"sameAs": [
"https://github.com/mutonby/openshorts",
"https://www.aitoolnet.com/openshorts",
"https://creatorstoolbox.com/tools/openshorts"
]
}
]
}
</script>
<!-- Analytics — opt-in, disabled by default.
A plain `npm run build` (and every local `npm run dev`) leaves the two
VITE_OPENPANEL_* variables unset, so nothing is initialised, no third
party script is fetched and no request leaves the browser. Self-hosted
instances are silent unless you deliberately turn this on.
To collect analytics for your own deployment: point
VITE_OPENPANEL_API_URL / VITE_OPENPANEL_CLIENT_ID at your own OpenPanel
instance (see .env.example) and add your hostname to ANALYTICS_HOSTS. -->
<script>
window.op = window.op || function () { var n = []; return new Proxy(function () { arguments.length && n.push([].slice.call(arguments)); }, { get: function (t, r) { return "q" === r ? n : function () { n.push([r].concat([].slice.call(arguments))); }; }, has: function (t, r) { return "q" === r; } }); }();
(function () {
// Vite substitutes these at build time and leaves the literal
// "%VITE_...%" placeholder in place when the variable is undefined.
var apiUrl = "%VITE_OPENPANEL_API_URL%";
var clientId = "%VITE_OPENPANEL_CLIENT_ID%";
var unset = function (v) { return !v || v.charAt(0) === "%"; };
if (unset(apiUrl) || unset(clientId)) return;
// Second gate: hosts allowed to report. A dist/ built with credentials
// stays inert anywhere else (a fork, a mirror, a preview domain), so a
// deployment can never report into somebody else's dashboard.
var ANALYTICS_HOSTS = /^(www\.)?openshorts\.app$/;
if (!ANALYTICS_HOSTS.test(location.hostname)) return;
window.op("init", {
apiUrl: apiUrl,
clientId: clientId,
trackScreenViews: true,
trackOutgoingLinks: true,
trackAttributes: true,
});
var s = document.createElement("script");
s.src = "https://openpanel.dev/op1.js";
s.defer = true;
s.async = true;
document.head.appendChild(s);
})();
</script>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.jsx"></script>
</body>
</html>