@mirodan/ai-insight 0.1.0 → 0.1.2
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 +20 -9
- package/package.json +3 -4
package/README.md
CHANGED
|
@@ -8,6 +8,25 @@ AI-powered insight tooltip component for Nuxt UI.
|
|
|
8
8
|
npm install @mirodan/ai-insight
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
+
## Setup
|
|
12
|
+
|
|
13
|
+
Add the module to `nuxt.config.ts`:
|
|
14
|
+
|
|
15
|
+
```ts
|
|
16
|
+
export default defineNuxtConfig({
|
|
17
|
+
modules: ['@mirodan/ai-insight']
|
|
18
|
+
})
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Environment Variables
|
|
22
|
+
|
|
23
|
+
Add to your `.env`:
|
|
24
|
+
|
|
25
|
+
```env
|
|
26
|
+
NUXT_AI_INSIGHT_KEY=mirod_your_api_key_here
|
|
27
|
+
NUXT_AI_INSIGHT_ENDPOINT=https://api.mirodan.ai/v1/insight
|
|
28
|
+
```
|
|
29
|
+
|
|
11
30
|
## Usage
|
|
12
31
|
|
|
13
32
|
```vue
|
|
@@ -15,17 +34,9 @@ npm install @mirodan/ai-insight
|
|
|
15
34
|
<AiInsight
|
|
16
35
|
:data="chartData"
|
|
17
36
|
title="Sales Report"
|
|
18
|
-
|
|
37
|
+
prompt="Analyze sales trends"
|
|
19
38
|
>
|
|
20
39
|
<LineChart :data="chartData" />
|
|
21
40
|
</AiInsight>
|
|
22
41
|
</template>
|
|
23
|
-
|
|
24
|
-
<script setup>
|
|
25
|
-
import { AiInsight } from '@mirodan/ai-insight'
|
|
26
|
-
</script>
|
|
27
42
|
```
|
|
28
|
-
|
|
29
|
-
## License
|
|
30
|
-
|
|
31
|
-
MIT
|
package/package.json
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mirodan/ai-insight",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "AI-powered insight tooltip component for Nuxt",
|
|
5
|
-
"license": "UNLICENSED",
|
|
6
5
|
"type": "module",
|
|
7
|
-
"main": "./dist/module.
|
|
6
|
+
"main": "./dist/module.js",
|
|
8
7
|
"types": "./dist/module.d.ts",
|
|
9
8
|
"exports": {
|
|
10
9
|
".": {
|
|
11
10
|
"types": "./dist/module.d.ts",
|
|
12
|
-
"import": "./dist/module.
|
|
11
|
+
"import": "./dist/module.js"
|
|
13
12
|
}
|
|
14
13
|
},
|
|
15
14
|
"files": [
|