Live, through the same one tag
What follows is the embed running on this page from <script src="sizer.js"></script>, exactly the line you paste. Move a slider.
The one line to paste
This tag loads the file from this page's own address, so it works on any page straight away.
<script src="sizer.js"></script>
Download sizer.js, upload it to your site (on Next.js, the public folder), and change the src to wherever you put it. Your copy then never depends on ours.
<script src="/sizer.js"></script>Download sizer.js
Install note
- Where to paste it. Wherever the sizer should appear: under the plans on your pricing page, on a Title II or education page, or inside a blog post. Any editor with an HTML or embed block takes it. The sizer draws itself right where the tag sits and fills the width of its column.
- If the tag has to live somewhere else (a layout file, the page head, a tag manager), put
<div data-viddyscribe-sizer></div>where the sizer should appear and load the script once, anywhere. It fills every such placeholder on the page, including one that appears after the script has run. A tag in the body should come after its placeholder, or sit in the head. - On Next.js, which viddyscribe.com runs on: put the placeholder div in the page and load the file once, with a plain script tag or with
<Script src="/sizer.js" strategy="afterInteractive" />fromnext/script. In a browser we tested the three things that can happen there: the script in the head, the script added later by another script (the waynext/scriptadds it), and a placeholder that appears after the script has already run (what a client-side page change does). We did not test it inside a Next.js build itself. Leave offtype="module". - Twice on one page is fine. Each tag or placeholder gets its own sizer, and they do not interfere.
- Options go on the tag (or on the placeholder div, which wins):
Attribute What it does Default data-pricePlan price per month, in dollars 900data-includedMinutes included in that price 500data-extraPrice of each extra minute 1.80data-planPlan name shown next to the cost Standarddata-themelightordark, for a dark sectionlightdata-pricing-urlWhere "See pricing" under the sizer links viddyscribe.com/pricing data-targetTag only: a CSS selector for where to draw it none - When the plan price changes. Edit the one line at the top of
sizer.js,var PLAN = { name: 'Standard', price: 900, included: 500, extra: 1.80 };, and every page that loads the file follows. To change it on one page only, set the attributes, for example<script src="/sizer.js" data-price="950" data-extra="1.90"></script>. The note under the sizer and its "How this is worked out" line are written from these values, so no old price is left behind.
The same file, pasted a second time, for a dark section
This copy is <script src="sizer.js" data-theme="dark"></script>, for a band like your homepage hero. It runs alongside the one above.
How the numbers are worked out
The same three inputs, ranges, formula and rounding as the sizer in the article. We checked the embed against the article's own script at all 96,000 positions the three sliders can take: every figure matches.
- Minutes to describe
- recorded lectures × average length in minutes × the share that needs description after triage
- Hours
- minutes ÷ 60
- Cost
- $900 for the month, plus $1.80 for every minute over the 500 included. A library under 500 minutes costs $900.
- Rounding
- to whole numbers for display, halves rounded up
At the starting values: 2,000 lectures × 50 minutes × 30% = 30,000 minutes, or 500 hours. Cost: $900 + (30,000 minus 500) × $1.80 = $54,000.
The price is your Standard plan as published on viddyscribe.com/pricing, read on 23 November 2026: $900 a month, includes 500 minutes a month, additional minutes at $1.80 a minute. That is the monthly price; the page also offers annual billing at 15% off, which the sizer leaves out.
What it assumes: the whole backlog is described in one month on the Standard plan. Spread over several months, each month adds the plan price. Your page says bigger libraries get lower per-minute pricing on a custom plan, and the note under the sizer says so too; the sizer does not guess that figure.
What is in the file, and what is not
- One file, under 14 KB, no dependencies. It makes no network calls, sets no cookies, stores nothing and tracks nobody.
- It draws inside its own shadow root, so your site's CSS does not reach in and its CSS does not leak out. We tested it on a page that sets
* { box-sizing: content-box; font-size: 30px }: it looks the same. It takes your page's font, so it reads as part of your site. - Keyboard and screen reader: Tab reaches each slider and the arrow keys move it one step. A screen reader hears each value with its unit ("2,000 lectures") and, once a slider stops moving, one short summary of minutes, hours and cost. Every text colour passes WCAG AA contrast in both themes.
- It adds no global variables to the page.