@yuktishaalaa/yuktai 5.2.0 → 5.3.0

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 CHANGED
@@ -1,12 +1,13 @@
1
1
  # @yuktishaalaa/yuktai
2
2
 
3
- > Universal Next.js plugin for accessibility, AI, and data. One install brings WCAG 2.2 auto-fix, in-browser RAG, an AI agent, code generation, an accessible data grid with Agentic AI + WebMCP, and an agentic toolkit that audits, explains and fixes pages and answers questions about your data. Zero API keys, zero cost, works offline.
3
+ > Universal accessibility, AI and data toolkit for Next.js, React **and plain HTML**. One install (or one script tag) brings WCAG 2.2 auto-fix, in-browser RAG, an AI agent, code generation, an accessible data grid with Agentic AI + WebMCP, and an agentic toolkit that audits, explains and fixes pages and answers questions about your data. Zero API keys, zero cost, works offline.
4
4
 
5
5
  [![npm](https://img.shields.io/npm/v/@yuktishaalaa/yuktai)](https://www.npmjs.com/package/@yuktishaalaa/yuktai)
6
6
  [![downloads](https://img.shields.io/npm/dm/@yuktishaalaa/yuktai)](https://www.npmjs.com/package/@yuktishaalaa/yuktai)
7
- [![license](https://img.shields.io/badge/license-ISC-brightgreen)](./LICENSE)
7
+ [![license](https://img.shields.io/badge/license-GPL--3.0-blue)](./LICENSE)
8
8
  [![node](https://img.shields.io/badge/node-%3E%3D18-blue)](https://nodejs.org)
9
9
  [![Next.js](https://img.shields.io/badge/Next.js-13%2B-black)](https://nextjs.org)
10
+ [![XERJ Corpus Hub contributor](https://hub.xerj.org/contributors/sandeepmiriyala03/badge.svg)](https://hub.xerj.org/contributors/sandeepmiriyala03)
10
11
 
11
12
  Built in free time by [Sandeep Miriyala](https://github.com/sandeepmiriyala03).
12
13
 
@@ -28,7 +29,7 @@ So I built yuktai, one weekend and one late night at a time.
28
29
 
29
30
  ## What's inside
30
31
 
31
- Six modules ship in a single npm package:
32
+ Six modules ship in a single npm package, for React/Next.js and, since v5.3, for plain HTML pages with one script tag:
32
33
 
33
34
  | Module | Features | What it does |
34
35
  |---|---|---|
@@ -37,11 +38,71 @@ Six modules ship in a single npm package:
37
38
  | **3. In-Tab RAG** | 11 | Ask questions about any page, offline, no API |
38
39
  | **4. Autonomous AI Agent** | 13 | Natural-language browser guidance |
39
40
  | **5. Vibe Coder** | 19 | Generate full Next.js projects from plain English |
40
- | **6. Agentic AI Toolkit** 🆕 | 10 | Accessibility copilot, QA reports, form and design review, smart grid queries, BI answers, multi-step tasks, voice settings |
41
+ | **6. Agentic AI Toolkit** | 10 | Accessibility copilot, QA reports, form and design review, smart grid queries, BI answers, multi-step tasks, voice settings |
42
+ | **Vanilla JS build** 🆕 | All | Every module above for plain HTML, CSS and JavaScript: no React, no build step |
41
43
 
42
44
  ---
43
45
 
44
- ## What's new in v5.1: Agentic AI Toolkit
46
+ ## What's new in v5.3: Vanilla JS (plain HTML)
47
+
48
+ All of yuktai now works on any HTML page, without React or a build step. The vanilla build is bundled from the same source as the npm package, so a question gets the same answer in React and in plain HTML.
49
+
50
+ ```html
51
+ <script>
52
+ window.YUKTAI_CONFIG = { position: "right", showPageTools: true } // optional
53
+ </script>
54
+ <script src="https://cdn.jsdelivr.net/npm/@yuktishaalaa/yuktai@5.3.0/vanilla/index.min.js"></script>
55
+
56
+ <div id="staff"></div>
57
+ <script>
58
+ const grid = yuktai.renderGrid("#staff", {
59
+ data: rows,
60
+ rowKey: "id",
61
+ columns: [
62
+ { key: "name", label: "Name" },
63
+ { key: "salary", label: "Salary", type: "number" },
64
+ { key: "joined", label: "Joined", type: "date" },
65
+ ],
66
+ agentic: true, // question bar: "salary over 1 lakh", "average salary by department"
67
+ ai: true, // assistant: custom rules, phrases, grid tools, voice input
68
+ locale: "en-IN", // or "te-IN" for Telugu UI and messages
69
+ webmcp: true,
70
+ })
71
+
72
+ await grid.ask("salary over 1 lakh in Hyderabad")
73
+ yuktai.mountAgenticPanel("#tools", { defaultTab: "qa" }) // Copilot, QA, Forms, Design, Ask, Voice
74
+ </script>
75
+ ```
76
+
77
+ | React / Next.js | Vanilla JS |
78
+ |---|---|
79
+ | `<YuktaiGrid>` | `yuktai.renderGrid(container, options)` |
80
+ | `useAgenticGrid` + `<AgenticGridBar>` | `yuktai.createAgenticGrid()` + `yuktai.mountAgenticGridBar()`, or `agentic: true` |
81
+ | `useYuktaiGridAgent` | `yuktai.createGridAgent()` |
82
+ | `<YuktaiGridWebMCP>` | `yuktai.registerWebMCP()`, or `webmcp: true` |
83
+ | `<AgenticPanel>` | `yuktai.mountAgenticPanel()` |
84
+ | `<YuktAIWrapper>` | Automatic floating ♿ button (and 🛠 page tools with `showPageTools: true`) |
85
+ | Every function (`runQaAudit`, `askInsight`, `parseAmount`, …) | Same names on `window.yuktai` |
86
+
87
+ **Grid features in the vanilla build:**
88
+ - search, sort, page-size switching, row selection and CSV export (Excel-safe)
89
+ - table, card or auto view; 5 WCAG themes; Telugu UI
90
+ - loading and empty states; row highlighting that scrolls to the row
91
+ - ARIA grid keyboard navigation: arrow keys, Home/End, Page Up/Down, Space to select, Enter to open
92
+
93
+ **Tested** in Chromium: 37 end-to-end checks pass, with axe-core reporting 0 violations and no console errors. Open `vanilla/index.html` in the repo for a demo of every feature, including a Telugu grid. Full API: [`vanilla/README.md`](./vanilla/README.md).
94
+
95
+ ### Accessibility engine fixes in v5.3 (React and vanilla)
96
+
97
+ - Auto-fix no longer adds an `aria-label` to form fields that already have a `<label>`. Before this, it replaced the name that screen readers announce.
98
+ - Buttons and links hidden at scan time are no longer labelled "button" or "link".
99
+ - `<header>` and `<footer>` inside sections and dialogs no longer become page-level banner and contentinfo landmarks.
100
+ - The fix count only includes fixes that were actually applied.
101
+ - Visual alert colours now meet a 4.5:1 contrast ratio.
102
+
103
+ ---
104
+
105
+ ## What's new in v5.2: Agentic AI Toolkit
45
106
 
46
107
  Ten agentic features, all running in the browser. No API keys, and no page or grid data leaves the device unless you plug in your own model through a `generate` or `summarize` hook.
47
108
 
@@ -149,6 +210,8 @@ Everything works offline with rules and keyword search. To get model-written ans
149
210
 
150
211
  - Questions are understood with rules, not a language model, so unusual phrasing may need rewording. The parser returns `notes` explaining any assumption it made.
151
212
  - The QA and design checks are automatic heuristics. They catch common problems but don't replace testing with real users and assistive technology.
213
+ - Smart grid queries, page answers and BI answers are in English today. Telugu and Hindi data questions are not parsed yet; use `customRules` with your own phrases for them.
214
+ - Voice accessibility commands understand English and Telugu, not yet Hindi or other languages.
152
215
 
153
216
  ---
154
217
 
@@ -171,7 +234,7 @@ Everything works offline with rules and keyword search. To get model-written ans
171
234
 
172
235
  | Device | Browser | Core features | AI engine |
173
236
  |---|---|---|---|
174
- | 🖥 Desktop | Chrome 147+ | ✅ All | Gemini Nano |
237
+ | 🖥 Desktop | Chrome 147+ (needed only for Gemini Nano) | ✅ All | Gemini Nano |
175
238
  | 🖥 Desktop | Firefox / Edge / Safari | ✅ All | Transformers.js |
176
239
  | 📱 Android | Chrome Mobile | ✅ All | Transformers.js |
177
240
  | 📱 iOS | Safari Mobile | ✅ All | Transformers.js |
@@ -202,7 +265,13 @@ yarn add @yuktishaalaa/yuktai
202
265
  pnpm add @yuktishaalaa/yuktai
203
266
  ```
204
267
 
205
- Requirements: Node.js 18+, npm 8+, Next.js 13+.
268
+ **Plain HTML (no install)**
269
+
270
+ ```html
271
+ <script src="https://cdn.jsdelivr.net/npm/@yuktishaalaa/yuktai@5.3.0/vanilla/index.min.js"></script>
272
+ ```
273
+
274
+ Requirements: Node.js 18+, npm 8+, Next.js 13+ (React builds only; the vanilla build needs only a browser).
206
275
 
207
276
  ---
208
277
 
@@ -272,7 +341,7 @@ export default function RootLayout({ children }: { children: React.ReactNode })
272
341
 
273
342
  That's it. Floating buttons appear on every page: ♿ opens the accessibility panel, 💬 opens "Ask this page", and the agent button opens the AI agent.
274
343
 
275
- To add the v5.1 agentic tools, place `<AgenticPanel />` or `useAgenticGrid` in any client component (see [What's new in v5.1](#whats-new-in-v51-agentic-ai-toolkit)).
344
+ To add the v5.2 agentic tools, place `<AgenticPanel />` or `useAgenticGrid` in any client component (see [What's new in v5.2](#whats-new-in-v52-agentic-ai-toolkit)).
276
345
 
277
346
  ### Wrapper props
278
347
 
@@ -392,7 +461,7 @@ export default function EmployeesPage() {
392
461
  - Keyboard navigation, ARIA grid semantics, 44×44 targets
393
462
  - English and Telugu UI
394
463
  - Embedded Grid AI Assistant with voice and chat
395
- - **New in v5.1:** compound natural-language questions, anomaly detection and BI answers through `useAgenticGrid`
464
+ - **New in v5.2:** compound natural-language questions, anomaly detection and BI answers through `useAgenticGrid`
396
465
 
397
466
  ### Grid AI Assistant
398
467
 
@@ -405,7 +474,7 @@ Runs embedded in the grid or as a standalone component. Intent parsing runs loca
405
474
  onSearch={handleSearch}
406
475
  onSort={handleSort}
407
476
  language="te-IN" // AI UI and responses: en-US | te-IN
408
- inputLanguage="te-IN" // voice input: en-US | te-IN
477
+ inputLanguage="te-IN" // voice input: en-IN, en-US or any of the 22 Indian languages
409
478
  embedded
410
479
  />
411
480
  ```
@@ -600,7 +669,7 @@ Retrieval-Augmented Generation running entirely in the browser. It extracts text
600
669
 
601
670
  **What I learned:** Transformers.js kept crashing on iOS Safari with out-of-memory errors. Quantization (same model, 75% smaller) fixed it. DistilBERT gave short, useless spans; `flan-t5-small` gives real sentences.
602
671
 
603
- **New in v5.1:** `createContextIndex` also searches grid rows (including rows on other pages of the grid) and your own documents, with keyword search that handles Telugu and Hindi script correctly.
672
+ **New in v5.2:** `createContextIndex` also searches grid rows (including rows on other pages of the grid) and your own documents, with keyword search that handles Telugu and Hindi script correctly.
604
673
 
605
674
  ---
606
675
 
@@ -633,7 +702,7 @@ No AI writes the code. It's pure template engineering.
633
702
 
634
703
  ## Module 6: Agentic AI Toolkit 🆕
635
704
 
636
- The ten v5.1 features, described in detail in [What's new in v5.1](#whats-new-in-v51-agentic-ai-toolkit).
705
+ The ten v5.2 features, described in detail in [What's new in v5.2](#whats-new-in-v52-agentic-ai-toolkit).
637
706
 
638
707
  - **Copilot and QA:** 15 WCAG checks, plain-English explanations, safe fixes with undo, downloadable reports
639
708
  - **Forms and design review:** labels, autocomplete, error messages, focus states, hierarchy, clutter, senior-friendly tips
@@ -686,10 +755,10 @@ Props: `size` (default 20), `color` (default `currentColor`), `strokeWidth` (def
686
755
 
687
756
  - **Zero API keys, zero cost, zero telemetry.** Everything runs in the browser.
688
757
  - **Zero injected ids.** Injected nodes are tracked by JavaScript references, so they never collide with your app's ids.
689
- - **Zero framework lock-in.** `core/renderer.ts` has no framework imports.
758
+ - **Zero framework lock-in.** `core/renderer.ts` has no framework imports, and the vanilla build runs on any HTML page.
690
759
  - **Never reads its own UI.** Panels are marked with `data-yuktai-panel`.
691
760
  - **SSR safe.** No `window` errors on the server.
692
- - **Every automatic fix can be undone.** The v5.1 copilot records each change it makes.
761
+ - **Every automatic fix can be undone.** The v5.2 copilot records each change it makes.
693
762
  - **Honest limits.** Client-side pagination is for a few thousand rows; use server-side beyond that.
694
763
 
695
764
  ---
@@ -699,6 +768,7 @@ Props: `size` (default 20), `color` (default `currentColor`), `strokeWidth` (def
699
768
  | | Supported |
700
769
  |---|---|
701
770
  | Next.js | 13, 14, 15, 16 |
771
+ | Plain HTML | Any page, one script tag (vanilla build) |
702
772
  | React | 17, 18, 19 (19 needs `--legacy-peer-deps`) |
703
773
  | Node.js | 18+ |
704
774
  | Browsers | Chrome 90+, Firefox 90+, Safari 15+, Edge 90+, Samsung Internet 14+ |
@@ -707,9 +777,10 @@ Props: `size` (default 20), `color` (default `currentColor`), `strokeWidth` (def
707
777
 
708
778
  ## Roadmap
709
779
 
710
- - **Shipped (v5.1):** Agentic AI Toolkit: accessibility copilot, QA reports, form and design review, smart grid queries, BI answers, multi-step tasks, page + data RAG, voice accessibility commands
780
+ - **Shipped (v5.3):** Vanilla JS build of every module for plain HTML pages, plus accessibility engine fixes
781
+ - **Shipped (v5.2):** Agentic AI Toolkit: accessibility copilot, QA reports, form and design review, smart grid queries, BI answers, multi-step tasks, page + data RAG, voice accessibility commands
711
782
  - **Shipped (v4.6.4):** YuktaiGrid Agentic AI + WebMCP, embedded Grid AI Assistant, English/Telugu UI, page-size switching, icon polish
712
- - **Next:** expose the v5.1 agentic tools through WebMCP, more Grid Agent tools, multilingual RAG (Telugu, Hindi, Tamil, Bengali)
783
+ - **Next:** expose the v5.2 agentic tools through WebMCP, more Grid Agent tools, multilingual RAG (Telugu, Hindi, Tamil, Bengali)
713
784
  - **Later:** RTL support, richer browser-native AI, multimodal grid experiences
714
785
 
715
786
  ---
@@ -726,13 +797,14 @@ Issues and pull requests are welcome at [github.com/sandeepmiriyala03/yuktai](ht
726
797
  - GitHub: [sandeepmiriyala03/yuktai](https://github.com/sandeepmiriyala03/yuktai)
727
798
  - Demo: [aksharatantra.miriyala.in/staffdirectory](https://aksharatantra.miriyala.in/staffdirectory)
728
799
  - Showcase: [ratnalabala.vercel.app](https://ratnalabala.vercel.app/poems?view=grid)
800
+ - Vanilla JS (CDN): [cdn.jsdelivr.net/npm/@yuktishaalaa/yuktai/vanilla/index.min.js](https://cdn.jsdelivr.net/npm/@yuktishaalaa/yuktai/vanilla/index.min.js)
729
801
 
730
802
  ---
731
803
 
732
804
  ## License
733
805
 
734
- ISC © Sandeep Miriyala, [Yuktishaalaa AI Lab](https://github.com/sandeepmiriyala03)
806
+ GPL-3.0 © Sandeep Miriyala, [Yuktishaalaa AI Lab](https://github.com/sandeepmiriyala03)
735
807
 
736
808
  Built in free time. AI coding assistants (Claude, GPT and Gemini) helped me learn, and helped write and test parts of the code. Every design decision, review and release is mine.
737
809
 
738
- **Free forever. Open source. Built for every user.** 🏺
810
+ **Free forever. Open source. Built for every user.**