{"_id":"@ashkash/kaynix-widget","_rev":"4-14e9bcd285b832f41dab0935ebf6012c","name":"@ashkash/kaynix-widget","dist-tags":{"latest":"3.0.0"},"versions":{"2.0.0":{"name":"@ashkash/kaynix-widget","version":"2.0.0","keywords":["ecommerce","ai","shopping","assistant","widget","bookmarklet"],"author":{"name":"ashkash"},"license":"MIT","_id":"@ashkash/kaynix-widget@2.0.0","maintainers":[{"name":"ashkash","email":"cybernytrix@gmail.com"}],"homepage":"https://demo.kaynix.ai","bugs":{"url":"https://github.com/ashkash/kaynix-widget/issues"},"dist":{"shasum":"5d962d07f2431b55a6d56c56f1140932b844759d","tarball":"https://registry.npmjs.org/@ashkash/kaynix-widget/-/kaynix-widget-2.0.0.tgz","fileCount":5,"integrity":"sha512-yGecn5iIq506GHh5A9PCEzlKl+hkK3BZgZoiBP151e44pzRNs3M7/CXxGhbsmllcw7Wq1eOR13ut/nzrvXJu/Q==","signatures":[{"sig":"MEUCIHXjvzjlQwe/RlYxLueQsqp9qATP/WmwtrOHytT9cEXaAiEAqGDzbMpr9rtZzUOh/jw/qTxEPCW/tYk3OxOBI1oEASs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":122166},"main":"kaynix-widget.js","gitHead":"22fed40adbc071b2df67512165c774e7e234e96e","_npmUser":{"name":"ashkash","actor":{"name":"ashkash","type":"user","email":"cybernytrix@gmail.com"},"email":"cybernytrix@gmail.com"},"repository":{"url":"git+https://github.com/ashkash/kaynix-widget.git","type":"git"},"_npmVersion":"11.3.0","description":"Kaynix AI - E-commerce Shopping Assistant Widget","directories":{},"_nodeVersion":"24.2.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/kaynix-widget_2.0.0_1751405893635_0.0025909181751868626","host":"s3://npm-registry-packages-npm-production"}},"2.0.1":{"name":"@ashkash/kaynix-widget","version":"2.0.1","keywords":["ecommerce","ai","shopping","assistant","widget","bookmarklet"],"author":{"name":"ashkash"},"license":"MIT","_id":"@ashkash/kaynix-widget@2.0.1","maintainers":[{"name":"ashkash","email":"cybernytrix@gmail.com"}],"homepage":"https://demo.kaynix.ai","bugs":{"url":"https://github.com/ashkash/kaynix-widget/issues"},"dist":{"shasum":"a8bc6f06a06602fe444210a82c2a3febe8a72b75","tarball":"https://registry.npmjs.org/@ashkash/kaynix-widget/-/kaynix-widget-2.0.1.tgz","fileCount":5,"integrity":"sha512-wgrWuqoUM/HMZEn996IYaIwc08+dB7jxBvtkf4sMAwYfUVv9vHwNPeA8yDgqCiGVrTqcg01N7UO5iaW4cVMYrg==","signatures":[{"sig":"MEUCIDWOyc7TDm/20TkC9QW+pe8ekMR1FBBbRdcKN/Yz04ADAiEA1k4n1428sVo4Tr+5Jh/cMMeEOs4i1bNwnmqFPT4VdGo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":122166},"main":"kaynix-widget.js","gitHead":"1f2f4c1080a2d0ebb657c814b5d11e7bbee0902f","_npmUser":{"name":"ashkash","actor":{"name":"ashkash","type":"user","email":"cybernytrix@gmail.com"},"email":"cybernytrix@gmail.com"},"repository":{"url":"git+https://github.com/ashkash/kaynix-widget.git","type":"git"},"_npmVersion":"11.3.0","description":"Kaynix AI - E-commerce Shopping Assistant Widget","directories":{},"_nodeVersion":"24.2.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/kaynix-widget_2.0.1_1751406579175_0.25717852907913885","host":"s3://npm-registry-packages-npm-production"}},"2.0.2":{"name":"@ashkash/kaynix-widget","version":"2.0.2","keywords":["ecommerce","ai","shopping","assistant","widget","bookmarklet"],"author":{"name":"ashkash"},"license":"MIT","_id":"@ashkash/kaynix-widget@2.0.2","maintainers":[{"name":"ashkash","email":"cybernytrix@gmail.com"}],"homepage":"https://demo.kaynix.ai","bugs":{"url":"https://github.com/ashkash/kaynix-widget/issues"},"dist":{"shasum":"c688f0c951a64c052f25728dcb0706a2959f0347","tarball":"https://registry.npmjs.org/@ashkash/kaynix-widget/-/kaynix-widget-2.0.2.tgz","fileCount":6,"integrity":"sha512-FSTBQKsIhqhZ4ehFg3oiqSNvoFAbujPbjVOTwMj27e4dpI4haWILl2DekcwZHvI70ZW68SG8IbHVooE1mNjzlg==","signatures":[{"sig":"MEUCIQD++E+kPs0BCcH9FHeu+5ORGqglfy7YDES9fRpIXee/lgIgUtpXbPrje6L3tB4zdWXti6NhTD16S35s8j/pfB7pPTA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":131626},"main":"kaynix-widget.js","gitHead":"1f2f4c1080a2d0ebb657c814b5d11e7bbee0902f","_npmUser":{"name":"ashkash","actor":{"name":"ashkash","type":"user","email":"cybernytrix@gmail.com"},"email":"cybernytrix@gmail.com"},"repository":{"url":"git+https://github.com/ashkash/kaynix-widget.git","type":"git"},"_npmVersion":"11.3.0","description":"Kaynix AI - E-commerce Shopping Assistant Widget","directories":{},"_nodeVersion":"24.2.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/kaynix-widget_2.0.2_1751406617175_0.6527622038337093","host":"s3://npm-registry-packages-npm-production"}},"3.0.0":{"name":"@ashkash/kaynix-widget","version":"3.0.0","description":"Kaynix AI - E-commerce Shopping Assistant Widget Loaders","main":"bookmarklet-loader-minimal.js","keywords":["ecommerce","ai","shopping","assistant","widget","bookmarklet"],"author":{"name":"ashkash"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/ashkash/kaynix-widget.git"},"homepage":"https://demo.kaynix.ai","publishConfig":{"access":"public"},"_id":"@ashkash/kaynix-widget@3.0.0","gitHead":"1f2f4c1080a2d0ebb657c814b5d11e7bbee0902f","bugs":{"url":"https://github.com/ashkash/kaynix-widget/issues"},"_nodeVersion":"24.2.0","_npmVersion":"11.3.0","dist":{"integrity":"sha512-dBQ0E4ZvwEvys9V8ckRDV5hSabDPBfvyyMcqjjwzM/AnusaB+rdbAje9fJqgE3+/GSwwmO7Hyg2jkaRSDR16lA==","shasum":"2b4c6585ab05f93475e8f9ac9792b5ebd252860f","tarball":"https://registry.npmjs.org/@ashkash/kaynix-widget/-/kaynix-widget-3.0.0.tgz","fileCount":4,"unpackedSize":17201,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIHrPY1vtVtlRxuITGRl0JMctAXjzmjBAm1lv5RvvDhQ6AiEAtvTJB5PJfyaypDwqed5pHa7NZH1CkezUxVTLk/pFcxc="}]},"_npmUser":{"name":"ashkash","email":"cybernytrix@gmail.com","actor":{"name":"ashkash","email":"cybernytrix@gmail.com","type":"user"}},"directories":{},"maintainers":[{"name":"ashkash","email":"cybernytrix@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/kaynix-widget_3.0.0_1751407725119_0.25747921941947416"},"_hasShrinkwrap":false}},"time":{"created":"2025-07-01T21:38:13.522Z","modified":"2025-07-01T22:08:45.469Z","2.0.0":"2025-07-01T21:38:13.839Z","2.0.1":"2025-07-01T21:49:39.351Z","2.0.2":"2025-07-01T21:50:17.359Z","3.0.0":"2025-07-01T22:08:45.283Z"},"bugs":{"url":"https://github.com/ashkash/kaynix-widget/issues"},"author":{"name":"ashkash"},"license":"MIT","homepage":"https://demo.kaynix.ai","keywords":["ecommerce","ai","shopping","assistant","widget","bookmarklet"],"repository":{"type":"git","url":"git+https://github.com/ashkash/kaynix-widget.git"},"description":"Kaynix AI - E-commerce Shopping Assistant Widget Loaders","maintainers":[{"name":"ashkash","email":"cybernytrix@gmail.com"}],"readme":"# Kaynix Widget Loaders\n\nMinimal public loaders for the Kaynix AI E-commerce Shopping Assistant Widget.\n\n## Overview\n\nThis package contains lightweight bookmarklet loaders that allow you to inject the Kaynix AI widget on any e-commerce website. The actual widget code is loaded from your configured server, keeping proprietary code private.\n\n## Installation\n\n```bash\nnpm install @ashkash/kaynix-widget\n```\n\n## Usage\n\n### Basic Bookmarklet (Production)\n\nCreate a bookmark with this URL to use the default production servers:\n\n```javascript\njavascript:(function(){\n  if(window.KaynixInjected)return;\n  window.KaynixInjected=true;\n  var s=document.createElement('script');\n  s.src='https://cdn.jsdelivr.net/npm/@ashkash/kaynix-widget@latest/bookmarklet-loader-minimal.js';\n  document.head.appendChild(s)\n})()\n```\n\n### Configurable Bookmarklet\n\nTo use custom servers (staging, development, etc.), set the configuration before loading:\n\n```javascript\njavascript:(function(){\n  window.KAYNIX_CONFIG={\n    baseUrl:'https://staging.kaynix.ai',\n    apiUrl:'https://staging-api.kaynix.ai',\n    debug:true\n  };\n  if(window.KaynixInjected)return;\n  window.KaynixInjected=true;\n  var s=document.createElement('script');\n  s.src='https://cdn.jsdelivr.net/npm/@ashkash/kaynix-widget@latest/bookmarklet-loader-minimal.js';\n  document.head.appendChild(s)\n})()\n```\n\n### Configuration Options\n\nThe `KAYNIX_CONFIG` object supports:\n\n- `baseUrl`: URL where widget files are hosted (default: `https://demo.kaynix.ai`)\n- `apiUrl`: Backend API URL (default: `https://api.kaynix.ai`)\n- `apiKey`: API key for authentication (default: uses localStorage or 'dev-api-key')\n- `debug`: Enable debug mode (default: `false`)\n- `environment`: Environment name for logging (default: `'production'`)\n\n### For Developers\n\nThe minimal loader will:\n1. Check the configuration in `window.KAYNIX_CONFIG`\n2. Load the main widget loader from the configured `baseUrl`\n3. Pass configuration to the main loader via `window.KAYNIX_LOADER_CONFIG`\n4. The main loader then loads all widget dependencies from your server\n\nThis approach allows you to:\n- Keep your widget code private on your own servers\n- Support multiple deployment environments\n- Bypass CSP restrictions by using CDN for the minimal loader\n- Maintain full control over widget updates\n\n## Files Included\n\n- `bookmarklet-loader-minimal.js`: Minimal loader that reads config and loads from your server\n- `bookmarklet-loader-configurable.js`: Extended version with more configuration options\n- `README.md`: This documentation\n\n## License\n\nMIT","readmeFilename":"README.md"}