web-agent-bridge 1.1.1 → 1.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 (66) hide show
  1. package/LICENSE +21 -21
  2. package/README.ar.md +446 -446
  3. package/README.md +844 -844
  4. package/bin/cli.js +80 -80
  5. package/bin/wab.js +80 -80
  6. package/docs/DEPLOY.md +118 -118
  7. package/docs/SPEC.md +1540 -1540
  8. package/examples/bidi-agent.js +119 -119
  9. package/examples/mcp-agent.js +94 -94
  10. package/examples/puppeteer-agent.js +108 -108
  11. package/examples/vision-agent.js +171 -171
  12. package/package.json +78 -78
  13. package/public/admin/dashboard.html +848 -848
  14. package/public/admin/login.html +84 -84
  15. package/public/cookies.html +208 -208
  16. package/public/css/styles.css +1235 -1235
  17. package/public/dashboard.html +704 -704
  18. package/public/docs.html +585 -585
  19. package/public/index.html +332 -332
  20. package/public/js/auth-nav.js +31 -31
  21. package/public/js/auth-redirect.js +12 -12
  22. package/public/js/cookie-consent.js +56 -56
  23. package/public/js/ws-client.js +74 -74
  24. package/public/login.html +83 -83
  25. package/public/privacy.html +295 -295
  26. package/public/register.html +103 -103
  27. package/public/terms.html +254 -254
  28. package/script/ai-agent-bridge.js +1513 -1513
  29. package/sdk/README.md +55 -55
  30. package/sdk/index.js +203 -203
  31. package/sdk/package.json +14 -14
  32. package/server/config/secrets.js +92 -92
  33. package/server/index.js +181 -181
  34. package/server/middleware/adminAuth.js +30 -30
  35. package/server/middleware/auth.js +41 -41
  36. package/server/middleware/rateLimits.js +24 -24
  37. package/server/migrations/001_add_analytics_indexes.sql +7 -7
  38. package/server/models/adapters/index.js +33 -33
  39. package/server/models/adapters/mysql.js +183 -183
  40. package/server/models/adapters/postgresql.js +172 -172
  41. package/server/models/adapters/sqlite.js +7 -7
  42. package/server/models/db.js +561 -561
  43. package/server/routes/admin.js +247 -247
  44. package/server/routes/api.js +138 -138
  45. package/server/routes/auth.js +51 -51
  46. package/server/routes/billing.js +45 -45
  47. package/server/routes/discovery.js +329 -329
  48. package/server/routes/license.js +240 -240
  49. package/server/routes/noscript.js +543 -543
  50. package/server/routes/wab-api.js +476 -476
  51. package/server/services/email.js +204 -204
  52. package/server/services/fairness.js +420 -420
  53. package/server/services/stripe.js +192 -192
  54. package/server/utils/cache.js +125 -125
  55. package/server/utils/migrate.js +81 -81
  56. package/server/utils/secureFields.js +50 -50
  57. package/server/ws.js +101 -101
  58. package/wab-mcp-adapter/README.md +136 -136
  59. package/wab-mcp-adapter/index.js +555 -555
  60. package/wab-mcp-adapter/package.json +17 -17
  61. package/public/css/premium.css +0 -317
  62. package/public/premium-dashboard.html +0 -2075
  63. package/public/premium.html +0 -791
  64. package/server/migrations/002_premium_features.sql +0 -418
  65. package/server/routes/premium.js +0 -724
  66. package/server/services/premium.js +0 -1680
