proof/docs/install
install

Install

Each library is one JavaScript module. Put it in your project and import it.

Download a file

Every library page has a download command. This one fetches ink:

curl -O /proof/r/ink.js

You can also copy the source from the bottom of any library page.

Import it

The files are standard ES modules. They work in a plain script tag, and in any bundler such as Vite, Astro or Next.js.

index.html
<script type="module">
  import { ink } from './ink.js'
  ink(document.querySelector('h1'))
</script>

Update later

The file is yours, so updates never arrive on their own. Read the changelog, then download the file again if you want the change. If you edited your copy, compare it with the new one first.