@syntropysoft/syntropyfront 0.3.0 → 0.4.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/README.md CHANGED
@@ -16,14 +16,15 @@
16
16
  <a href="#"><img src="https://img.shields.io/badge/status-ready%20for%20production-brightgreen.svg" alt="Ready for Production"></a>
17
17
  <a href="#"><img src="https://github.com/Syntropysoft/syntropyfront/workflows/CodeQL/badge.svg" alt="CodeQL"></a>
18
18
  <a href="#"><img src="https://img.shields.io/badge/dependabot-enabled-brightgreen.svg" alt="Dependabot"></a>
19
- <a href="#"><img src="https://img.shields.io/badge/mutation%20score-74.96%25-brightgreen.svg" alt="Mutation Score"></a>
20
- <a href="#"><img src="https://img.shields.io/badge/test%20coverage-91.01%25-brightgreen.svg" alt="Test Coverage"></a>
21
- <a href="#"><img src="https://img.shields.io/badge/bundle%20size-4.88%20KB-brightgreen.svg" alt="Bundle Size"></a>
19
+ <a href="#"><img src="https://img.shields.io/badge/mutation%20score-71.03%25-brightgreen.svg" alt="Mutation Score"></a>
20
+ <a href="#"><img src="https://img.shields.io/badge/test%20coverage-89.47%25-brightgreen.svg" alt="Test Coverage"></a>
21
+ <a href="#"><img src="https://img.shields.io/badge/bundle%20size-34%20KB-brightgreen.svg" alt="Bundle Size"></a>
22
+ <a href="https://socket.dev/npm/package/@syntropysoft/syntropyfront"><img src="https://socket.dev/api/badge/npm/package/@syntropysoft/syntropyfront" alt="Socket Badge"></a>
22
23
  </p>
23
24
 
24
25
  ---
25
26
 
26
- 🚀 **Observability library with automatic capture - Just 1 line of code!**
27
+ 🚀 **Observability library with automatic capture - Just 1 line of code! No dependencies!**
27
28
 
28
29
  SyntropyFront automatically captures user interactions, errors, HTTP calls, and console logs, providing comprehensive observability for your web applications with minimal setup.
29
30
 
@@ -36,6 +37,8 @@ SyntropyFront automatically captures user interactions, errors, HTTP calls, and
36
37
  - 💾 **Smart storage** - Keeps the last N events (configurable)
37
38
  - 📤 **Flexible posting** - Posts errors to your endpoint or logs to console
38
39
  - ⚡ **Zero configuration** - Works out of the box with just an import
40
+ - 📦 **Zero Dependencies** - 100% standalone, no runtime dependencies
41
+ - 🛡️ **Highly Resilient** - Automatic retry and persistent queuing
39
42
 
40
43
  ## 🚀 Quick Start
41
44
 
@@ -101,23 +104,22 @@ syntropyFront.configure({
101
104
  npm install @syntropysoft/syntropyfront
102
105
  ```
103
106
 
104
- ## 🚀 **Performance Optimizations (v0.3.0)**
107
+ ## 🚀 **Performance Optimizations (v0.4.0)**
105
108
 
106
109
  SyntropyFront has been optimized for maximum performance and minimal bundle size:
107
110
 
108
111
  ### **🎯 Testing Excellence**
109
- - **Mutation Score**: Improved from 58.14% to **74.96%** (+16.82 points!)
110
- - **Test Coverage**: **91.01%** with 488 comprehensive tests
112
+ - **Mutation Score**: **71.03%** (Total) / **80.02%** (Covered) verified with Stryker
113
+ - **Test Coverage**: **81.47% Branch Coverage** (90.07% Lines)
114
+ - **430+ Comprehensive Tests**: Covering all edge cases and resilience scenarios
111
115
  - **Database Modules**: All modules now have 77-100% mutation score
112
116
  - **Core Components**: 92.70% average mutation score across agent modules
113
117
 
114
118
  ### **📦 Ultra-Lightweight Bundle**
115
- - **Only 1 Runtime Dependency**: `flatted` for circular reference handling
116
- - **45+ Dependencies Removed**: Eliminated unnecessary packages
117
- - **Bundle Size**: **4.88 KB** minified (4,884 bytes)
118
- - **ES Module**: 10.9 KB
119
- - **CommonJS**: 10.98 KB
120
- - **Faster Installation**: Reduced npm install time and disk usage
119
+ - **Zero Runtime Dependencies**: No more external requirements.
120
+ - **Bundle Size**: **34 KB** minified (fully featured with offline support)
121
+ - **ES Module**: 80 KB (unminified)
122
+ - **Zero Runtime Dependencies**: Near-instant installation and minimal noise
121
123
 
122
124
  ### **🔧 Smart Dependency Management**
123
125
  - **Clean Architecture**: All testing tools properly categorized as devDependencies
@@ -520,6 +522,16 @@ npm run test:coverage
520
522
  npm run test:mutation
521
523
  ```
522
524
 
525
+
526
+ ## 🛡️ Security & Privacy
527
+
528
+ SyntropyFront is designed with security and transparency in mind:
529
+
530
+ - **Network Access**: Telemetry is sent **only** to the endpoint you configure via `configure({ fetch: { url: '...' } })`. By default, it only logs to the browser console.
531
+ - **No Third-Party Tracking**: We don't include any tracking or analytics scripts. Your data is yours.
532
+ - **PII Protection**: Breadcrumbs focus on technical context. We recommend using a custom `onError` handler to scrub sensitive data if necessary.
533
+ - **Zero Runtime Dependencies**: Minimizes the attack surface by not relying on external code at runtime.
534
+
523
535
  ## 🔍 Debugging
524
536
 
525
537
  SyntropyFront logs helpful information to the console: