A framework-agnostic <aasa-validator> web component. Drop it into any page — plain HTML, React,
Vue, Svelte — with a single element. It renders the form and results; a backend does
the actual cross-origin fetch.
<script type="module" src="https://unpkg.com/@linkforty/aasa-widget/dist/aasa-validator.global.js"></script>
<aasa-validator endpoint="https://your-backend.example/validate" advanced></aasa-validator>npm install @linkforty/aasa-widgetimport '@linkforty/aasa-widget'; // registers <aasa-validator><aasa-validator endpoint="/validate"></aasa-validator>| Attribute | Description |
|---|---|
endpoint |
Backend /validate URL (default /validate). |
advanced |
Show optional App ID / Team ID / Bundle ID fields. |
Emits an aasa-result CustomEvent (detail = the ValidationResult) after each validation.
The component uses Shadow DOM and is themeable via CSS custom properties on the element:
aasa-validator {
--aasa-color-accent: #6d28d9;
--aasa-color-pass: #15803d;
--aasa-font: 'Inter', sans-serif;
}Available variables: --aasa-color-accent, --aasa-color-pass, --aasa-color-warn,
--aasa-color-fail, --aasa-color-skip, --aasa-color-border, --aasa-color-bg,
--aasa-color-fg, --aasa-font.
MIT