{"_id":"@aireact/analytics","_rev":"4-f6111db48f224c9eeca1afbae38f63a9","name":"@aireact/analytics","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.0":{"name":"@aireact/analytics","version":"1.0.0","keywords":["react","analytics","ai","dashboard","insights","metrics"],"author":{"name":"reachbrt"},"license":"MIT","_id":"@aireact/analytics@1.0.0","maintainers":[{"name":"aivue","email":"reachbrt@gmail.com"}],"dist":{"shasum":"a8354f4d98a285fe7e2372743247e3f4d5ff0579","tarball":"https://registry.npmjs.org/@aireact/analytics/-/analytics-1.0.0.tgz","fileCount":10,"integrity":"sha512-XaoBb+acB1XSuvuWBVvRbD3OLJ+3Y+ySQmiI0Ct1r44yVYEdAa94PS2QRppx6B8Q2z2QgbogibhHemKA4lOnAA==","signatures":[{"sig":"MEUCIQDfv1PEhY1BvhSihk9bkyomvNa6Z9VskirGHnzcMe004wIgUJPP5pXyAEhoghbyBFhmZz7355ZE54m3Alfzm8fLhjI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":120082},"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/analytics.css":"./dist/analytics.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 analytics & insights dashboard 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/analytics_1.0.0_1765693678599_0.8334418845448013","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@aireact/analytics","version":"1.0.1","keywords":["react","analytics","ai","dashboard","insights","metrics"],"author":{"name":"reachbrt"},"license":"MIT","_id":"@aireact/analytics@1.0.1","maintainers":[{"name":"aivue","email":"reachbrt@gmail.com"}],"dist":{"shasum":"0c6afabb0ba98c75fb575b28e7040059c70c1410","tarball":"https://registry.npmjs.org/@aireact/analytics/-/analytics-1.0.1.tgz","fileCount":11,"integrity":"sha512-oQ9Di1liTJiF1mHWmGIv7MlsmEk2Uw4HzPTGbRWmD87GURvQBvf8FYKHfDaot465D/1flHWiicHtuB13aywVfg==","signatures":[{"sig":"MEQCIBkjtJh4mkllex79Msx7Igy56JLd/HJnrTOtbQJOYxG3AiAScXK/itw4GMc+pN8qmVbM1FHcJa9G3vjsHOa/QuRAZQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":122982},"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/analytics.css":"./dist/analytics.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 analytics & insights dashboard 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/analytics_1.0.1_1765694964393_0.5009487489903759","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@aireact/analytics","version":"1.0.2","keywords":["react","analytics","ai","dashboard","insights","metrics"],"author":{"name":"reachbrt"},"license":"MIT","_id":"@aireact/analytics@1.0.2","maintainers":[{"name":"aivue","email":"reachbrt@gmail.com"}],"dist":{"shasum":"a7eb0e74d407847f80e0b145b839ae991cce4a16","tarball":"https://registry.npmjs.org/@aireact/analytics/-/analytics-1.0.2.tgz","fileCount":11,"integrity":"sha512-4eoOHkDqWBSceKLyeUckkXhy4Tc2Lm5IB1X4tnk8DoOI1sJ/jEh46oEh6k0mCHAJPjYIbMv6G4gRRs/NB1ipgA==","signatures":[{"sig":"MEUCIQD0pgpzphW3sOQehy2RcbYgia3K+XkKB81ETbRgLKfuNwIgWRx/t+wIonH4c2p+2JyOIjvBhhVF+WrFjGT6G7/ZTLY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":122982},"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/analytics.css":"./dist/analytics.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 analytics & insights dashboard 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/analytics_1.0.2_1765696314909_0.8314316998616351","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@aireact/analytics","version":"1.0.3","description":"AI-powered analytics & insights dashboard 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/analytics.css":"./dist/analytics.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","analytics","ai","dashboard","insights","metrics"],"author":{"name":"reachbrt"},"license":"MIT","sideEffects":["*.css"],"_id":"@aireact/analytics@1.0.3","gitHead":"eb0d57118209adc317afca9ec14db9074a14377b","_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-Yq5ABOpCgDwDnYqeUbNp8p8HqFsB7rgq0HNo61WbI2PBLcrF1x1yaByXsfgkHhHjYZWDpMbY6YL9HGyp6KcbUw==","shasum":"c4bb23bfaa77c76da364e63dba2ac8e59affddbf","tarball":"https://registry.npmjs.org/@aireact/analytics/-/analytics-1.0.3.tgz","fileCount":11,"unpackedSize":123843,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCICd6xQ+DKdeUrsTBm9M7jjA16ibEPr1pH3Wbgh9/PbAmAiEAwAb+abMxh4pB6hWpQxVW3+Y5jQCKJLL9HJ3SFujC+hs="}]},"_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/analytics_1.0.3_1766466250020_0.875191799577046"},"_hasShrinkwrap":false}},"time":{"created":"2025-12-14T06:27:58.501Z","modified":"2025-12-23T05:04:10.404Z","1.0.0":"2025-12-14T06:27:58.784Z","1.0.1":"2025-12-14T06:49:24.602Z","1.0.2":"2025-12-14T07:11:55.062Z","1.0.3":"2025-12-23T05:04:10.189Z"},"author":{"name":"reachbrt"},"license":"MIT","keywords":["react","analytics","ai","dashboard","insights","metrics"],"description":"AI-powered analytics & insights dashboard for React","maintainers":[{"name":"aivue","email":"reachbrt@gmail.com"}],"readme":"# @aireact/analytics\n\n🚀 **AI-Powered Analytics Dashboard for React**\n\nIntelligent analytics components with AI-driven insights and natural language queries.\n\n<p>\n  <a href=\"https://www.npmjs.com/package/@aireact/analytics\"><img src=\"https://img.shields.io/npm/v/@aireact/analytics.svg?style=flat-square\" alt=\"npm version\"></a>\n  <a href=\"https://www.npmjs.com/package/@aireact/analytics\"><img src=\"https://img.shields.io/npm/dm/@aireact/analytics\" alt=\"npm downloads\"></a>\n  <a href=\"https://github.com/reachbrt/AIReact/blob/main/LICENSE\"><img src=\"https://img.shields.io/npm/l/@aireact/analytics.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 Insights**: Automatic insights from your data\n- **💬 Natural Language**: Query data with plain English\n- **📈 Smart Visualizations**: AI-suggested chart types\n- **🎯 Trend Detection**: Automatic trend and anomaly detection\n- **🎨 Customizable**: Fully stylable components\n- **🔧 TypeScript**: Full TypeScript support\n\n## 📦 Installation\n\n```bash\nnpm install @aireact/analytics @aireact/core\n```\n\n## 🚀 Quick Start\n\n```tsx\nimport { AnalyticsDashboard, useAnalytics } from '@aireact/analytics';\nimport '@aireact/analytics/style.css';\n\nfunction App() {\n  const data = [\n    { date: '2024-01', sales: 1200, visitors: 4500 },\n    { date: '2024-02', sales: 1400, visitors: 5200 },\n    // ... more data\n  ];\n\n  return (\n    <AnalyticsDashboard\n      provider=\"openai\"\n      apiKey={process.env.REACT_APP_OPENAI_API_KEY}\n      data={data}\n      title=\"Sales Analytics\"\n    />\n  );\n}\n```\n\n### Using the Hook\n\n```tsx\nimport { useAnalytics } from '@aireact/analytics';\n\nfunction CustomAnalytics() {\n  const {\n    insights,\n    isAnalyzing,\n    queryData,\n    getInsights\n  } = useAnalytics({\n    provider: 'openai',\n    apiKey: process.env.REACT_APP_OPENAI_API_KEY,\n    data: salesData\n  });\n\n  return (\n    <div>\n      <input\n        placeholder=\"Ask about your data...\"\n        onKeyDown={(e) => {\n          if (e.key === 'Enter') queryData(e.target.value);\n        }}\n      />\n      {insights.map((insight, i) => (\n        <div key={i} className=\"insight\">{insight}</div>\n      ))}\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| `data` | array | - | Data to analyze |\n| `title` | string | 'Analytics' | Dashboard title |\n| `chartTypes` | array | ['line', 'bar'] | Allowed chart types |\n| `showInsights` | boolean | true | Show AI insights |\n\n## 🎨 Customization\n\n```css\n:root {\n  --aireact-analytics-bg: #ffffff;\n  --aireact-analytics-primary: #2196f3;\n  --aireact-analytics-accent: #ff9800;\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/smart-datatable](https://www.npmjs.com/package/@aireact/smart-datatable) - Smart Data Tables\n- [@aireact/chatbot](https://www.npmjs.com/package/@aireact/chatbot) - AI Chat\n\n### Vue.js (@aivue)\n- [@aivue/analytics](https://www.npmjs.com/package/@aivue/analytics) - Vue Analytics\n- [@aivue/core](https://www.npmjs.com/package/@aivue/core) - Vue Core AI Client\n\n### Angular (@aiangular) - Coming Soon\n- @aiangular/analytics - Angular Analytics\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"}