horus-bot-detect 0.1.0 → 0.1.2

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.
Files changed (2) hide show
  1. package/README.md +81 -0
  2. package/package.json +1 -1
package/README.md ADDED
@@ -0,0 +1,81 @@
1
+ # Horus by MOD
2
+
3
+ ## Kurulum
4
+
5
+ ```bash
6
+ npm install horus-bot-detect
7
+ ```
8
+
9
+ ## Kullanım
10
+
11
+ ```jsx
12
+ import { Horus } from 'horus-bot-detect';
13
+
14
+ Horus.init({
15
+ token: 'YOUR_TOKEN',
16
+ endpoint: 'https://your-api.com/event'
17
+ });
18
+ ```
19
+
20
+ ### React
21
+
22
+ ```jsx
23
+ import { useEffect } from 'react';
24
+ import { Horus } from 'horus-bot-detect';
25
+
26
+ function App() {
27
+ useEffect(() => {
28
+ Horus.init({
29
+ token: 'YOUR_TOKEN',
30
+ endpoint: 'https://your-api.com/event'
31
+ });
32
+ }, []);
33
+
34
+ return <div>...</div>;
35
+ }
36
+ ```
37
+
38
+ ### Vanilla JS
39
+
40
+ ```html
41
+ <script type="module">
42
+ import { Horus } from './node_modules/horus-bot-detect/index.mjs';
43
+
44
+ Horus.init({
45
+ token: 'YOUR_TOKEN',
46
+ endpoint: 'https://your-api.com/event'
47
+ });
48
+ </script>
49
+ ```
50
+
51
+ ## Nasıl Çalışır
52
+
53
+ Uygulama açıldığı anda Horus arka planda çalışmaya başlar. Şüpheli aktivite tespit edildiğinde belirttiğiniz endpoint'e otomatik olarak rapor gönderir.
54
+
55
+ ### Raporlama
56
+
57
+ Bot tespit edildiğinde endpoint'inize POST request atılır:
58
+
59
+ ```json
60
+ {
61
+ "value": "bot_detected",
62
+ "reason": "Bot Tespit Edildi - [detaylar] - Risk: 0.87",
63
+ "token": "YOUR_TOKEN"
64
+ }
65
+ ```
66
+
67
+ ## Parametreler
68
+
69
+ | Parametre | Tip | Zorunlu | Açıklama |
70
+ |-----------|-----|---------|----------|
71
+ | `token` | string | Evet | Kimlik doğrulama token'ı |
72
+ | `endpoint` | string | Evet | Raporların gönderileceği POST endpoint URL'i |
73
+
74
+ ## Gereksinimler
75
+
76
+ - Modern tarayıcı (WebAssembly desteği)
77
+ - HTTPS ortamı (production)
78
+
79
+ ## Lisans
80
+
81
+ MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "horus-bot-detect",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Security layer for web games",
5
5
  "main": "index.js",
6
6
  "module": "index.mjs",