cosmic-ai-genius 0.3.46 → 0.3.47
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 +38 -21
- package/dist-sdk/genius-sdk.es.js +26450 -25966
- package/dist-sdk/genius-sdk.es.js.map +1 -1
- package/dist-sdk/genius-sdk.umd.js +229 -229
- package/dist-sdk/genius-sdk.umd.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,31 +1,48 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Genius SDK
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
A powerful, customizable AI chatbot SDK for React applications with voice capabilities and modern UI design.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Quick Start
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
```bash
|
|
8
|
+
npm install @genius/sdk-js
|
|
9
|
+
```
|
|
8
10
|
|
|
9
|
-
|
|
11
|
+
```typescript
|
|
12
|
+
import { GeniusChatbotProvider, GeniusToggle } from '@genius/sdk-js';
|
|
13
|
+
import '@genius/sdk-js/css';
|
|
10
14
|
|
|
11
|
-
|
|
15
|
+
function App() {
|
|
16
|
+
return (
|
|
17
|
+
<GeniusChatbotProvider config={{
|
|
18
|
+
welcomeMessage: "Hi! How can I help you today?",
|
|
19
|
+
baseUrl: "http://localhost:8001"
|
|
20
|
+
}}>
|
|
21
|
+
<div className="app">
|
|
22
|
+
<h1>My App</h1>
|
|
23
|
+
<GeniusToggle />
|
|
24
|
+
</div>
|
|
25
|
+
</GeniusChatbotProvider>
|
|
26
|
+
);
|
|
27
|
+
}
|
|
28
|
+
```
|
|
12
29
|
|
|
13
|
-
|
|
14
|
-
```css
|
|
15
|
-
.genius-toggle-button { z-index: 1500 !important; }
|
|
16
|
-
.genius-chatbot-wrapper { z-index: 1600 !important; }
|
|
17
|
-
.genius-chatbot-mobile-wrapper { z-index: 1700 !important; }
|
|
18
|
-
.genius-voice-call-container { z-index: 1800 !important; }
|
|
19
|
-
```
|
|
30
|
+
## Documentation
|
|
20
31
|
|
|
21
|
-
|
|
32
|
+
For comprehensive documentation including installation guides, integration examples, troubleshooting, and advanced features, see:
|
|
22
33
|
|
|
23
|
-
|
|
24
|
-
- 1500: Toggle Button (above Tailwind's max z-index of 1250)
|
|
25
|
-
- 1600: Main Chatbot Container
|
|
26
|
-
- 1700: Mobile Chatbot Overlay
|
|
27
|
-
- 1800: Voice Call Component
|
|
34
|
+
**[📚 Complete Documentation](./DOCUMENTATION.md)**
|
|
28
35
|
|
|
29
|
-
|
|
36
|
+
## Key Features
|
|
30
37
|
|
|
31
|
-
|
|
38
|
+
- 🤖 AI-powered chatbot with streaming responses
|
|
39
|
+
- 🎤 Voice capabilities with microphone permissions
|
|
40
|
+
- 📊 Data visualization with charts and tables
|
|
41
|
+
- 📱 Mobile-optimized components
|
|
42
|
+
- 🎨 Customizable themes and positioning
|
|
43
|
+
- 🔧 ReScript bindings for type safety
|
|
44
|
+
- 🍎 iOS Safari compatibility fixes
|
|
45
|
+
|
|
46
|
+
## License
|
|
47
|
+
|
|
48
|
+
MIT License - (c) 2024 Genius Team
|