Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Building for Deployment

lykn compile --strip-assertions packages/shortn-ui/ -o dist/

Deploy index.html and dist/ to any static host: GitHub Pages, Netlify, Cloudflare Pages, or a simple file server.

Configuration by HTML

For production, read the API base URL from a data attribute:

<body data-api-base="https://api.shortn.example.com">
(bind api-base document:body:dataset:api-base)

Same compiled JS deploys to dev and prod. No build-time substitution required.