Widget.js default API URL changed to api.lthn.io. API docs page "Try"
links now use configurable API_URL. Base URL display is dynamic.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- /widget.js — drop-in search widget for partner sites
- Dark/light theme via data-theme attribute
- Checks availability, shows reserved/taken/available with register link
- CORS enabled on v1/* for cross-origin widget API calls
- XSS-safe: uses DOM methods, no innerHTML
Embed: <div id="lthn-search"></div><script src="https://lthn.io/widget.js"></script>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>