- Free source past the balance: first video (<= 60 min) clipped whole for the
balance, any other clipped to the first N minutes. No 402 wall for free
accounts with >= PARTIAL_MIN_MINUTES left.
- cloud/lifecycle.py: welcome, first-clip nudge, win-back (optional
WINBACK_PROMO_CODE from env) and abandoned-checkout recovery via
after_expiration.recovery + checkout.session.expired.
- Commercial emails go through send_commercial_email: opt-out honoured,
unsubscribe footer and List-Unsubscribe headers (out-of-minutes too).
Free tools (no login), linked from nav and footer via /tools:
- /youtube-transcript-generator: reads the captions a video already has on
YouTube (free_tools.py, yt-dlp over the flat-rate static proxies only, never
the per-GB proxy, never the GPU). Per-IP limits, global daily cap, 24 h
cache, honest "no captions" answer with a CTA to the clip generator.
Copy / TXT / SRT export in the browser.
- /youtube-tag-generator: tags, 10 titles or a description from a brief, one
Gemini text call, rules taken from YouTube's own docs (sourced on the page).
- /video-aspect-ratio-converter: 16:9 to 9:16 in the browser with mediabunny
and WebCodecs (blur / crop / bars), nothing uploaded.
Tool pages keep the form in the static HTML; the behaviour is a Vite entry
(dashboard/tools) that vite-plugin-seo resolves by name.
New pages /auto-clip and /youtube-automation with real, blurred screenshots
of the Autopilot tab and the connect-an-agent card, Autopilot rules from
cloud/autopilot.py, plan prices from the billing API and aggregate usage
from the ledger (dated).
SEO fixes: titles/metas for /how-openshorts-works, /podcast-to-shorts, /mcp
and /free-ai-clip-generator (brand queries at pos 1-2 with <1% CTR); a free
AI clipper / free clipping website section and FAQ, and contextual "free AI
clip generator" anchors from sibling pages and the homepage.
Attribution: static pages now write the same first-touch os_attrib key the
app writes, so the signup is credited to the page the visit started on
(7,481 of 7,481 signups in 30 days said "/"). Signup, CheckoutStarted and
Subscribed carry landing_path / referrer_host / utm props in OpenPanel.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* feat(seo): measure the SEO pages, convert from them, and widen the cluster
The audit of 17-sep-2026 found the static SEO surface ranking at positions
1.8-4 with a 0.2-1.6% CTR while leaking every click it earned: the pages
carried no analytics at all (~424 clicks/month invisible, confirmed with
curl), the only link into the app was the fixed nav button, ten internal
links pointed at /cdn-cgi/l/email-protection, thirteen titles and
twenty-one descriptions were past the length Google renders, and every URL
in the sitemap claimed the same lastmod.
What changes, and how it is verified:
- Analytics (render.js). The shim, the %VITE_OPENPANEL_*% gate and
ANALYTICS_HOSTS are ported verbatim from index.html, plus the init call
the SPA makes from lib/consent.js — first-party measurement is exempt
from prior consent and always on, so there is nothing to ask here. Vite
only rewrites index.html and these files are emitted assets, so the
plugin substitutes the placeholders itself; unset still yields an inert
page. Verified by building with and without the variables.
- Body CTA (render.js, per-page copy in pages.js). Rendered between the
TL;DR and the body, with the text that fits each page's argument, and
never on legal pages or the 404. The link carries utm_* so
lib/attribution.js can post the click with the signup, and fires a
SeoCtaClick event so the CTA can be told apart from the nav button.
- Broken mailto links (legal.js). 46 plain-text addresses rewritten as
<a href="mailto:...">. Cloudflare Scrape Shield turns the bare address
into a /cdn-cgi/l/email-protection link, which is a 404 for crawlers.
- Titles and descriptions. Every title is now <=60 characters and every
description <=160, measured across all 35 emitted pages rather than
eyeballed (/gta-5-clips, merged the same week, was over on both). The
check is part of the verification, not a one-off.
- Resume the job after sign-in (App.jsx). Pressing "get free clips" with no
session opened the login modal and dropped the request: the magic link
lands on a fresh document, so the pasted URL was gone. The request is now
written down before the redirect and replayed after it, through the same
handleProcess, so the isSignedIn -> isManaged -> keysMissing gate that
decides billing is untouched: an unentitled account still lands on
#/pricing, with the request parked until it pays. Files cannot be
serialised, so those resume only within the same document.
- Gallery surface (app.py). The gallery head had no canonical; the JSON-LD
was built from html.escape() output, producing &amp;/&quot; and
valid-JSON-but-wrong names; the video page's nav and CTAs were relative
hrefs on the api host, where "/" is a 404 (the app is on www). JSON-LD is
now serialised as JSON with <> and & escaped as unicode, both pages carry
their canonical, and cross-host links are absolute. Verified by rendering
both routes with a monkeypatched gallery: the JSON parses and a title
with quotes, an ampersand and markup survives round-trip.
- New comparison pages (pages.js): /opus-clip-pricing, /opus-clip-free-
alternative, /opus-ai, /opus-pro, /vizard-ai-video-to-text,
/submagic-reviews and a Spanish index at /alternativas. They target
buying-intent variants (opus clips pricing, opus clip free trial, opus ai,
opus pro, is vizard ai free) that the existing pages do not answer, read
every price from data.js, and join the related-page ring, the footer and
the landing links. /alternatives/vizard also gained the brand Q&A ("Is
Vizard AI free?"), since "vizard ai" is how its volume is spelled.
Build: npm run build green (35 HTML files, all metadata in range, all
JSON-LD parseable). Tests: pytest tests/ -q, 777 passed, 19 skipped.
* fix(seo): CTA sin UTM interno, tutorial no pisa el job reanudado, mailto en el agente DMCA
- El CTA de las paginas SEO enlazaba al mismo origen con utm_*, lo que
sobrescribia la atribucion real del visitante en lib/attribution.js y
partia la sesion en OpenPanel. El evento SeoCtaClick sigue midiendo el clic.
- Alta nueva con un enlace aparcado: no abrir el tutorial intro encima del
job que se reanuda solo.
- LoginModal solo promete 'tu video esta guardado' cuando el payload es una
URL; un File no sobrevive al magic link en otra pestana.
- Los dos info@upload-post.com del agente DMCA tambien en mailto.
---------
Co-authored-by: victormanuel.caverogracia <>
93 of the 99 quota walls sampled on 16-sep-2026 were shown to accounts with
their 20 free minutes untouched that had pasted a 21-90 min video: asked to
pay before seeing one clip, most left Stripe without paying.
The 402 now carries partial_minutes (the floored balance, at least
PARTIAL_MIN_MINUTES and shorter than the source). The wall shows 'clip the
first N min' next to the plans and resubmits with max_minutes; the server
reserves min(asked, balance) and sets MAX_SOURCE_MINUTES, and main.py cuts
the source in place before anything reads it, so every later stage and the
editor see a short video. The cut travels in the resume manifest so a
redeploy cannot re-run the whole video on a partial reservation. Status and
the results view say which part of the video the clips came from.
The browser's `Subscribed` event is an intent signal: it misses renewals,
is eaten by ad-blockers and never sees a refund. The Stripe webhook is the
only place money is known for certain, so every invoice.paid (new /
renewal / upgrade), one-off top-up and charge.refunded (negative) is now
mirrored as OpenPanel's native `revenue` event, keyed by the user uuid the
browser and the job events already use.
Each event carries the acquisition channel read back from
signup_attribution (utm_source > referrer host > direct) plus plan,
interval, billing_reason and the Stripe id — so revenue is sliceable by
where the buyer came from. Fire-and-forget: never touches the webhook path.
The dashboard now `identify`s the signed-in user on every boot (OpenPanel
keeps the profile in memory only) and clears it on sign-out, so pageviews
and the server-side events share one profile.
Also fixes GET /api/billing/invoices, which called the non-existent
`database.SessionLocal` and 500'd for every user with a Stripe customer.
Claude-Session: https://claude.ai/code/session_01GPZmS33ubmHxHEc84X7sQy
Only 2.7% of cloud users who pass through the social flow ever connect a
network (146 of 5,406 Upload-Post profiles), yet publishing from the app
is the strongest retention loop we have. Show a dismissible banner right
when the clips appear - the moment with the best odds - prompting managed
users with no connected network to open the hosted connect page.
Instrumented like the other conversion moments: SocialNudgeSeen (once per
job), SocialNudgeConnect, SocialNudgeDismissed (persisted in localStorage,
never shown again). Hidden automatically once any network is linked.
Between 25-jul and 1-ago the upgrade modals logged 35 checkout clicks and
Stripe recorded one new subscription. Nothing in between was measured:
TopUpModal fired only QuotaWallCheckout/UpsellModalCheckout, and
CheckoutStarted lived exclusively in PricingSection, so the funnel could
not tell "never reached Stripe" from "reached Stripe and abandoned".
Both surfaces now emit the same chain — CheckoutStarted (click) ->
CheckoutRedirected (we hold a Stripe URL) -> CheckoutFailed (we don't,
with the reason) — segmented by a `source` prop of wall | upsell |
pricing. The modal also writes the os_pending_checkout stash that
PricingSection already wrote, so a plan bought from a modal stops losing
its revenue attribution on the Subscribed goal.
The modal copy now leads with what the user gets (clips ready to post, a
library that stays) and states the free-plan limit second. Leading with
the watermark and the 7-day deletion framed the paid tier as "pay to undo
restrictions we added", which is the losing side of an argument against
our own MIT repo, whose headline is "no watermarks, no limits".
GPU rendering and the bundled Gemini key stay out of the modal on
purpose: they are the real reasons the cloud beats self-hosting, but the
free plan already gets both, so they belong on the pricing surface facing
repo visitors rather than in a modal shown to someone already using them.
Every strategic read on the funnel so far has been inference: 94% of search
clicks are brand queries, so the real acquisition channel is upstream of
Google, but `users` stores no source at all and we cannot tell GitHub from
YouTube from a directory listing, nor say which channel produced the few
accounts that pay.
Capture `document.referrer` + UTM on the first page load, keep it in
localStorage (our own auth redirects destroy the referrer), and post it once
the account exists. First touch wins, so arriving from GitHub and later
returning via a search still attributes to GitHub.
- New `signup_attribution` table rather than columns on `users`: the schema
bootstrap is create_all, which adds missing tables but never ALTERs an
existing one, so this lands on deploy with no migration.
- Only recorded for accounts minutes old, so the 1196 existing users cannot
be mislabelled with their next login.
- ON CONFLICT DO NOTHING for two tabs finishing the same redirect; the client
call is fire-and-forget and can never fail a sign-in.
A declined card left the account in a state with no way out. `past_due` grants
no minutes, so the metering layer resolved the user to the free plan — which
meant /api/me reported status=null, the account page swapped "Manage billing"
for "Upgrade" (hiding the only button that fixes a card), and the checkout guard
then rejected the upgrade with a 409 that every call site swallowed into a
generic "Could not start checkout." Silently free, unwarned, unable to pay.
Found on 25-jul-2026 in prod: 14 subscriptions in this state, all first charges
that failed when the (now retired) 3-day trial ended. The trial is gone, but the
trap is not — a renewal failure or an abandoned 3DS payment reproduces it.
- metering: split `_subscription_row` (raw) from `_active_subscription`
(entitling), and expose both on the balance. Entitlement logic is unchanged.
- /api/me: report status/interval from a row needing attention when no
subscription entitles, plus `has_billing_account` to route the portal button.
- checkout: drop `incomplete` from the blocking states. Stripe collects nothing
on it and expires it within 24h, so blocking only stopped the user's retry.
Give past_due/unpaid a message that names the problem and the fix.
- account page: explain the failed payment inline with a link to the portal
instead of showing a bare "past_due" chip, and keep the portal reachable for
any Stripe relationship, live or broken.
- api client: throw a typed ApiError carrying the server's detail so callers
stop replacing real, actionable messages with generic copy.
Verified against a real DB: past_due stays blocked but visible and fixable,
incomplete can retry, canceled is silent and can subscribe again.
Add a small no-op-safe track() helper and emit three custom events so we can
see where users drop off between landing and paid: Signup on auth callback,
CheckoutStarted before the Stripe redirect, Subscribed on plan activation.
Plausible here is Community Edition (no revenue goals), so the plan price rides
along as a plain value_usd prop instead of a revenue field. Self-hosted builds
without the analytics script are unaffected (track() no-ops).