Install

One line. Any site you own.

Typeset is a single script tag. Every platform below can carry it — the only question is which settings screen the paste box lives on. Each guide states the required plan before the steps, so nobody follows instructions their tier can’t use.

<script src="https://typeset.us/go@4.4.0.js" integrity="sha384-OPixflfJwk7LTcwv7u1n3T6ratxF6EeTJXn3D/TnLw9bCV2qkIVogco3QFZj6l5D" crossorigin="anonymous" defer></script>

This is typeset 4.4.0, pinned: the file never changes, and the integrity hash makes the browser refuse it if it ever did. Every pinned version and its hash are in sri.json. Not sure it worked? Paste your URL into the grader after — it reads your page, confirms the script is installed, and re-sets your opening paragraph both ways.

It sets paragraphs, list items, headings, captions and table cells, with fine word and letter spacing, hanging punctuation, and curly quotes in text declared English. On a page a framework renders on the server (Next.js, Gatsby, Framer, Astro), it waits for the page to hydrate before it sets anything. Put lang="en" on your <html> tag if the page is in English: stranded words such as “a” and “the” are kept off line ends only in text declared English (French, German and Spanish the same way). Anything it cannot improve keeps the browser’s layout.

The same file from npm via jsDelivr

<script src="https://cdn.jsdelivr.net/npm/typeset.us@4.4.0/dist/auto.js" integrity="sha384-OPixflfJwk7LTcwv7u1n3T6ratxF6EeTJXn3D/TnLw9bCV2qkIVogco3QFZj6l5D" crossorigin="anonymous" defer></script>

Byte for byte the file above, with the same integrity hash, served from the typeset.us npm package by jsDelivr.

typeset.us hosting has no uptime guarantee. For a strict Content Security Policy, or to keep every request on your own domain, install from npm and serve the file yourself. Building with npm? npm i -E typeset.us@4.4.0, then see the framework recipes. The unpinned go.js and go@4.js follow each 4.x release and cannot carry an integrity hash, so use them only for local testing.

The mark

Set with typeset

A small mark for the foot of a site that cares. Put your page’s own address in the link and it opens a live re-grade of the exact page it sits on — a re-runnable claim, not a sticker.

Set with typeset
<a href="https://typeset.us/fix?url=https://YOUR-PAGE.example/post"><img src="https://typeset.us/badge.svg" alt="Set with typeset" width="132" height="28"></a>