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.
Files changed (38) hide show
  1. package/README.md +57 -3
  2. package/dist/accessify.min.js +1 -1
  3. package/dist/accessify.min.js.map +1 -1
  4. package/dist/accessify.mjs +1 -1
  5. package/dist/{alt-text-CLxbmwG6.js → alt-text-CgzNGvdT.js} +2 -2
  6. package/dist/{alt-text-CLxbmwG6.js.map → alt-text-CgzNGvdT.js.map} +1 -1
  7. package/dist/contrast-CqsICAkU.js +139 -0
  8. package/dist/contrast-CqsICAkU.js.map +1 -0
  9. package/dist/{index-CUQfpnwR.js → index-qmiN2JAz.js} +1811 -736
  10. package/dist/index-qmiN2JAz.js.map +1 -0
  11. package/dist/{keyboard-nav-BdPyLaZt.js → keyboard-nav-DH4qBThF.js} +16 -12
  12. package/dist/keyboard-nav-DH4qBThF.js.map +1 -0
  13. package/dist/{page-structure-2X8mOSpC.js → page-structure-DTBqkrYs.js} +11 -7
  14. package/dist/page-structure-DTBqkrYs.js.map +1 -0
  15. package/dist/text-size-C6OFhCGi.js +186 -0
  16. package/dist/text-size-C6OFhCGi.js.map +1 -0
  17. package/dist/widget.js +1 -1
  18. package/dist/widget.js.map +1 -1
  19. package/package.json +1 -1
  20. package/dist/color-blind-0LFng55r.js +0 -108
  21. package/dist/color-blind-0LFng55r.js.map +0 -1
  22. package/dist/contrast-DCkE0NXZ.js +0 -64
  23. package/dist/contrast-DCkE0NXZ.js.map +0 -1
  24. package/dist/dyslexia-font-wONgIy2T.js +0 -77
  25. package/dist/dyslexia-font-wONgIy2T.js.map +0 -1
  26. package/dist/index-CUQfpnwR.js.map +0 -1
  27. package/dist/keyboard-nav-BdPyLaZt.js.map +0 -1
  28. package/dist/line-height-BT98qgEF.js +0 -54
  29. package/dist/line-height-BT98qgEF.js.map +0 -1
  30. package/dist/page-structure-2X8mOSpC.js.map +0 -1
  31. package/dist/saturation-D8ZXpWAN.js +0 -59
  32. package/dist/saturation-D8ZXpWAN.js.map +0 -1
  33. package/dist/spacing-DENai3JU.js +0 -106
  34. package/dist/spacing-DENai3JU.js.map +0 -1
  35. package/dist/text-align-BDRPqPvl.js +0 -51
  36. package/dist/text-align-BDRPqPvl.js.map +0 -1
  37. package/dist/text-size-B-uv436p.js +0 -69
  38. 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`, the package has not been published to npm yet. Publish the release first, then use the same snippet.
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`