brilliantsole 0.0.1
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 +21 -0
- package/README.md +21 -0
- package/build/brilliantsole.cjs +5957 -0
- package/build/brilliantsole.cjs.map +1 -0
- package/build/brilliantsole.js +5448 -0
- package/build/brilliantsole.js.map +1 -0
- package/build/brilliantsole.ls.js +4872 -0
- package/build/brilliantsole.ls.js.map +1 -0
- package/build/brilliantsole.min.js +6 -0
- package/build/brilliantsole.min.js.map +1 -0
- package/build/brilliantsole.module.d.ts +908 -0
- package/build/brilliantsole.module.js +5412 -0
- package/build/brilliantsole.module.js.map +1 -0
- package/build/brilliantsole.module.min.d.ts +908 -0
- package/build/brilliantsole.module.min.js +6 -0
- package/build/brilliantsole.module.min.js.map +1 -0
- package/build/brilliantsole.node.module.d.ts +908 -0
- package/build/brilliantsole.node.module.js +5906 -0
- package/build/brilliantsole.node.module.js.map +1 -0
- package/build/dts/BS.d.ts +25 -0
- package/build/dts/Device.d.ts +136 -0
- package/build/dts/DeviceInformationManager.d.ts +56 -0
- package/build/dts/DeviceManager.d.ts +67 -0
- package/build/dts/FileTransferManager.d.ts +84 -0
- package/build/dts/FirmwareManager.d.ts +71 -0
- package/build/dts/InformationManager.d.ts +66 -0
- package/build/dts/TfliteManager.d.ts +92 -0
- package/build/dts/connection/BaseConnectionManager.d.ts +59 -0
- package/build/dts/connection/ClientConnectionManager.d.ts +23 -0
- package/build/dts/connection/WebSocketClientConnectionManager.d.ts +23 -0
- package/build/dts/connection/bluetooth/BluetoothConnectionManager.d.ts +10 -0
- package/build/dts/connection/bluetooth/NobleConnectionManager.d.ts +42 -0
- package/build/dts/connection/bluetooth/WebBluetoothConnectionManager.d.ts +20 -0
- package/build/dts/connection/bluetooth/bluetoothUUIDs.d.ts +14 -0
- package/build/dts/connection/webSocket/ClientConnectionManager.d.ts +23 -0
- package/build/dts/connection/webSocket/WebSocketClientConnectionManager.d.ts +23 -0
- package/build/dts/devicePair/DevicePair.d.ts +60 -0
- package/build/dts/devicePair/DevicePairPressureSensorDataManager.d.ts +25 -0
- package/build/dts/devicePair/DevicePairSensorDataManager.d.ts +33 -0
- package/build/dts/scanner/BaseScanner.d.ts +66 -0
- package/build/dts/scanner/NobleScanner.d.ts +17 -0
- package/build/dts/scanner/Scanner.d.ts +3 -0
- package/build/dts/sensor/BarometerSensorDataManager.d.ts +16 -0
- package/build/dts/sensor/MotionSensorDataManager.d.ts +69 -0
- package/build/dts/sensor/PressureSensorDataManager.d.ts +36 -0
- package/build/dts/sensor/SensorConfigurationManager.d.ts +44 -0
- package/build/dts/sensor/SensorDataManager.d.ts +40 -0
- package/build/dts/server/BaseClient.d.ts +85 -0
- package/build/dts/server/BaseServer.d.ts +48 -0
- package/build/dts/server/ServerUtils.d.ts +23 -0
- package/build/dts/server/udp/UDPServer.d.ts +11 -0
- package/build/dts/server/udp/UDPUtils.d.ts +9 -0
- package/build/dts/server/websocket/WebSocketClient.d.ts +17 -0
- package/build/dts/server/websocket/WebSocketServer.d.ts +13 -0
- package/build/dts/server/websocket/WebSocketUtils.d.ts +9 -0
- package/build/dts/utils/ArrayBufferUtils.d.ts +7 -0
- package/build/dts/utils/ArrayUtils.d.ts +2 -0
- package/build/dts/utils/CenterOfPressureHelper.d.ts +15 -0
- package/build/dts/utils/Console.d.ts +34 -0
- package/build/dts/utils/EventDispatcher.d.ts +50 -0
- package/build/dts/utils/EventUtils.d.ts +6 -0
- package/build/dts/utils/MathUtils.d.ts +21 -0
- package/build/dts/utils/ParseUtils.d.ts +5 -0
- package/build/dts/utils/RangeHelper.d.ts +8 -0
- package/build/dts/utils/Text.d.ts +6 -0
- package/build/dts/utils/Timer.d.ts +14 -0
- package/build/dts/utils/TypeScriptUtils.d.ts +19 -0
- package/build/dts/utils/cbor.d.ts +6 -0
- package/build/dts/utils/checksum.d.ts +3 -0
- package/build/dts/utils/environment.d.ts +13 -0
- package/build/dts/utils/mcumgr.d.ts +88 -0
- package/build/dts/utils/stringUtils.d.ts +2 -0
- package/build/dts/vibration/VibrationManager.d.ts +45 -0
- package/build/dts/vibration/VibrationWaveformEffects.d.ts +2 -0
- package/build/index.d.ts +908 -0
- package/build/index.node.d.ts +908 -0
- package/examples/3d/index.html +109 -0
- package/examples/3d/scene.html +57 -0
- package/examples/3d/script.js +419 -0
- package/examples/balance/index.html +138 -0
- package/examples/balance/script.js +243 -0
- package/examples/basic/index.html +327 -0
- package/examples/basic/script.js +1093 -0
- package/examples/center-of-pressure/index.html +132 -0
- package/examples/center-of-pressure/script.js +207 -0
- package/examples/device-pair/index.html +72 -0
- package/examples/device-pair/script.js +187 -0
- package/examples/edge-impulse/index.html +94 -0
- package/examples/edge-impulse/script.js +1033 -0
- package/examples/graph/index.html +83 -0
- package/examples/graph/script.js +469 -0
- package/examples/machine-learning/index.html +366 -0
- package/examples/machine-learning/script.js +1774 -0
- package/examples/pressure/index.html +145 -0
- package/examples/pressure/script.js +201 -0
- package/examples/recording/index.html +187 -0
- package/examples/recording/script.js +736 -0
- package/examples/server/index.html +266 -0
- package/examples/server/script.js +925 -0
- package/examples/utils/aframe/fingertip-button-component.js +201 -0
- package/examples/utils/aframe/fingertip-collider-target-component.js +102 -0
- package/examples/utils/aframe/fingertip-colliders-component.js +147 -0
- package/examples/utils/three/three.module.min.js +24846 -0
- package/examples/webxr/index.html +221 -0
- package/examples/webxr/script.js +1127 -0
- package/package.json +83 -0
- package/src/BS.ts +68 -0
- package/src/Device.ts +734 -0
- package/src/DeviceInformationManager.ts +146 -0
- package/src/DeviceManager.ts +354 -0
- package/src/FileTransferManager.ts +452 -0
- package/src/FirmwareManager.ts +357 -0
- package/src/InformationManager.ts +283 -0
- package/src/TfliteManager.ts +450 -0
- package/src/connection/BaseConnectionManager.ts +255 -0
- package/src/connection/ClientConnectionManager.ts +120 -0
- package/src/connection/bluetooth/BluetoothConnectionManager.ts +34 -0
- package/src/connection/bluetooth/NobleConnectionManager.ts +302 -0
- package/src/connection/bluetooth/WebBluetoothConnectionManager.ts +269 -0
- package/src/connection/bluetooth/bluetoothUUIDs.ts +218 -0
- package/src/devicePair/DevicePair.ts +253 -0
- package/src/devicePair/DevicePairPressureSensorDataManager.ts +82 -0
- package/src/devicePair/DevicePairSensorDataManager.ts +90 -0
- package/src/scanner/BaseScanner.ts +189 -0
- package/src/scanner/NobleScanner.ts +195 -0
- package/src/scanner/Scanner.ts +16 -0
- package/src/sensor/BarometerSensorDataManager.ts +41 -0
- package/src/sensor/MotionSensorDataManager.ts +151 -0
- package/src/sensor/PressureSensorDataManager.ts +112 -0
- package/src/sensor/SensorConfigurationManager.ts +177 -0
- package/src/sensor/SensorDataManager.ts +166 -0
- package/src/server/BaseClient.ts +368 -0
- package/src/server/BaseServer.ts +344 -0
- package/src/server/ServerUtils.ts +93 -0
- package/src/server/udp/UDPServer.ts +229 -0
- package/src/server/udp/UDPUtils.ts +20 -0
- package/src/server/websocket/WebSocketClient.ts +179 -0
- package/src/server/websocket/WebSocketServer.ts +184 -0
- package/src/server/websocket/WebSocketUtils.ts +20 -0
- package/src/utils/ArrayBufferUtils.ts +88 -0
- package/src/utils/ArrayUtils.ts +15 -0
- package/src/utils/CenterOfPressureHelper.ts +39 -0
- package/src/utils/Console.ts +156 -0
- package/src/utils/EventDispatcher.ts +153 -0
- package/src/utils/EventUtils.ts +41 -0
- package/src/utils/MathUtils.ts +53 -0
- package/src/utils/ParseUtils.ts +46 -0
- package/src/utils/RangeHelper.ts +38 -0
- package/src/utils/Text.ts +30 -0
- package/src/utils/Timer.ts +72 -0
- package/src/utils/TypeScriptUtils.ts +22 -0
- package/src/utils/cbor.js +429 -0
- package/src/utils/checksum.ts +41 -0
- package/src/utils/environment.ts +46 -0
- package/src/utils/mcumgr.js +444 -0
- package/src/utils/stringUtils.ts +11 -0
- package/src/vibration/VibrationManager.ts +308 -0
- package/src/vibration/VibrationWaveformEffects.ts +128 -0
package/package.json
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "brilliantsole",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "JavaScript SDK for BrilliantSole Smart Insoles",
|
|
5
|
+
"main": "./build/brilliantsole.node.module.js",
|
|
6
|
+
"module": "./build/brilliantsole.module.js",
|
|
7
|
+
"browser": "./build/brilliantsole.js",
|
|
8
|
+
"types": "./build/index.d.ts",
|
|
9
|
+
"type": "module",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"node": {
|
|
13
|
+
"require": "./build/brilliantsole.node.module.js",
|
|
14
|
+
"import": "./build/brilliantsole.node.module.js",
|
|
15
|
+
"types": "./build/index.node.d.ts"
|
|
16
|
+
},
|
|
17
|
+
"default": {
|
|
18
|
+
"import": "./build/brilliantsole.module.js",
|
|
19
|
+
"types": "./build/index.d.ts"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"./src/*": "./src/*"
|
|
23
|
+
},
|
|
24
|
+
"scripts": {
|
|
25
|
+
"build": "rollup -c",
|
|
26
|
+
"dev": "rollup -c -w",
|
|
27
|
+
"server": "node server.js"
|
|
28
|
+
},
|
|
29
|
+
"repository": "https://github.com/zakaton/BrilliantSole.js.git",
|
|
30
|
+
"homepage": "https://www.runonbrilliantsole.com/",
|
|
31
|
+
"author": "Zack Qattan <zack@brilliantsole.com>",
|
|
32
|
+
"license": "MIT",
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@babel/core": "^7.24.6",
|
|
35
|
+
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
36
|
+
"@babel/plugin-proposal-numeric-separator": "^7.18.6",
|
|
37
|
+
"@babel/plugin-proposal-optional-chaining": "^7.21.0",
|
|
38
|
+
"@babel/plugin-proposal-private-methods": "^7.18.6",
|
|
39
|
+
"@babel/preset-env": "^7.24.6",
|
|
40
|
+
"@rollup/plugin-babel": "^6.0.4",
|
|
41
|
+
"@rollup/plugin-commonjs": "^25.0.8",
|
|
42
|
+
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
43
|
+
"@rollup/plugin-replace": "^5.0.5",
|
|
44
|
+
"@rollup/plugin-terser": "^0.4.4",
|
|
45
|
+
"@rollup/plugin-typescript": "^11.1.6",
|
|
46
|
+
"@types/web-bluetooth": "^0.0.20",
|
|
47
|
+
"@types/ws": "^8.5.10",
|
|
48
|
+
"express": "^4.18.3",
|
|
49
|
+
"ip": "^2.0.1",
|
|
50
|
+
"magic-string": "^0.30.5",
|
|
51
|
+
"rollup": "^4.18.0",
|
|
52
|
+
"rollup-plugin-babel": "^4.4.0",
|
|
53
|
+
"rollup-plugin-cleanup": "^3.2.1",
|
|
54
|
+
"rollup-plugin-commonjs": "^10.1.0",
|
|
55
|
+
"rollup-plugin-copy": "^3.5.0",
|
|
56
|
+
"rollup-plugin-dts": "^6.1.1",
|
|
57
|
+
"rollup-plugin-eslint": "^7.0.0",
|
|
58
|
+
"rollup-plugin-filesize": "^10.0.0",
|
|
59
|
+
"rollup-plugin-multi-entry": "^2.1.0",
|
|
60
|
+
"rollup-plugin-node-resolve": "^5.2.0",
|
|
61
|
+
"rollup-plugin-progress": "^1.1.2",
|
|
62
|
+
"rollup-plugin-uglify": "^6.0.4",
|
|
63
|
+
"tslib": "^2.6.3",
|
|
64
|
+
"typescript": "^5.5.3",
|
|
65
|
+
"ws": "^8.16.0"
|
|
66
|
+
},
|
|
67
|
+
"dependencies": {
|
|
68
|
+
"@abandonware/noble": "^1.9.2-24",
|
|
69
|
+
"auto-bind": "^5.0.1",
|
|
70
|
+
"webbluetooth": "^3.2.1"
|
|
71
|
+
},
|
|
72
|
+
"files": [
|
|
73
|
+
"package.json",
|
|
74
|
+
"README.md",
|
|
75
|
+
"LICENSE",
|
|
76
|
+
"src",
|
|
77
|
+
"build",
|
|
78
|
+
"examples"
|
|
79
|
+
],
|
|
80
|
+
"directories": {
|
|
81
|
+
"example": "examples"
|
|
82
|
+
}
|
|
83
|
+
}
|
package/src/BS.ts
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
export { setAllConsoleLevelFlags, setConsoleLevelFlagsForType } from "./utils/Console.ts";
|
|
2
|
+
export * as Environment from "./utils/environment.ts";
|
|
3
|
+
export { Vector2, Vector3, Quaternion, Euler } from "./utils/MathUtils.ts";
|
|
4
|
+
|
|
5
|
+
export {
|
|
6
|
+
default as Device,
|
|
7
|
+
DeviceEvent,
|
|
8
|
+
DeviceEventMap,
|
|
9
|
+
DeviceEventListenerMap,
|
|
10
|
+
BoundDeviceEventListeners,
|
|
11
|
+
} from "./Device.ts";
|
|
12
|
+
export {
|
|
13
|
+
default as DeviceManager,
|
|
14
|
+
DeviceManagerEvent,
|
|
15
|
+
DeviceManagerEventMap,
|
|
16
|
+
DeviceManagerEventListenerMap,
|
|
17
|
+
BoundDeviceManagerEventListeners,
|
|
18
|
+
} from "./DeviceManager.ts";
|
|
19
|
+
|
|
20
|
+
export { DeviceInformation } from "./DeviceInformationManager.ts";
|
|
21
|
+
export {
|
|
22
|
+
DeviceType,
|
|
23
|
+
DeviceTypes,
|
|
24
|
+
MinNameLength,
|
|
25
|
+
MaxNameLength,
|
|
26
|
+
InsoleSides,
|
|
27
|
+
InsoleSide,
|
|
28
|
+
} from "./InformationManager.ts";
|
|
29
|
+
export { SensorType, SensorTypes, ContinuousSensorType, ContinuousSensorTypes } from "./sensor/SensorDataManager.ts";
|
|
30
|
+
export { MaxSensorRate, SensorRateStep, SensorConfiguration } from "./sensor/SensorConfigurationManager.ts";
|
|
31
|
+
|
|
32
|
+
export { DefaultNumberOfPressureSensors, PressureData } from "./sensor/PressureSensorDataManager.ts";
|
|
33
|
+
export { CenterOfPressure } from "./utils/CenterOfPressureHelper.ts";
|
|
34
|
+
export {
|
|
35
|
+
VibrationConfiguration,
|
|
36
|
+
VibrationLocation,
|
|
37
|
+
VibrationLocations,
|
|
38
|
+
VibrationType,
|
|
39
|
+
VibrationTypes,
|
|
40
|
+
MaxNumberOfVibrationWaveformEffectSegments,
|
|
41
|
+
MaxVibrationWaveformSegmentDuration,
|
|
42
|
+
MaxVibrationWaveformEffectSegmentDelay,
|
|
43
|
+
MaxVibrationWaveformEffectSegmentLoopCount,
|
|
44
|
+
MaxNumberOfVibrationWaveformSegments,
|
|
45
|
+
MaxVibrationWaveformEffectSequenceLoopCount,
|
|
46
|
+
} from "./vibration/VibrationManager.ts";
|
|
47
|
+
export { VibrationWaveformEffect, VibrationWaveformEffects } from "./vibration/VibrationWaveformEffects.ts";
|
|
48
|
+
|
|
49
|
+
export { FileType, FileTypes, FileTransferDirection, FileTransferDirections } from "./FileTransferManager.ts";
|
|
50
|
+
export { TfliteSensorType, TfliteSensorTypes, TfliteTask, TfliteTasks } from "./TfliteManager.ts";
|
|
51
|
+
|
|
52
|
+
export {
|
|
53
|
+
default as DevicePair,
|
|
54
|
+
DevicePairEvent,
|
|
55
|
+
DevicePairEventMap,
|
|
56
|
+
DevicePairEventListenerMap,
|
|
57
|
+
BoundDevicePairEventListeners,
|
|
58
|
+
} from "./devicePair/DevicePair.ts";
|
|
59
|
+
|
|
60
|
+
export { DiscoveredDevice } from "./scanner/BaseScanner.ts";
|
|
61
|
+
/** NODE_START */
|
|
62
|
+
export { default as Scanner } from "./scanner/Scanner.ts";
|
|
63
|
+
export { default as WebSocketServer } from "./server/websocket/WebSocketServer.ts";
|
|
64
|
+
export { default as UDPServer } from "./server/udp/UDPServer.ts";
|
|
65
|
+
/** NODE_END */
|
|
66
|
+
/** BROWSER_START */
|
|
67
|
+
export { default as WebSocketClient } from "./server/websocket/WebSocketClient.ts";
|
|
68
|
+
/** BROWSER_END */
|