accessify-widget 0.1.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +57 -3
- package/dist/accessify.min.js +1 -1
- package/dist/accessify.min.js.map +1 -1
- package/dist/accessify.mjs +1 -1
- package/dist/{alt-text-CLxbmwG6.js → alt-text-CgzNGvdT.js} +2 -2
- package/dist/{alt-text-CLxbmwG6.js.map → alt-text-CgzNGvdT.js.map} +1 -1
- package/dist/contrast-CqsICAkU.js +139 -0
- package/dist/contrast-CqsICAkU.js.map +1 -0
- package/dist/{index-CUQfpnwR.js → index-qmiN2JAz.js} +1811 -736
- package/dist/index-qmiN2JAz.js.map +1 -0
- package/dist/{keyboard-nav-BdPyLaZt.js → keyboard-nav-DH4qBThF.js} +16 -12
- package/dist/keyboard-nav-DH4qBThF.js.map +1 -0
- package/dist/{page-structure-2X8mOSpC.js → page-structure-DTBqkrYs.js} +11 -7
- package/dist/page-structure-DTBqkrYs.js.map +1 -0
- package/dist/text-size-C6OFhCGi.js +186 -0
- package/dist/text-size-C6OFhCGi.js.map +1 -0
- package/dist/widget.js +1 -1
- package/dist/widget.js.map +1 -1
- package/package.json +1 -1
- package/dist/color-blind-0LFng55r.js +0 -108
- package/dist/color-blind-0LFng55r.js.map +0 -1
- package/dist/contrast-DCkE0NXZ.js +0 -64
- package/dist/contrast-DCkE0NXZ.js.map +0 -1
- package/dist/dyslexia-font-wONgIy2T.js +0 -77
- package/dist/dyslexia-font-wONgIy2T.js.map +0 -1
- package/dist/index-CUQfpnwR.js.map +0 -1
- package/dist/keyboard-nav-BdPyLaZt.js.map +0 -1
- package/dist/line-height-BT98qgEF.js +0 -54
- package/dist/line-height-BT98qgEF.js.map +0 -1
- package/dist/page-structure-2X8mOSpC.js.map +0 -1
- package/dist/saturation-D8ZXpWAN.js +0 -59
- package/dist/saturation-D8ZXpWAN.js.map +0 -1
- package/dist/spacing-DENai3JU.js +0 -106
- package/dist/spacing-DENai3JU.js.map +0 -1
- package/dist/text-align-BDRPqPvl.js +0 -51
- package/dist/text-align-BDRPqPvl.js.map +0 -1
- package/dist/text-size-B-uv436p.js +0 -69
- package/dist/text-size-B-uv436p.js.map +0 -1
package/README.md
CHANGED
|
@@ -2,13 +2,35 @@
|
|
|
2
2
|
|
|
3
3
|
The public Accessify-Widget package for script-tag installs and npm-based integrations.
|
|
4
4
|
|
|
5
|
+
## Included Feature Set
|
|
6
|
+
|
|
7
|
+
The public widget focuses on the adjustments that are most useful in day-to-day usage:
|
|
8
|
+
|
|
9
|
+
- `contrast` with `light`, `dark`, and `high`
|
|
10
|
+
- `text-size`
|
|
11
|
+
- `keyboard-nav`
|
|
12
|
+
- `focus-highlight`
|
|
13
|
+
- `link-highlight`
|
|
14
|
+
- `reading-guide`
|
|
15
|
+
- `reading-mask`
|
|
16
|
+
- `animation-stop`
|
|
17
|
+
- `hide-images`
|
|
18
|
+
- `big-cursor`
|
|
19
|
+
- `page-structure`
|
|
20
|
+
- `tts`
|
|
21
|
+
- `text-simplify`
|
|
22
|
+
- `alt-text`
|
|
23
|
+
- `auto-scan`
|
|
24
|
+
|
|
25
|
+
The widget UI ships with a built-in language selector for the top 20 world languages.
|
|
26
|
+
|
|
5
27
|
## CDN Install
|
|
6
28
|
|
|
7
29
|
For Framer, Webflow, Shopify theme code, and plain HTML, use the public widget bundle:
|
|
8
30
|
|
|
9
31
|
```html
|
|
10
32
|
<script
|
|
11
|
-
src="https://cdn.jsdelivr.net/npm/accessify-widget/dist/widget.js"
|
|
33
|
+
src="https://cdn.jsdelivr.net/npm/accessify-widget@latest/dist/widget.js"
|
|
12
34
|
data-accessify
|
|
13
35
|
data-position="bottom-right"
|
|
14
36
|
data-theme="auto"
|
|
@@ -28,7 +50,7 @@ Supported data attributes:
|
|
|
28
50
|
- `data-compact`
|
|
29
51
|
- `data-z-index`
|
|
30
52
|
|
|
31
|
-
If this URL returns `404`,
|
|
53
|
+
If this URL returns `404`, wait a minute for CDN propagation, then confirm the package was published to npm.
|
|
32
54
|
|
|
33
55
|
## Framer
|
|
34
56
|
|
|
@@ -61,12 +83,38 @@ If you are using a dashboard-issued site key, the all-in-one bundle can also aut
|
|
|
61
83
|
|
|
62
84
|
```html
|
|
63
85
|
<script
|
|
64
|
-
src="https://cdn.jsdelivr.net/npm/accessify-widget/dist/widget.js"
|
|
86
|
+
src="https://cdn.jsdelivr.net/npm/accessify-widget@latest/dist/widget.js"
|
|
65
87
|
data-site-key="sk_site_your_key"
|
|
66
88
|
defer
|
|
67
89
|
></script>
|
|
68
90
|
```
|
|
69
91
|
|
|
92
|
+
Recommended flow:
|
|
93
|
+
|
|
94
|
+
1. Open `https://accessify-dashboard.pages.dev`
|
|
95
|
+
2. Register your site domain
|
|
96
|
+
3. Add an AI provider key in the dashboard
|
|
97
|
+
4. Paste the generated `data-site-key` snippet into your site
|
|
98
|
+
|
|
99
|
+
In this mode, the browser only sees the public site key. The provider key stays behind the Accessify proxy on Cloudflare Workers.
|
|
100
|
+
|
|
101
|
+
There is currently no separate AI translation feature. `text-simplify` and `alt-text` are the supported AI flows today.
|
|
102
|
+
|
|
103
|
+
## Direct AI Mode
|
|
104
|
+
|
|
105
|
+
For local testing or short-lived demos, you can also pass an OpenRouter key directly:
|
|
106
|
+
|
|
107
|
+
```html
|
|
108
|
+
<script
|
|
109
|
+
src="https://cdn.jsdelivr.net/npm/accessify-widget@latest/dist/widget.js"
|
|
110
|
+
data-accessify
|
|
111
|
+
data-openrouter-key="sk-or-your-key"
|
|
112
|
+
defer
|
|
113
|
+
></script>
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
This is less secure because the key is visible in the frontend source.
|
|
117
|
+
|
|
70
118
|
## Guides
|
|
71
119
|
|
|
72
120
|
- [Quick Start](https://github.com/maddesv1-ctrl/accessify-widget/blob/main/apps/docs/src/content/docs/getting-started/quick-start.md)
|
|
@@ -74,3 +122,9 @@ If you are using a dashboard-issued site key, the all-in-one bundle can also aut
|
|
|
74
122
|
- [Custom HTML](https://github.com/maddesv1-ctrl/accessify-widget/blob/main/apps/docs/src/content/docs/platforms/html.md)
|
|
75
123
|
- [Webflow](https://github.com/maddesv1-ctrl/accessify-widget/blob/main/apps/docs/src/content/docs/platforms/webflow.md)
|
|
76
124
|
- [Shopify](https://github.com/maddesv1-ctrl/accessify-widget/blob/main/apps/docs/src/content/docs/platforms/shopify.md)
|
|
125
|
+
|
|
126
|
+
## Source Layout
|
|
127
|
+
|
|
128
|
+
- Widget source: `packages/core/src`
|
|
129
|
+
- Dashboard source: `apps/dashboard/index.html`
|
|
130
|
+
- API proxy source: `packages/api/src`
|