@quantabit/profile-sdk 1.0.0

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,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 QuantaBit Team
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,68 @@
1
+ # @quantabit/profile-sdk
2
+
3
+ > QuantaBit User Profile SDK - Behavioral auto-tagging and dynamic profile building
4
+
5
+ ## 📦 Installation
6
+
7
+ ```bash
8
+ npm install @quantabit/profile-sdk
9
+ # or
10
+ yarn add @quantabit/profile-sdk
11
+ ```
12
+
13
+ ## 🚀 Quick Start
14
+
15
+ ### Using Hooks
16
+
17
+ ```jsx
18
+ import { useProfile } from '@quantabit/profile-sdk';
19
+
20
+ function MyComponent() {
21
+ const result = useProfile();
22
+ return <div>...</div>;
23
+ }
24
+ ```
25
+
26
+ ### API Client
27
+
28
+ ```javascript
29
+ import { profileApi } from '@quantabit/profile-sdk';
30
+
31
+ // Use profileApi for direct API calls
32
+ const data = await profileApi.list();
33
+ ```
34
+
35
+ ## 🪝 Hooks
36
+
37
+ | Hook | Description |
38
+ | ---- | ----------- |
39
+ | `useProfile` | Profile management |
40
+
41
+ ## 📖 Type Definitions
42
+
43
+ ```javascript
44
+ import { TagType, TagSource, LifecycleStage, ValueTier } from '@quantabit/profile-sdk';
45
+ ```
46
+
47
+ ## 🌐 Internationalization
48
+
49
+ ```javascript
50
+ import { setLanguage, t } from '@quantabit/profile-sdk';
51
+
52
+ setLanguage("en");
53
+ ```
54
+
55
+ ## 📄 License
56
+
57
+ MIT License
58
+
59
+
60
+
61
+ ---
62
+
63
+ ## 🌐 Brand & Links
64
+ - Official Mainnet: [QuantaBit Chain](https://qbitchain.io/)
65
+ - Developer Platform: [Developer Platform](https://developer.quantabit.io/)
66
+ - Open Platform: [Open Platform](https://open.quantabit.io/)
67
+ - Payment Platform: [Pay Platform](https://pay.qbitwallet.io/)
68
+ - Feedback: [Feedback](https://xwin.live/qbit)