@floe-ai/sdk 0.1.0-dev.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/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,144 @@
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
+ ## Installation
6
+
7
+ ```bash
8
+ npm install @floe-ai/sdk
9
+ ```
10
+
11
+ ## Quick Start
12
+
13
+ ```typescript
14
+ import { Floe } from '@floe-ai/sdk';
15
+
16
+ // Initialize the SDK
17
+ const sdk = Floe({
18
+ clientKey: 'your-client-key',
19
+ userInfo: {
20
+ externalId: 'user_123',
21
+ email: 'user@example.com',
22
+ name: 'John Doe',
23
+ },
24
+ });
25
+
26
+ // The SDK automatically initializes and renders the onboarding UI
27
+ ```
28
+
29
+ ## Configuration Options
30
+
31
+ | Option | Type | Required | Description |
32
+ |--------|------|----------|-------------|
33
+ | `clientKey` | `string` | ✅ | Your Floe API client key |
34
+ | `apiUrl` | `string` | | Floe API URL (defaults to production) |
35
+ | `enableScreenCapture` | `boolean` | | Enable screen sharing (default: `true`) |
36
+ | `enableAudio` | `boolean` | | Enable voice interaction (default: `true`) |
37
+ | `debug` | `boolean` | | Enable debug logging |
38
+ | `skipOnboardingModal` | `boolean` | | Skip the welcome modal for returning users |
39
+ | `userInfo` | `object` | | User identification for personalization |
40
+ | `industry` | `string` | | User's industry for context |
41
+ | `useCase` | `string` | | User's use case |
42
+ | `companyName` | `string` | | User's company name |
43
+ | `companySize` | `string` | | Company size |
44
+ | `role` | `string` | | User's role |
45
+
46
+ ### User Info
47
+
48
+ ```typescript
49
+ userInfo: {
50
+ externalId?: string; // Your internal user ID
51
+ email?: string; // User's email
52
+ name?: string; // Display name
53
+ company?: string; // Company name
54
+ designation?: string; // Job title
55
+ metadata?: Record<string, any>; // Custom metadata
56
+ }
57
+ ```
58
+
59
+ ## Methods
60
+
61
+ The `Floe()` function returns an SDK instance with the following methods:
62
+
63
+ ```typescript
64
+ const sdk = Floe({ clientKey: 'your-key' });
65
+
66
+ // Disconnect and cleanup
67
+ await sdk.disconnect();
68
+
69
+ // Get connection status
70
+ const status = sdk.getStatus();
71
+ // { initialized: boolean, connected: boolean, sessionId: string, microphoneMuted: boolean }
72
+
73
+ // Toggle microphone
74
+ sdk.toggleMute();
75
+
76
+ // Send text message to the AI
77
+ await sdk.sendText('How do I create a new project?');
78
+
79
+ // Take a screenshot
80
+ const screenshot = await sdk.takeScreenshot();
81
+
82
+ // Highlight an element
83
+ sdk.highlight('.my-button');
84
+ sdk.clearHighlight();
85
+ ```
86
+
87
+ ## CDN Usage
88
+
89
+ For non-React applications or script tag usage:
90
+
91
+ ```html
92
+ <script src="https://cdn.floe.so/sdk/floe-sdk.iife.js"></script>
93
+ <script>
94
+ Floe({
95
+ clientKey: 'your-client-key',
96
+ userInfo: {
97
+ externalId: 'user_123',
98
+ },
99
+ });
100
+ </script>
101
+ ```
102
+
103
+ ## TypeScript Support
104
+
105
+ Full TypeScript support with exported types:
106
+
107
+ ```typescript
108
+ import { Floe, FloeConfig } from '@floe-ai/sdk';
109
+
110
+ const config: FloeConfig = {
111
+ clientKey: 'your-key',
112
+ debug: true,
113
+ };
114
+
115
+ const sdk = Floe(config);
116
+ ```
117
+
118
+ ## Requirements
119
+
120
+ - React 18+
121
+ - Modern browser with WebRTC support
122
+
123
+ ## Peer Dependencies
124
+
125
+ ```json
126
+ {
127
+ "react": "^18.0.0",
128
+ "react-dom": "^18.0.0"
129
+ }
130
+ ```
131
+
132
+ ## License
133
+
134
+ Copyright © 2026 Floe AI, Inc. All rights reserved.
135
+
136
+ This software is proprietary and confidential. Unauthorized copying, distribution,
137
+ or use of this software, via any medium, is strictly prohibited without prior
138
+ written permission from Floe AI, Inc.
139
+
140
+ ## Support
141
+
142
+ - Documentation: https://docs.floe.so
143
+ - Email: support@floe.so
144
+