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 ADDED
@@ -0,0 +1,8 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Mrityunjoy
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ ...
7
+
8
+ [full MIT text — paste standard MIT license content here, including year and author]
package/README.md CHANGED
@@ -1,36 +1,52 @@
1
1
  # @empathai/core
2
2
 
3
- > Progressive, multimodal emotion detection SDK for real-time web applications. Built for developers who want apps to **feel** the user.
3
+ [![npm version](https://img.shields.io/npm/v/empathai-core.svg)](https://www.npmjs.com/package/empathai-core)
4
+ [![license: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
5
+ [![GitHub](https://img.shields.io/github/last-commit/Pikxul/empathai?style=flat-square)](https://github.com/Pikxul/empathai)
4
6
 
5
- ![npm](https://img.shields.io/npm/v/empathai-core?color=crimson&style=flat-square)
6
- ![license](https://img.shields.io/npm/l/empathai-core?style=flat-square)
7
- ![GitHub last commit](https://img.shields.io/github/last-commit/pikxul/empathai?style=flat-square)
7
+ **EmpathAI Core** — lightweight, non-intrusive emotion detection for web apps (keyboard + mouse).
8
8
 
9
9
  ---
10
10
 
11
- ## 🔮 What is EmpathAI?
11
+ ## What it does
12
12
 
13
- **EmpathAI** is an open-source SDK that enables web applications to detect and respond to **user emotions** in real time using **non-intrusive behavior signals** such as typing speed, mouse movement, and interaction patterns.
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
- The `@empathai/core` package provides the core hook and engine for capturing and analyzing this behavior in **React apps**. Future modules (`@empathai/analytics`, `@empathai/chatbot`, `@empathai/enterprise`) will plug into this core.
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
- ## 🚀 Features
24
+ ## What EmpathAI Core Does
20
25
 
21
- - 🧠 Passive emotion tracking (no camera or mic required)
22
- - ⚛️ Built-in React hook (`useEmpathAI`)
23
- - 🌗 Works out of the box, extensible with plugins
24
- - 📦 Lightweight and production-ready
25
- - 🧩 Open source, extensible SDK architecture
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.1.7",
4
- "description": "Progressive, multimodal emotion detection SDK for real-time apps",
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
- "CONTRIBUTING.md"
10
+ "LICENSE"
11
11
  ],
12
12
  "keywords": [
13
13
  "emotion",
14
14
  "ai",
15
15
  "sdk",
16
16
  "empathai",
17
- "user behavior",
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/pikxul/empathai"
24
+ "url": "https://github.com/Pikxul/empathai"
26
25
  },
27
- "dependencies": {
28
- "react": "^19.1.1"
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/react": "^19.1.8",
34
+ "@types/node": "^20.0.0",
35
+ "eslint": "^8.0.0",
36
+ "jsdom": "^24.1.3",
32
37
  "typescript": "^5.4.5",
33
- "eslint": "^8.0.0"
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 💜