accessify-widget
v0.3.70
Published
Accessify-Widget accessibility widget for any website
Maintainers
Readme
accessify-widget
The public Accessify-Widget package for script-tag installs and npm-based integrations.
Included Feature Set
The public widget focuses on the adjustments that are most useful in day-to-day usage:
contrastwithlight,dark, andhightext-sizekeyboard-navfocus-highlightlink-highlightreading-guidereading-maskanimation-stophide-imagesbig-cursorpage-structurettstext-simplifyalt-textauto-scan
The widget UI ships with a built-in language selector for the top 20 world languages.
CDN Install
For Framer, Webflow, Shopify theme code, and plain HTML, use the public widget bundle:
<script
src="https://cdn.jsdelivr.net/npm/accessify-widget@latest/dist/widget.js"
data-accessify
data-position="bottom-right"
data-theme="auto"
defer
></script>Supported data attributes:
data-positiondata-themedata-langdata-featuresdata-openrouter-keydata-site-keydata-proxy-urldata-compactdata-z-index
If this URL returns 404, wait a minute for CDN propagation, then confirm the package was published to npm.
Framer
- Open Site Settings > General > Custom Code.
- Paste the snippet above into End of
</body>tag. - Publish your site.
You do not need to clone this repo or run a local build just to use the widget in Framer.
npm Usage
npm install accessify-widgetimport { init } from 'accessify-widget';
init({
position: 'bottom-right',
theme: 'auto',
lang: 'en',
features: ['contrast', 'text-size', 'focus-highlight'],
});Managed Mode
If you are using a dashboard-issued site key, the all-in-one bundle can also auto-configure proxy-backed AI features:
<script
src="https://cdn.jsdelivr.net/npm/accessify-widget@latest/dist/widget.js"
data-site-key="sk_site_your_key"
defer
></script>Recommended flow:
- Open
https://accessify-dashboard.pages.dev - Register your site domain
- Add an AI provider key in the dashboard
- Paste the generated
data-site-keysnippet into your site
In this mode, the browser only sees the public site key. The provider key stays behind the Accessify proxy on Cloudflare Workers.
There is currently no separate AI translation feature. text-simplify and alt-text are the supported AI flows today.
Direct AI Mode
For local testing or short-lived demos, you can also pass an OpenRouter key directly:
<script
src="https://cdn.jsdelivr.net/npm/accessify-widget@latest/dist/widget.js"
data-accessify
data-openrouter-key="sk-or-your-key"
defer
></script>This is less secure because the key is visible in the frontend source.
Guides
Source Layout
- Widget source:
packages/core/src - Dashboard source:
apps/dashboard/index.html - API proxy source:
packages/api/src