@@ -1,84 +1,84 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>Admin Login — Web Agent Bridge</title>
7
- <link rel="preconnect" href="https://fonts.googleapis.com">
8
- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
9
- <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet">
10
- <link rel="stylesheet" href="/css/styles.css">
11
- </head>
12
- <body class="auth-page">
13
- <div class="auth-container">
14
- <div class="auth-card">
15
- <div class="auth-header" style="text-align:center;">
16
- <div class="brand-icon" style="background:linear-gradient(135deg,#ef4444,#f59e0b);width:56px;height:56px;border-radius:14px;display:inline-flex;align-items:center;justify-content:center;font-size:28px;margin-bottom:16px;">🛡️</div>
17
- <h1>Admin Panel</h1>
18
- <p style="color:var(--text-muted);">Web Agent Bridge Administration</p>
19
- </div>
20
- <div class="alert alert-error" id="loginError" style="display:none;"></div>
21
- <form id="loginForm" onsubmit="return handleLogin(event)">
22
- <div class="form-group">
23
- <label>Email</label>
24
- <input type="email" class="form-input" id="email" required autofocus placeholder="admin@webagentbridge.com">
25
- </div>
26
- <div class="form-group">
27
- <label>Password</label>
28
- <input type="password" class="form-input" id="password" required placeholder="••••••••">
29
- </div>
30
- <button type="submit" class="btn btn-primary" style="width:100%;margin-top:16px;" id="submitBtn">Sign In</button>
31
- </form>
32
- <div style="text-align:center;margin-top:20px;">
33
- <a href="/" style="color:var(--text-muted);font-size:0.85rem;">← Back to Website</a>
34
- </div>
35
- </div>
36
- </div>
37
-
38
- <script>
39
- if (localStorage.getItem('wab_admin_token')) {
40
- window.location.href = '/admin';
41
- }
42
-
43
- async function handleLogin(e) {
44
- e.preventDefault();
45
- const email = document.getElementById('email').value;
46
- const password = document.getElementById('password').value;
47
- const errEl = document.getElementById('loginError');
48
- const btn = document.getElementById('submitBtn');
49
-
50
- errEl.style.display = 'none';
51
- btn.disabled = true;
52
- btn.textContent = 'Signing in...';
53
-
54
- try {
55
- const res = await fetch('/api/admin/login', {
56
- method: 'POST',
57
- headers: { 'Content-Type': 'application/json' },
58
- body: JSON.stringify({ email, password })
59
- });
60
- const data = await res.json();
61
-
62
- if (!res.ok) {
63
- errEl.textContent = data.error || 'Invalid credentials';
64
- errEl.style.display = 'block';
65
- btn.disabled = false;
66
- btn.textContent = 'Sign In';
67
- return;
68
- }
69
-
70
- localStorage.setItem('wab_admin_token', data.token);
71
- localStorage.setItem('wab_admin', JSON.stringify(data.admin));
72
- window.location.href = '/admin';
73
- } catch (err) {
74
- errEl.textContent = 'Connection error. Please try again.';
75
- errEl.style.display = 'block';
76
- btn.disabled = false;
77
- btn.textContent = 'Sign In';
78
- }
79
- return false;
80
- }
81
- </script>
82
- <script src="/js/cookie-consent.js"></script>
83
- </body>
84
- </html>
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Admin Login — Web Agent Bridge</title>
7
+ <link rel="preconnect" href="https://fonts.googleapis.com">
8
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
9
+ <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet">
10
+ <link rel="stylesheet" href="/css/styles.css">
11
+ </head>
12
+ <body class="auth-page">
13
+ <div class="auth-container">
14
+ <div class="auth-card">
15
+ <div class="auth-header" style="text-align:center;">
16
+ <div class="brand-icon" style="background:linear-gradient(135deg,#ef4444,#f59e0b);width:56px;height:56px;border-radius:14px;display:inline-flex;align-items:center;justify-content:center;font-size:28px;margin-bottom:16px;">🛡️</div>
17
+ <h1>Admin Panel</h1>
18
+ <p style="color:var(--text-muted);">Web Agent Bridge Administration</p>
19
+ </div>
20
+ <div class="alert alert-error" id="loginError" style="display:none;"></div>
21
+ <form id="loginForm" onsubmit="return handleLogin(event)">
22
+ <div class="form-group">
23
+ <label>Email</label>
24
+ <input type="email" class="form-input" id="email" required autofocus placeholder="admin@webagentbridge.com">
25
+ </div>
26
+ <div class="form-group">
27
+ <label>Password</label>
28
+ <input type="password" class="form-input" id="password" required placeholder="••••••••">
29
+ </div>
30
+ <button type="submit" class="btn btn-primary" style="width:100%;margin-top:16px;" id="submitBtn">Sign In</button>
31
+ </form>
32
+ <div style="text-align:center;margin-top:20px;">
33
+ <a href="/" style="color:var(--text-muted);font-size:0.85rem;">← Back to Website</a>
34
+ </div>
35
+ </div>
36
+ </div>
37
+
38
+ <script>
39
+ if (localStorage.getItem('wab_admin_token')) {
40
+ window.location.href = '/admin';
41
+ }
42
+
43
+ async function handleLogin(e) {
44
+ e.preventDefault();
45
+ const email = document.getElementById('email').value;
46
+ const password = document.getElementById('password').value;
47
+ const errEl = document.getElementById('loginError');
48
+ const btn = document.getElementById('submitBtn');
49
+
50
+ errEl.style.display = 'none';
51
+ btn.disabled = true;
52
+ btn.textContent = 'Signing in...';
53
+
54
+ try {
55
+ const res = await fetch('/api/admin/login', {
56
+ method: 'POST',
57
+ headers: { 'Content-Type': 'application/json' },
58
+ body: JSON.stringify({ email, password })
59
+ });
60
+ const data = await res.json();
61
+
62
+ if (!res.ok) {
63
+ errEl.textContent = data.error || 'Invalid credentials';
64
+ errEl.style.display = 'block';
65
+ btn.disabled = false;
66
+ btn.textContent = 'Sign In';
67
+ return;
68
+ }
69
+
70
+ localStorage.setItem('wab_admin_token', data.token);
71
+ localStorage.setItem('wab_admin', JSON.stringify(data.admin));
72
+ window.location.href = '/admin';
73
+ } catch (err) {
74
+ errEl.textContent = 'Connection error. Please try again.';
75
+ errEl.style.display = 'block';
76
+ btn.disabled = false;
77
+ btn.textContent = 'Sign In';
78
+ }
79
+ return false;
80
+ }
81
+ </script>
82
+ <script src="/js/cookie-consent.js"></script>
83
+ </body>
84
+ </html>
@@ -1,208 +1,208 @@
1
- <!DOCTYPE html>
2
- <html lang="en" dir="ltr">
3
- <head>
4
- <meta charset="UTF-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>Cookie Policy — Web Agent Bridge</title>
7
- <meta name="description" content="Cookie Policy for Web Agent Bridge. ePrivacy and GDPR compliant.">
8
- <link rel="preconnect" href="https://fonts.googleapis.com">
9
- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
10
- <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap" rel="stylesheet">
11
- <link rel="stylesheet" href="/css/styles.css">
12
- </head>
13
- <body>
14
-
15
- <nav class="navbar" id="navbar">
16
- <div class="container">
17
- <a href="/" class="navbar-brand">
18
- <div class="brand-icon">⚡</div>
19
- <span>WAB</span>
20
- </a>
21
- <ul class="navbar-links">
22
- <li><a href="/#features">Features</a></li>
23
- <li><a href="/#pricing">Pricing</a></li>
24
- <li><a href="/docs">Docs</a></li>
25
- </ul>
26
- <div class="navbar-actions">
27
- <a href="/login" class="btn btn-ghost">Sign In</a>
28
- <a href="/register" class="btn btn-primary btn-sm">Get Started</a>
29
- </div>
30
- </div>
31
- </nav>
32
-
33
- <div class="container" style="padding-top: 120px; padding-bottom: 80px; max-width: 800px;">
34
- <div class="section-header" style="text-align: left;">
35
- <span class="label">Legal</span>
36
- <h1 style="font-size: 2.2rem;">Cookie Policy</h1>
37
- <p style="max-width: 100%;">Last updated: March 22, 2026</p>
38
- </div>
39
-
40
- <div class="docs-content">
41
-
42
- <h2 id="what-are-cookies">1. What Are Cookies</h2>
43
- <p>
44
- Cookies are small text files placed on your device when you visit a website. They are widely
45
- used to make websites work, provide analytics, and remember your preferences.
46
- </p>
47
- <p>
48
- This Cookie Policy complies with the <strong>EU ePrivacy Directive (2002/58/EC)</strong>,
49
- the <strong>GDPR (EU 2016/679)</strong>, and the
50
- <strong>Dutch Telecommunications Act (Telecommunicatiewet, Art. 11.7a)</strong>.
51
- </p>
52
-
53
- <h2 id="cookies-we-use">2. Cookies We Use</h2>
54
- <p>WAB uses a <strong>minimal cookie approach</strong>. We only use what is strictly necessary.</p>
55
-
56
- <h3>2.1 Strictly Necessary Cookies</h3>
57
- <p>These cookies are essential for the Service to function. No consent is required under the ePrivacy Directive.</p>
58
- <table style="width: 100%; border-collapse: collapse; margin: 16px 0;">
59
- <thead>
60
- <tr style="border-bottom: 2px solid var(--border-color);">
61
- <th style="text-align: left; padding: 12px; color: var(--text-primary);">Name</th>
62
- <th style="text-align: left; padding: 12px; color: var(--text-primary);">Purpose</th>
63
- <th style="text-align: left; padding: 12px; color: var(--text-primary);">Duration</th>
64
- <th style="text-align: left; padding: 12px; color: var(--text-primary);">Type</th>
65
- </tr>
66
- </thead>
67
- <tbody>
68
- <tr style="border-bottom: 1px solid var(--border-color);">
69
- <td style="padding: 12px; color: var(--text-secondary);"><code style="font-family: var(--font-mono); background: var(--bg-surface); padding: 2px 6px; border-radius: 4px;">token</code></td>
70
- <td style="padding: 12px; color: var(--text-secondary);">Authentication session (JWT)</td>
71
- <td style="padding: 12px; color: var(--text-secondary);">Session / until logout</td>
72
- <td style="padding: 12px; color: var(--text-secondary);">localStorage</td>
73
- </tr>
74
- <tr style="border-bottom: 1px solid var(--border-color);">
75
- <td style="padding: 12px; color: var(--text-secondary);"><code style="font-family: var(--font-mono); background: var(--bg-surface); padding: 2px 6px; border-radius: 4px;">adminToken</code></td>
76
- <td style="padding: 12px; color: var(--text-secondary);">Admin authentication session</td>
77
- <td style="padding: 12px; color: var(--text-secondary);">Session / until logout</td>
78
- <td style="padding: 12px; color: var(--text-secondary);">localStorage</td>
79
- </tr>
80
- <tr>
81
- <td style="padding: 12px; color: var(--text-secondary);"><code style="font-family: var(--font-mono); background: var(--bg-surface); padding: 2px 6px; border-radius: 4px;">wab_cookie_consent</code></td>
82
- <td style="padding: 12px; color: var(--text-secondary);">Remembers your cookie consent choice</td>
83
- <td style="padding: 12px; color: var(--text-secondary);">365 days</td>
84
- <td style="padding: 12px; color: var(--text-secondary);">localStorage</td>
85
- </tr>
86
- </tbody>
87
- </table>
88
-
89
- <h3>2.2 Analytics Cookies</h3>
90
- <p>
91
- <strong>We do not use any analytics cookies.</strong> We do not use Google Analytics, Facebook Pixel,
92
- Hotjar, or any third-party tracking service. Our analytics system tracks AI agent behavior only
93
- (not human visitors) and does not use cookies.
94
- </p>
95
-
96
- <h3>2.3 Marketing Cookies</h3>
97
- <p><strong>We do not use marketing or advertising cookies.</strong></p>
98
-
99
- <h3>2.4 Third-Party Cookies</h3>
100
- <p>
101
- We load Google Fonts for typography. Google may set cookies when fonts are loaded.
102
- See <a href="https://policies.google.com/privacy" style="color: var(--accent-blue);" target="_blank" rel="noopener">Google's Privacy Policy</a>.
103
- </p>
104
- <p>
105
- When you interact with payment flows, <strong>Stripe</strong> may set cookies for fraud prevention.
106
- See <a href="https://stripe.com/cookie-settings" style="color: var(--accent-blue);" target="_blank" rel="noopener">Stripe's Cookie Policy</a>.
107
- </p>
108
-
109
- <h2 id="consent">3. Cookie Consent</h2>
110
- <p>
111
- Under the Dutch Telecommunicatiewet and the ePrivacy Directive:
112
- </p>
113
- <ul>
114
- <li><strong>Strictly necessary cookies</strong> do not require consent (they are exempt under Art. 11.7a(3) Tw)</li>
115
- <li><strong>Non-essential cookies</strong> require informed, prior consent — we obtain this via our cookie banner</li>
116
- </ul>
117
- <p>
118
- Since WAB currently uses <strong>only strictly necessary storage</strong>, we inform you via the cookie
119
- banner but no opt-in is required for our cookies. Third-party cookies from Google Fonts and Stripe
120
- are noted for transparency.
121
- </p>
122
-
123
- <h2 id="manage">4. How to Manage Cookies</h2>
124
- <p>You can control cookies through your browser settings:</p>
125
- <ul>
126
- <li><strong>Chrome</strong>: Settings → Privacy and security → Cookies</li>
127
- <li><strong>Firefox</strong>: Settings → Privacy & Security → Cookies</li>
128
- <li><strong>Safari</strong>: Preferences → Privacy → Cookies</li>
129
- <li><strong>Edge</strong>: Settings → Cookies and site permissions</li>
130
- </ul>
131
- <p>
132
- Note: Blocking essential cookies (like the authentication token) will prevent you from logging
133
- into your WAB account.
134
- </p>
135
-
136
- <h2 id="local-storage">5. Local Storage</h2>
137
- <p>
138
- WAB uses <strong>localStorage</strong> (not traditional cookies) for authentication tokens.
139
- While localStorage is technically not a "cookie," it serves a similar purpose and is covered
140
- by the ePrivacy Directive's rules on storing information on user devices. We treat it with
141
- the same transparency requirements.
142
- </p>
143
-
144
- <h2 id="bridge-script">6. The WAB Bridge Script</h2>
145
- <p>
146
- The WAB bridge script (<code style="font-family: var(--font-mono); background: var(--bg-surface); padding: 2px 6px; border-radius: 4px;">ai-agent-bridge.js</code>)
147
- that Site Owners embed on their websites:
148
- </p>
149
- <ul>
150
- <li><strong>Does not set any cookies</strong> on website visitors' browsers</li>
151
- <li><strong>Does not use localStorage</strong> on website visitors' browsers</li>
152
- <li><strong>Does not track human visitors</strong> — it only creates an interface for AI agents</li>
153
- <li>Uses temporary in-memory session tokens (not persisted to disk)</li>
154
- </ul>
155
-
156
- <h2 id="changes">7. Changes to This Policy</h2>
157
- <p>
158
- We will update this Cookie Policy if we change our cookie practices. Changes will be posted on
159
- this page with an updated date.
160
- </p>
161
-
162
- <h2 id="contact">8. Contact</h2>
163
- <p>
164
- For questions about our cookie practices:<br>
165
- Email: <a href="mailto:privacy@webagentbridge.com" style="color: var(--accent-blue);">privacy@webagentbridge.com</a>
166
- </p>
167
- </div>
168
- </div>
169
-
170
- <footer class="footer">
171
- <div class="container">
172
- <div class="footer-grid">
173
- <div class="footer-brand">
174
- <a href="/" class="navbar-brand"><div class="brand-icon">⚡</div><span>Web Agent Bridge</span></a>
175
- <p>Open-source middleware for AI agent and website interaction.</p>
176
- </div>
177
- <div class="footer-col">
178
- <h4>Product</h4>
179
- <ul>
180
- <li><a href="/#features">Features</a></li>
181
- <li><a href="/#pricing">Pricing</a></li>
182
- <li><a href="/docs">Documentation</a></li>
183
- </ul>
184
- </div>
185
- <div class="footer-col">
186
- <h4>Developers</h4>
187
- <ul>
188
- <li><a href="/docs#quick-start">Quick Start</a></li>
189
- <li><a href="/docs#api-reference">API Reference</a></li>
190
- <li><a href="https://github.com/abokenan444/web-agent-bridge" target="_blank" rel="noopener">GitHub</a></li>
191
- </ul>
192
- </div>
193
- <div class="footer-col">
194
- <h4>Legal</h4>
195
- <ul>
196
- <li><a href="/privacy">Privacy Policy</a></li>
197
- <li><a href="/terms">Terms of Service</a></li>
198
- <li><a href="/cookies">Cookie Policy</a></li>
199
- </ul>
200
- </div>
201
- </div>
202
- <div class="footer-bottom">
203
- <span>&copy; 2026 Web Agent Bridge. MIT License. Operated from the Netherlands.</span>
204
- </div>
205
- </div>
206
- </footer>
207
- </body>
208
- </html>
1
+ <!DOCTYPE html>
2
+ <html lang="en" dir="ltr">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Cookie Policy — Web Agent Bridge</title>
7
+ <meta name="description" content="Cookie Policy for Web Agent Bridge. ePrivacy and GDPR compliant.">
8
+ <link rel="preconnect" href="https://fonts.googleapis.com">
9
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
10
+ <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap" rel="stylesheet">
11
+ <link rel="stylesheet" href="/css/styles.css">
12
+ </head>
13
+ <body>
14
+
15
+ <nav class="navbar" id="navbar">
16
+ <div class="container">
17
+ <a href="/" class="navbar-brand">
18
+ <div class="brand-icon">⚡</div>
19
+ <span>WAB</span>
20
+ </a>
21
+ <ul class="navbar-links">
22
+ <li><a href="/#features">Features</a></li>
23
+ <li><a href="/#pricing">Pricing</a></li>
24
+ <li><a href="/docs">Docs</a></li>
25
+ </ul>
26
+ <div class="navbar-actions">
27
+ <a href="/login" class="btn btn-ghost">Sign In</a>
28
+ <a href="/register" class="btn btn-primary btn-sm">Get Started</a>
29
+ </div>
30
+ </div>
31
+ </nav>
32
+
33
+ <div class="container" style="padding-top: 120px; padding-bottom: 80px; max-width: 800px;">
34
+ <div class="section-header" style="text-align: left;">
35
+ <span class="label">Legal</span>
36
+ <h1 style="font-size: 2.2rem;">Cookie Policy</h1>
37
+ <p style="max-width: 100%;">Last updated: March 22, 2026</p>
38
+ </div>
39
+
40
+ <div class="docs-content">
41
+
42
+ <h2 id="what-are-cookies">1. What Are Cookies</h2>
43
+ <p>
44
+ Cookies are small text files placed on your device when you visit a website. They are widely
45
+ used to make websites work, provide analytics, and remember your preferences.
46
+ </p>
47
+ <p>
48
+ This Cookie Policy complies with the <strong>EU ePrivacy Directive (2002/58/EC)</strong>,
49
+ the <strong>GDPR (EU 2016/679)</strong>, and the
50
+ <strong>Dutch Telecommunications Act (Telecommunicatiewet, Art. 11.7a)</strong>.
51
+ </p>
52
+
53
+ <h2 id="cookies-we-use">2. Cookies We Use</h2>
54
+ <p>WAB uses a <strong>minimal cookie approach</strong>. We only use what is strictly necessary.</p>
55
+
56
+ <h3>2.1 Strictly Necessary Cookies</h3>
57
+ <p>These cookies are essential for the Service to function. No consent is required under the ePrivacy Directive.</p>
58
+ <table style="width: 100%; border-collapse: collapse; margin: 16px 0;">
59
+ <thead>
60
+ <tr style="border-bottom: 2px solid var(--border-color);">
61
+ <th style="text-align: left; padding: 12px; color: var(--text-primary);">Name</th>
62
+ <th style="text-align: left; padding: 12px; color: var(--text-primary);">Purpose</th>
63
+ <th style="text-align: left; padding: 12px; color: var(--text-primary);">Duration</th>
64
+ <th style="text-align: left; padding: 12px; color: var(--text-primary);">Type</th>
65
+ </tr>
66
+ </thead>
67
+ <tbody>
68
+ <tr style="border-bottom: 1px solid var(--border-color);">
69
+ <td style="padding: 12px; color: var(--text-secondary);"><code style="font-family: var(--font-mono); background: var(--bg-surface); padding: 2px 6px; border-radius: 4px;">token</code></td>
70
+ <td style="padding: 12px; color: var(--text-secondary);">Authentication session (JWT)</td>
71
+ <td style="padding: 12px; color: var(--text-secondary);">Session / until logout</td>
72
+ <td style="padding: 12px; color: var(--text-secondary);">localStorage</td>
73
+ </tr>
74
+ <tr style="border-bottom: 1px solid var(--border-color);">
75
+ <td style="padding: 12px; color: var(--text-secondary);"><code style="font-family: var(--font-mono); background: var(--bg-surface); padding: 2px 6px; border-radius: 4px;">adminToken</code></td>
76
+ <td style="padding: 12px; color: var(--text-secondary);">Admin authentication session</td>
77
+ <td style="padding: 12px; color: var(--text-secondary);">Session / until logout</td>
78
+ <td style="padding: 12px; color: var(--text-secondary);">localStorage</td>
79
+ </tr>
80
+ <tr>
81
+ <td style="padding: 12px; color: var(--text-secondary);"><code style="font-family: var(--font-mono); background: var(--bg-surface); padding: 2px 6px; border-radius: 4px;">wab_cookie_consent</code></td>
82
+ <td style="padding: 12px; color: var(--text-secondary);">Remembers your cookie consent choice</td>
83
+ <td style="padding: 12px; color: var(--text-secondary);">365 days</td>
84
+ <td style="padding: 12px; color: var(--text-secondary);">localStorage</td>
85
+ </tr>
86
+ </tbody>
87
+ </table>
88
+
89
+ <h3>2.2 Analytics Cookies</h3>
90
+ <p>
91
+ <strong>We do not use any analytics cookies.</strong> We do not use Google Analytics, Facebook Pixel,
92
+ Hotjar, or any third-party tracking service. Our analytics system tracks AI agent behavior only
93
+ (not human visitors) and does not use cookies.
94
+ </p>
95
+
96
+ <h3>2.3 Marketing Cookies</h3>
97
+ <p><strong>We do not use marketing or advertising cookies.</strong></p>
98
+
99
+ <h3>2.4 Third-Party Cookies</h3>
100
+ <p>
101
+ We load Google Fonts for typography. Google may set cookies when fonts are loaded.
102
+ See <a href="https://policies.google.com/privacy" style="color: var(--accent-blue);" target="_blank" rel="noopener">Google's Privacy Policy</a>.
103
+ </p>
104
+ <p>
105
+ When you interact with payment flows, <strong>Stripe</strong> may set cookies for fraud prevention.
106
+ See <a href="https://stripe.com/cookie-settings" style="color: var(--accent-blue);" target="_blank" rel="noopener">Stripe's Cookie Policy</a>.
107
+ </p>
108
+
109
+ <h2 id="consent">3. Cookie Consent</h2>
110
+ <p>
111
+ Under the Dutch Telecommunicatiewet and the ePrivacy Directive:
112
+ </p>
113
+ <ul>
114
+ <li><strong>Strictly necessary cookies</strong> do not require consent (they are exempt under Art. 11.7a(3) Tw)</li>
115
+ <li><strong>Non-essential cookies</strong> require informed, prior consent — we obtain this via our cookie banner</li>
116
+ </ul>
117
+ <p>
118
+ Since WAB currently uses <strong>only strictly necessary storage</strong>, we inform you via the cookie
119
+ banner but no opt-in is required for our cookies. Third-party cookies from Google Fonts and Stripe
120
+ are noted for transparency.
121
+ </p>
122
+
123
+ <h2 id="manage">4. How to Manage Cookies</h2>
124
+ <p>You can control cookies through your browser settings:</p>
125
+ <ul>
126
+ <li><strong>Chrome</strong>: Settings → Privacy and security → Cookies</li>
127
+ <li><strong>Firefox</strong>: Settings → Privacy & Security → Cookies</li>
128
+ <li><strong>Safari</strong>: Preferences → Privacy → Cookies</li>
129
+ <li><strong>Edge</strong>: Settings → Cookies and site permissions</li>
130
+ </ul>
131
+ <p>
132
+ Note: Blocking essential cookies (like the authentication token) will prevent you from logging
133
+ into your WAB account.
134
+ </p>
135
+
136
+ <h2 id="local-storage">5. Local Storage</h2>
137
+ <p>
138
+ WAB uses <strong>localStorage</strong> (not traditional cookies) for authentication tokens.
139
+ While localStorage is technically not a "cookie," it serves a similar purpose and is covered
140
+ by the ePrivacy Directive's rules on storing information on user devices. We treat it with
141
+ the same transparency requirements.
142
+ </p>
143
+
144
+ <h2 id="bridge-script">6. The WAB Bridge Script</h2>
145
+ <p>
146
+ The WAB bridge script (<code style="font-family: var(--font-mono); background: var(--bg-surface); padding: 2px 6px; border-radius: 4px;">ai-agent-bridge.js</code>)
147
+ that Site Owners embed on their websites:
148
+ </p>
149
+ <ul>
150
+ <li><strong>Does not set any cookies</strong> on website visitors' browsers</li>
151
+ <li><strong>Does not use localStorage</strong> on website visitors' browsers</li>
152
+ <li><strong>Does not track human visitors</strong> — it only creates an interface for AI agents</li>
153
+ <li>Uses temporary in-memory session tokens (not persisted to disk)</li>
154
+ </ul>
155
+
156
+ <h2 id="changes">7. Changes to This Policy</h2>
157
+ <p>
158
+ We will update this Cookie Policy if we change our cookie practices. Changes will be posted on
159
+ this page with an updated date.
160
+ </p>
161
+
162
+ <h2 id="contact">8. Contact</h2>
163
+ <p>
164
+ For questions about our cookie practices:<br>
165
+ Email: <a href="mailto:privacy@webagentbridge.com" style="color: var(--accent-blue);">privacy@webagentbridge.com</a>
166
+ </p>
167
+ </div>
168
+ </div>
169
+
170
+ <footer class="footer">
171
+ <div class="container">
172
+ <div class="footer-grid">
173
+ <div class="footer-brand">
174
+ <a href="/" class="navbar-brand"><div class="brand-icon">⚡</div><span>Web Agent Bridge</span></a>
175
+ <p>Open protocol + runtime for AI agent website interaction.</p>
176
+ </div>
177
+ <div class="footer-col">
178
+ <h4>Product</h4>
179
+ <ul>
180
+ <li><a href="/#features">Features</a></li>
181
+ <li><a href="/#pricing">Pricing</a></li>
182
+ <li><a href="/docs">Documentation</a></li>
183
+ </ul>
184
+ </div>
185
+ <div class="footer-col">
186
+ <h4>Developers</h4>
187
+ <ul>
188
+ <li><a href="/docs#quick-start">Quick Start</a></li>
189
+ <li><a href="/docs#api-reference">API Reference</a></li>
190
+ <li><a href="https://github.com/abokenan444/web-agent-bridge" target="_blank" rel="noopener">GitHub</a></li>
191
+ </ul>
192
+ </div>
193
+ <div class="footer-col">
194
+ <h4>Legal</h4>
195
+ <ul>
196
+ <li><a href="/privacy">Privacy Policy</a></li>
197
+ <li><a href="/terms">Terms of Service</a></li>
198
+ <li><a href="/cookies">Cookie Policy</a></li>
199
+ </ul>
200
+ </div>
201
+ </div>
202
+ <div class="footer-bottom">
203
+ <span>&copy; 2026 Web Agent Bridge. MIT License. Operated from the Netherlands.</span>
204
+ </div>
205
+ </div>
206
+ </footer>
207
+ </body>
208
+ </html>