@floe-ai/sdk 0.1.0-dev.10

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/LICENSE ADDED
@@ -0,0 +1,36 @@
1
+ Copyright © 2026 Floe AI, Inc. All rights reserved.
2
+
3
+ PROPRIETARY SOFTWARE LICENSE
4
+
5
+ This software and associated documentation files (the "Software") are the
6
+ proprietary and confidential property of Floe AI, Inc.
7
+
8
+ RESTRICTIONS:
9
+
10
+ 1. You may not copy, modify, distribute, sell, or transfer the Software or
11
+ any portion thereof without prior written permission from Floe AI, Inc.
12
+
13
+ 2. You may not reverse engineer, decompile, or disassemble the Software.
14
+
15
+ 3. You may not use the Software for any purpose other than as expressly
16
+ authorized by Floe AI, Inc.
17
+
18
+ 4. You may not remove or alter any proprietary notices, labels, or marks
19
+ on the Software.
20
+
21
+ USAGE:
22
+
23
+ Use of this Software requires a valid license agreement with Floe AI, Inc.
24
+ Contact sales@floe.so for licensing information.
25
+
26
+ DISCLAIMER:
27
+
28
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
29
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
30
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
31
+ FLOE AI, INC. BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
32
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
33
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
34
+
35
+ For licensing inquiries, contact: legal@floe.so
36
+
package/README.md ADDED
@@ -0,0 +1,146 @@
1
+ # @floe-ai/sdk
2
+
3
+ AI-powered onboarding SDK for React applications. Add voice-guided product tours and interactive onboarding to your app with a single function call.
4
+
5
+ **Supports React 18 and React 19.**
6
+
7
+ ## Installation
8
+
9
+ ```bash
10
+ npm install @floe-ai/sdk
11
+ ```
12
+
13
+ ## Quick Start
14
+
15
+ ```typescript
16
+ import { Floe } from '@floe-ai/sdk';
17
+
18
+ // Initialize the SDK
19
+ const sdk = Floe({
20
+ clientKey: 'your-client-key',
21
+ userInfo: {
22
+ externalId: 'user_123',
23
+ email: 'user@example.com',
24
+ name: 'John Doe',
25
+ },
26
+ });
27
+
28
+ // The SDK automatically initializes and renders the onboarding UI
29
+ ```
30
+
31
+ ## Configuration Options
32
+
33
+ | Option | Type | Required | Description |
34
+ |--------|------|----------|-------------|
35
+ | `clientKey` | `string` | ✅ | Your Floe API client key |
36
+ | `apiUrl` | `string` | | Floe API URL (defaults to production) |
37
+ | `enableScreenCapture` | `boolean` | | Enable screen sharing (default: `true`) |
38
+ | `enableAudio` | `boolean` | | Enable voice interaction (default: `true`) |
39
+ | `debug` | `boolean` | | Enable debug logging |
40
+ | `skipOnboardingModal` | `boolean` | | Skip the welcome modal for returning users |
41
+ | `userInfo` | `object` | | User identification for personalization |
42
+ | `industry` | `string` | | User's industry for context |
43
+ | `useCase` | `string` | | User's use case |
44
+ | `companyName` | `string` | | User's company name |
45
+ | `companySize` | `string` | | Company size |
46
+ | `role` | `string` | | User's role |
47
+
48
+ ### User Info
49
+
50
+ ```typescript
51
+ userInfo: {
52
+ externalId?: string; // Your internal user ID
53
+ email?: string; // User's email
54
+ name?: string; // Display name
55
+ company?: string; // Company name
56
+ designation?: string; // Job title
57
+ metadata?: Record<string, any>; // Custom metadata
58
+ }
59
+ ```
60
+
61
+ ## Methods
62
+
63
+ The `Floe()` function returns an SDK instance with the following methods:
64
+
65
+ ```typescript
66
+ const sdk = Floe({ clientKey: 'your-key' });
67
+
68
+ // Disconnect and cleanup
69
+ await sdk.disconnect();
70
+
71
+ // Get connection status
72
+ const status = sdk.getStatus();
73
+ // { initialized: boolean, connected: boolean, sessionId: string, microphoneMuted: boolean }
74
+
75
+ // Toggle microphone
76
+ sdk.toggleMute();
77
+
78
+ // Send text message to the AI
79
+ await sdk.sendText('How do I create a new project?');
80
+
81
+ // Take a screenshot
82
+ const screenshot = await sdk.takeScreenshot();
83
+
84
+ // Highlight an element
85
+ sdk.highlight('.my-button');
86
+ sdk.clearHighlight();
87
+ ```
88
+
89
+ ## CDN Usage
90
+
91
+ For non-React applications or script tag usage:
92
+
93
+ ```html
94
+ <script src="https://cdn.floe.so/sdk/floe-sdk.iife.js"></script>
95
+ <script>
96
+ Floe({
97
+ clientKey: 'your-client-key',
98
+ userInfo: {
99
+ externalId: 'user_123',
100
+ },
101
+ });
102
+ </script>
103
+ ```
104
+
105
+ ## TypeScript Support
106
+
107
+ Full TypeScript support with exported types:
108
+
109
+ ```typescript
110
+ import { Floe, FloeConfig } from '@floe-ai/sdk';
111
+
112
+ const config: FloeConfig = {
113
+ clientKey: 'your-key',
114
+ debug: true,
115
+ };
116
+
117
+ const sdk = Floe(config);
118
+ ```
119
+
120
+ ## Requirements
121
+
122
+ - React 18 or React 19
123
+ - Modern browser with WebRTC support
124
+
125
+ ## Peer Dependencies
126
+
127
+ ```json
128
+ {
129
+ "react": "^18.0.0 || ^19.0.0",
130
+ "react-dom": "^18.0.0 || ^19.0.0"
131
+ }
132
+ ```
133
+
134
+ ## License
135
+
136
+ Copyright © 2026 Floe AI, Inc. All rights reserved.
137
+
138
+ This software is proprietary and confidential. Unauthorized copying, distribution,
139
+ or use of this software, via any medium, is strictly prohibited without prior
140
+ written permission from Floe AI, Inc.
141
+
142
+ ## Support
143
+
144
+ - Documentation: https://docs.floe.so
145
+ - Email: support@floe.so
146
+