empathai-core 0.1.7 → 0.2.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 +8 -0
- package/README.md +32 -16
- package/package.json +21 -13
- package/CONTRIBUTING.md +0 -31
package/LICENSE
ADDED
package/README.md
CHANGED
|
@@ -1,36 +1,52 @@
|
|
|
1
1
|
# @empathai/core
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://www.npmjs.com/package/empathai-core)
|
|
4
|
+
[](LICENSE)
|
|
5
|
+
[](https://github.com/Pikxul/empathai)
|
|
4
6
|
|
|
5
|
-
|
|
6
|
-

|
|
7
|
-

|
|
7
|
+
**EmpathAI Core** — lightweight, non-intrusive emotion detection for web apps (keyboard + mouse).
|
|
8
8
|
|
|
9
9
|
---
|
|
10
10
|
|
|
11
|
-
##
|
|
11
|
+
## What it does
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
`empathai-core` analyzes user interaction signals (mouse movement, typing rhythm, clicks) and returns inferred emotional states (e.g. `focused`, `frustrated`, `bored`, `neutral`) together with a basic confidence score.
|
|
14
|
+
It is intentionally **privacy-first** — no camera/mic required.
|
|
14
15
|
|
|
15
|
-
|
|
16
|
+
> **EmpathAI Core** is a privacy-first, non-intrusive **emotion signal engine** for web applications.
|
|
17
|
+
It detects user emotional states in real time using **behavioral signals** such as mouse movement and typing patterns.
|
|
18
|
+
|
|
19
|
+
⚠️ This package is **NOT a recommendation engine** and **NOT an ML model**.
|
|
20
|
+
It is a **foundational signal layer** designed to be consumed by higher-level systems (AI, analytics, UX, decision engines).
|
|
16
21
|
|
|
17
22
|
---
|
|
18
23
|
|
|
19
|
-
##
|
|
24
|
+
## ✨ What EmpathAI Core Does
|
|
20
25
|
|
|
21
|
-
-
|
|
22
|
-
-
|
|
23
|
-
-
|
|
24
|
-
-
|
|
25
|
-
-
|
|
26
|
+
- Captures **non-intrusive user behavior signals**
|
|
27
|
+
- Infers **basic emotional states** (deterministic v1)
|
|
28
|
+
- Emits **structured emotion data** with confidence & timestamp
|
|
29
|
+
- Works entirely **on the client**
|
|
30
|
+
- Stores **no personal data**
|
|
31
|
+
- Safe for **BFSI / SaaS / FinTech / enterprise / privacy-sensitive environments**
|
|
32
|
+
|
|
33
|
+
---
|
|
34
|
+
|
|
35
|
+
## 🚫 What EmpathAI Core Does NOT Do
|
|
36
|
+
|
|
37
|
+
- ❌ No camera access
|
|
38
|
+
- ❌ No microphone access
|
|
39
|
+
- ❌ No personal data collection
|
|
40
|
+
- ❌ No emotion prediction via ML (yet)
|
|
41
|
+
- ❌ No recommendations or decisions
|
|
42
|
+
|
|
43
|
+
EmpathAI Core provides **signals**, not decisions.
|
|
26
44
|
|
|
27
45
|
---
|
|
28
46
|
|
|
29
47
|
## 📦 Installation
|
|
30
48
|
|
|
31
49
|
```bash
|
|
32
|
-
# With npm
|
|
33
50
|
npm install empathai-core
|
|
34
|
-
|
|
35
|
-
# With pnpm
|
|
51
|
+
# or
|
|
36
52
|
pnpm add empathai-core
|
package/package.json
CHANGED
|
@@ -1,42 +1,50 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "empathai-core",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "Non-intrusive behavior-based emotion detection SDK (keyboard & mouse) — EmpathAI core.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist",
|
|
9
9
|
"README.md",
|
|
10
|
-
"
|
|
10
|
+
"LICENSE"
|
|
11
11
|
],
|
|
12
12
|
"keywords": [
|
|
13
13
|
"emotion",
|
|
14
14
|
"ai",
|
|
15
15
|
"sdk",
|
|
16
16
|
"empathai",
|
|
17
|
-
"user
|
|
17
|
+
"user-behavior",
|
|
18
18
|
"multimodal"
|
|
19
19
|
],
|
|
20
|
-
"author": "Mrityunjoy",
|
|
20
|
+
"author": "Mrityunjoy (Piklu)",
|
|
21
21
|
"license": "MIT",
|
|
22
|
-
"private": false,
|
|
23
22
|
"repository": {
|
|
24
23
|
"type": "git",
|
|
25
|
-
"url": "https://github.com/
|
|
24
|
+
"url": "https://github.com/Pikxul/empathai"
|
|
26
25
|
},
|
|
27
|
-
"
|
|
28
|
-
"
|
|
26
|
+
"bugs": {
|
|
27
|
+
"url": "https://github.com/Pikxul/empathai/issues"
|
|
28
|
+
},
|
|
29
|
+
"homepage": "https://github.com/Pikxul/empathai",
|
|
30
|
+
"peerDependencies": {
|
|
31
|
+
"react": "^17 || ^18 || ^19"
|
|
29
32
|
},
|
|
30
33
|
"devDependencies": {
|
|
31
|
-
"@types/
|
|
34
|
+
"@types/node": "^20.0.0",
|
|
35
|
+
"eslint": "^8.0.0",
|
|
36
|
+
"jsdom": "^24.1.3",
|
|
32
37
|
"typescript": "^5.4.5",
|
|
33
|
-
"
|
|
38
|
+
"vitest": "^1.6.1"
|
|
39
|
+
},
|
|
40
|
+
"publishConfig": {
|
|
41
|
+
"access": "public"
|
|
34
42
|
},
|
|
35
43
|
"scripts": {
|
|
36
44
|
"build": "tsc",
|
|
37
45
|
"dev": "tsc --watch",
|
|
46
|
+
"test": "vitest",
|
|
38
47
|
"check-types": "tsc --noEmit",
|
|
39
|
-
"lint": "eslint ./src --ext .ts,.tsx"
|
|
40
|
-
"test": "echo \"No tests yet, coming soon!\" && exit 0"
|
|
48
|
+
"lint": "eslint ./src --ext .ts,.tsx"
|
|
41
49
|
}
|
|
42
50
|
}
|
package/CONTRIBUTING.md
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
# Contributing to EmpathAI
|
|
2
|
-
|
|
3
|
-
Thanks for your interest in contributing! 🎉
|
|
4
|
-
|
|
5
|
-
## How to Contribute
|
|
6
|
-
|
|
7
|
-
1. Fork this repo and clone it locally.
|
|
8
|
-
2. Run `pnpm install` to set up dependencies.
|
|
9
|
-
3. Create a new branch: `git checkout -b feature/my-new-feature`.
|
|
10
|
-
4. Make your changes, commit them.
|
|
11
|
-
5. Push to your fork and open a Pull Request.
|
|
12
|
-
|
|
13
|
-
## Code Guidelines
|
|
14
|
-
|
|
15
|
-
- Use TypeScript.
|
|
16
|
-
- Keep things modular under `packages/core/src`.
|
|
17
|
-
- Follow existing naming conventions.
|
|
18
|
-
- Use `pnpm build` before pushing.
|
|
19
|
-
|
|
20
|
-
## Issues and Discussions
|
|
21
|
-
|
|
22
|
-
- Use **Issues** to report bugs or suggest features.
|
|
23
|
-
- Open a **Discussion** for questions or brainstorming.
|
|
24
|
-
|
|
25
|
-
## Community
|
|
26
|
-
|
|
27
|
-
Join us on [GitHub Discussions](https://github.com/pikxul/empathai/discussions) *(Enable this tab in your repo settings)*
|
|
28
|
-
|
|
29
|
-
---
|
|
30
|
-
|
|
31
|
-
Let's build emotion-aware apps together 💜
|