{"_id":"@aireact/autosuggest","_rev":"4-3adad05c08ebf4c5b23b66b21181dce5","name":"@aireact/autosuggest","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.0":{"name":"@aireact/autosuggest","version":"1.0.0","keywords":["react","autosuggest","autocomplete","ai","suggestions","search"],"author":{"name":"reachbrt"},"license":"MIT","_id":"@aireact/autosuggest@1.0.0","maintainers":[{"name":"aivue","email":"reachbrt@gmail.com"}],"dist":{"shasum":"e62c56c3a7c3ffd35af1e91e3795693cc74d0570","tarball":"https://registry.npmjs.org/@aireact/autosuggest/-/autosuggest-1.0.0.tgz","fileCount":10,"integrity":"sha512-FS7/WNM1Q+Nhwg3/vTZz8mfmzZzSv8acJzq2YNSBAk6z+97efKEL53iw4HOo+yXPXzfXVh9oL3kAQ4mPQH7Ruw==","signatures":[{"sig":"MEUCIAIRC/jrNQIBMeiWla5Dd5DsG41s+49a9xf4HqmmKjzdAiEAnY3u5f+IFP3rVKFplrJ6bXbU1lbZ4QgjIRUtrtAKpT4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":112255},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./dist/autosuggest.css":"./dist/autosuggest.css"},"gitHead":"3578555f09dd610edce51f84a4d6d27a6b2146bd","scripts":{"dev":"vite build --watch","build":"tsc && vite build"},"_npmUser":{"name":"aivue","email":"reachbrt@gmail.com"},"_npmVersion":"10.9.2","description":"AI-powered smart suggestions component for React","directories":{},"sideEffects":["*.css"],"_nodeVersion":"22.14.0","dependencies":{"@aireact/core":"*"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^5.0.10","typescript":"^5.3.3","@types/react":"^18.2.45","vite-plugin-dts":"^3.7.0","@types/react-dom":"^18.2.18","@vitejs/plugin-react":"^4.2.1"},"peerDependencies":{"react":"^18.0.0","react-dom":"^18.0.0"},"_npmOperationalInternal":{"tmp":"tmp/autosuggest_1.0.0_1765693669176_0.08216239485893917","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@aireact/autosuggest","version":"1.0.1","keywords":["react","autosuggest","autocomplete","ai","suggestions","search"],"author":{"name":"reachbrt"},"license":"MIT","_id":"@aireact/autosuggest@1.0.1","maintainers":[{"name":"aivue","email":"reachbrt@gmail.com"}],"dist":{"shasum":"61bf587529a3d1ad98724a45bc3b5660e9fe6b63","tarball":"https://registry.npmjs.org/@aireact/autosuggest/-/autosuggest-1.0.1.tgz","fileCount":11,"integrity":"sha512-TCBjkg73NrJSBjQB/B+8ctQkpJyZQHWZpC9vlTr5Aw+y89UqF67PZcZac/boDQehQOk2/zB0qvYL99+akAm5hQ==","signatures":[{"sig":"MEUCIQDyhmAUN3JqFdWVotpDgs0WihkjTHYK8py8lmJhItxZlgIgPNPysJSWLiRx7OH0cIMhF+bVSUPB00upMMDbRmTNUqY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":115228},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./dist/autosuggest.css":"./dist/autosuggest.css"},"gitHead":"6857364eda430b8e9222514d3a5eeb6a5175c5b7","scripts":{"dev":"vite build --watch","build":"tsc && vite build"},"_npmUser":{"name":"aivue","email":"reachbrt@gmail.com"},"_npmVersion":"10.9.2","description":"AI-powered smart suggestions component for React","directories":{},"sideEffects":["*.css"],"_nodeVersion":"22.14.0","dependencies":{"@aireact/core":"*"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^5.0.10","typescript":"^5.3.3","@types/react":"^18.2.45","vite-plugin-dts":"^3.7.0","@types/react-dom":"^18.2.18","@vitejs/plugin-react":"^4.2.1"},"peerDependencies":{"react":"^18.0.0","react-dom":"^18.0.0"},"_npmOperationalInternal":{"tmp":"tmp/autosuggest_1.0.1_1765694947242_0.9482752449172631","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@aireact/autosuggest","version":"1.0.2","keywords":["react","autosuggest","autocomplete","ai","suggestions","search"],"author":{"name":"reachbrt"},"license":"MIT","_id":"@aireact/autosuggest@1.0.2","maintainers":[{"name":"aivue","email":"reachbrt@gmail.com"}],"dist":{"shasum":"e5afe4d2f24472d34519fdfb7f8f61e9e110d7af","tarball":"https://registry.npmjs.org/@aireact/autosuggest/-/autosuggest-1.0.2.tgz","fileCount":11,"integrity":"sha512-V/ldVyvs73iPMK/tbzB2bcZ8y/YGqLDdqW+6PubNNEArW12ZZbEwhnGBTv8ecuco23lZ6o2tDAbDKgN/Gz0W3w==","signatures":[{"sig":"MEUCIQD9SrAG59YfUrFHzg4tEcOuKenjP/ZdQAzufvaiurdV+gIgL/x8T5SzgO0hS98RjmofQFdkNvx5ow3KskeOd9A3rYk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":115228},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./dist/autosuggest.css":"./dist/autosuggest.css"},"gitHead":"6857364eda430b8e9222514d3a5eeb6a5175c5b7","scripts":{"dev":"vite build --watch","build":"tsc && vite build"},"_npmUser":{"name":"aivue","email":"reachbrt@gmail.com"},"_npmVersion":"10.9.2","description":"AI-powered smart suggestions component for React","directories":{},"sideEffects":["*.css"],"_nodeVersion":"22.14.0","dependencies":{"@aireact/core":"*"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^5.0.10","typescript":"^5.3.3","@types/react":"^18.2.45","vite-plugin-dts":"^3.7.0","@types/react-dom":"^18.2.18","@vitejs/plugin-react":"^4.2.1"},"peerDependencies":{"react":"^18.0.0","react-dom":"^18.0.0"},"_npmOperationalInternal":{"tmp":"tmp/autosuggest_1.0.2_1765696310099_0.7380992028101168","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@aireact/autosuggest","version":"1.0.3","description":"AI-powered smart suggestions component for React","type":"module","main":"./dist/index.js","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"import":"./dist/index.js","types":"./dist/index.d.ts"},"./dist/autosuggest.css":"./dist/autosuggest.css"},"scripts":{"build":"tsc && vite build","dev":"vite build --watch"},"peerDependencies":{"react":"^18.0.0","react-dom":"^18.0.0"},"dependencies":{"@aireact/core":"*"},"devDependencies":{"@types/react":"^18.2.45","@types/react-dom":"^18.2.18","@vitejs/plugin-react":"^4.2.1","typescript":"^5.3.3","vite":"^5.0.10","vite-plugin-dts":"^3.7.0"},"keywords":["react","autosuggest","autocomplete","ai","suggestions","search"],"author":{"name":"reachbrt"},"license":"MIT","sideEffects":["*.css"],"_id":"@aireact/autosuggest@1.0.3","gitHead":"eb0d57118209adc317afca9ec14db9074a14377b","_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-eJTod0pYQZmctxOSmUEqE1sV/fTDNZ/68LQ4RCAUBBilnAzwnGBXAAHVXLZCIUUM33O6+uyLsktQUMHRi27dag==","shasum":"77e683c3e5b3703a4cd7c676c87b6c78dafed0d7","tarball":"https://registry.npmjs.org/@aireact/autosuggest/-/autosuggest-1.0.3.tgz","fileCount":11,"unpackedSize":116197,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIB+39CMnAo3IHSV75rBebyflDlqc/JcDSGkmiIRb5Z/fAiABO7sPWGsXpQqcloT3l69XLUtZe4zYpCiIl32eQ2NNcw=="}]},"_npmUser":{"name":"aivue","email":"reachbrt@gmail.com"},"directories":{},"maintainers":[{"name":"aivue","email":"reachbrt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/autosuggest_1.0.3_1766466242869_0.12961298511177155"},"_hasShrinkwrap":false}},"time":{"created":"2025-12-14T06:27:49.059Z","modified":"2025-12-23T05:04:03.206Z","1.0.0":"2025-12-14T06:27:49.321Z","1.0.1":"2025-12-14T06:49:07.396Z","1.0.2":"2025-12-14T07:11:50.253Z","1.0.3":"2025-12-23T05:04:03.006Z"},"author":{"name":"reachbrt"},"license":"MIT","keywords":["react","autosuggest","autocomplete","ai","suggestions","search"],"description":"AI-powered smart suggestions component for React","maintainers":[{"name":"aivue","email":"reachbrt@gmail.com"}],"readme":"# @aireact/autosuggest\n\n🚀 **AI-Powered Suggestion Components for React**\n\nIntelligent autocomplete and suggestion system powered by AI for enhanced user input experiences.\n\n<p>\n  <a href=\"https://www.npmjs.com/package/@aireact/autosuggest\"><img src=\"https://img.shields.io/npm/v/@aireact/autosuggest.svg?style=flat-square\" alt=\"npm version\"></a>\n  <a href=\"https://www.npmjs.com/package/@aireact/autosuggest\"><img src=\"https://img.shields.io/npm/dm/@aireact/autosuggest\" alt=\"npm downloads\"></a>\n  <a href=\"https://github.com/reachbrt/AIReact/blob/main/LICENSE\"><img src=\"https://img.shields.io/npm/l/@aireact/autosuggest.svg?style=flat-square\" alt=\"MIT License\"></a>\n  <a href=\"https://github.com/reachbrt/AIReact\"><img src=\"https://img.shields.io/github/stars/reachbrt/AIReact?style=social\" alt=\"GitHub Stars\"></a>\n</p>\n\n## ✨ Features\n\n- **🧠 AI-Powered**: Intelligent suggestions using AI models\n- **⚡ Real-time**: Instant suggestions as you type\n- **🎯 Context-Aware**: Understands context for better suggestions\n- **🎨 Customizable**: Fully stylable components\n- **📱 Responsive**: Works on all devices\n- **🔧 TypeScript**: Full TypeScript support\n\n## 📦 Installation\n\n```bash\nnpm install @aireact/autosuggest @aireact/core\n```\n\n## 🚀 Quick Start\n\n```tsx\nimport { Autosuggest, useAutosuggest } from '@aireact/autosuggest';\nimport '@aireact/autosuggest/style.css';\n\nfunction App() {\n  return (\n    <Autosuggest\n      provider=\"openai\"\n      apiKey={process.env.REACT_APP_OPENAI_API_KEY}\n      placeholder=\"Start typing...\"\n      context=\"e-commerce product search\"\n      onSelect={(suggestion) => console.log('Selected:', suggestion)}\n    />\n  );\n}\n```\n\n### Using the Hook\n\n```tsx\nimport { useAutosuggest } from '@aireact/autosuggest';\n\nfunction CustomAutosuggest() {\n  const {\n    suggestions,\n    isLoading,\n    getSuggestions,\n    clearSuggestions\n  } = useAutosuggest({\n    provider: 'openai',\n    apiKey: process.env.REACT_APP_OPENAI_API_KEY,\n    context: 'product search',\n    maxSuggestions: 5\n  });\n\n  return (\n    <div>\n      <input\n        onChange={(e) => getSuggestions(e.target.value)}\n        placeholder=\"Search...\"\n      />\n      {isLoading && <span>Loading...</span>}\n      <ul>\n        {suggestions.map((s, i) => (\n          <li key={i}>{s}</li>\n        ))}\n      </ul>\n    </div>\n  );\n}\n```\n\n## 📖 Props\n\n| Prop | Type | Default | Description |\n|------|------|---------|-------------|\n| `provider` | string | - | AI provider |\n| `apiKey` | string | - | API key |\n| `context` | string | - | Context for suggestions |\n| `placeholder` | string | 'Type...' | Input placeholder |\n| `maxSuggestions` | number | 5 | Max suggestions |\n| `debounceMs` | number | 300 | Debounce delay |\n| `onSelect` | function | - | Selection callback |\n\n## 🎨 Customization\n\n```css\n:root {\n  --aireact-suggest-bg: #ffffff;\n  --aireact-suggest-border: #e0e0e0;\n  --aireact-suggest-hover: #f5f5f5;\n  --aireact-suggest-highlight: #2196f3;\n}\n```\n\n## 📦 Related Packages\n\n### React (@aireact)\n- [@aireact/core](https://www.npmjs.com/package/@aireact/core) - Core AI Client\n- [@aireact/chatbot](https://www.npmjs.com/package/@aireact/chatbot) - AI Chat\n- [@aireact/predictive-input](https://www.npmjs.com/package/@aireact/predictive-input) - Predictive Text\n- [@aireact/smartform](https://www.npmjs.com/package/@aireact/smartform) - AI Form Validation\n\n### Vue.js (@aivue)\n- [@aivue/autosuggest](https://www.npmjs.com/package/@aivue/autosuggest) - Vue Autosuggest\n- [@aivue/core](https://www.npmjs.com/package/@aivue/core) - Vue Core AI Client\n\n### Angular (@aiangular) - Coming Soon\n- @aiangular/autosuggest - Angular Autosuggest\n\n## 🔗 More Information\n\n- [GitHub Repository](https://github.com/reachbrt/AIReact)\n- [Full Documentation](https://github.com/reachbrt/AIReact/wiki)\n- [Report Issues](https://github.com/reachbrt/AIReact/issues)\n\n## 📄 License\n\nMIT © [Bharatkumar Subramanian](https://github.com/reachbrt)\n\n","readmeFilename":"README.md"}