web-agent-bridge 1.2.0 → 2.1.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.
Files changed (111) hide show
  1. package/LICENSE +21 -21
  2. package/README.ar.md +572 -446
  3. package/README.md +968 -933
  4. package/bin/agent-runner.js +465 -0
  5. package/bin/cli.js +138 -80
  6. package/bin/wab.js +80 -80
  7. package/examples/bidi-agent.js +119 -119
  8. package/examples/mcp-agent.js +94 -94
  9. package/examples/next-app-router/README.md +44 -0
  10. package/examples/puppeteer-agent.js +108 -108
  11. package/examples/saas-dashboard/README.md +55 -0
  12. package/examples/shopify-hydrogen/README.md +74 -0
  13. package/examples/vision-agent.js +171 -171
  14. package/examples/wordpress-elementor/README.md +77 -0
  15. package/package.json +71 -78
  16. package/public/.well-known/ai-assets.json +59 -0
  17. package/public/admin/login.html +84 -84
  18. package/public/ai.html +196 -0
  19. package/public/cookies.html +208 -208
  20. package/public/css/premium.css +317 -0
  21. package/public/css/styles.css +1235 -1235
  22. package/public/dashboard.html +704 -704
  23. package/public/demo.html +259 -0
  24. package/public/docs.html +585 -585
  25. package/public/feed.xml +89 -0
  26. package/public/index.html +581 -332
  27. package/public/js/auth-nav.js +31 -31
  28. package/public/js/auth-redirect.js +12 -12
  29. package/public/js/cookie-consent.js +56 -56
  30. package/public/js/wab-demo-page.js +721 -0
  31. package/public/js/ws-client.js +74 -74
  32. package/public/llms-full.txt +309 -0
  33. package/public/llms.txt +85 -0
  34. package/public/login.html +83 -83
  35. package/public/openapi.json +580 -0
  36. package/public/premium-dashboard.html +2487 -0
  37. package/public/premium.html +791 -0
  38. package/public/privacy.html +295 -295
  39. package/public/register.html +103 -103
  40. package/public/robots.txt +87 -0
  41. package/public/script/wab-consent.d.ts +36 -0
  42. package/public/script/wab-consent.js +104 -0
  43. package/public/script/wab-schema.js +131 -0
  44. package/public/script/wab.d.ts +108 -0
  45. package/public/script/wab.min.js +405 -0
  46. package/public/sitemap.xml +93 -0
  47. package/public/sovereign.html +660 -0
  48. package/public/terms.html +254 -254
  49. package/public/video/tutorial.mp4 +0 -0
  50. package/script/ai-agent-bridge.js +1558 -1513
  51. package/sdk/README.md +55 -55
  52. package/sdk/index.d.ts +118 -0
  53. package/sdk/index.js +257 -203
  54. package/sdk/package.json +14 -14
  55. package/sdk/schema-discovery.js +83 -0
  56. package/server/config/secrets.js +94 -92
  57. package/server/index.js +2 -9
  58. package/server/middleware/adminAuth.js +30 -30
  59. package/server/middleware/auth.js +41 -41
  60. package/server/middleware/rateLimits.js +24 -24
  61. package/server/migrations/001_add_analytics_indexes.sql +7 -7
  62. package/server/migrations/002_premium_features.sql +418 -0
  63. package/server/models/adapters/index.js +33 -33
  64. package/server/models/adapters/mysql.js +183 -183
  65. package/server/models/adapters/postgresql.js +172 -172
  66. package/server/models/adapters/sqlite.js +7 -7
  67. package/server/models/db.js +561 -561
  68. package/server/routes/admin-premium.js +671 -0
  69. package/server/routes/admin.js +247 -247
  70. package/server/routes/api.js +131 -138
  71. package/server/routes/auth.js +51 -51
  72. package/server/routes/billing.js +45 -45
  73. package/server/routes/discovery.js +406 -329
  74. package/server/routes/license.js +240 -240
  75. package/server/routes/noscript.js +543 -543
  76. package/server/routes/premium-v2.js +686 -0
  77. package/server/routes/premium.js +724 -0
  78. package/server/routes/sovereign.js +307 -0
  79. package/server/routes/wab-api.js +476 -476
  80. package/server/services/agent-memory.js +625 -0
  81. package/server/services/email.js +204 -204
  82. package/server/services/fairness.js +420 -420
  83. package/server/services/negotiation.js +439 -0
  84. package/server/services/plugins.js +747 -0
  85. package/server/services/premium.js +1883 -0
  86. package/server/services/reputation.js +465 -0
  87. package/server/services/self-healing.js +843 -0
  88. package/server/services/stripe.js +192 -192
  89. package/server/services/swarm.js +788 -0
  90. package/server/services/verification.js +481 -0
  91. package/server/services/vision.js +871 -0
  92. package/server/utils/cache.js +125 -125
  93. package/server/utils/migrate.js +81 -81
  94. package/server/utils/secureFields.js +50 -50
  95. package/server/ws.js +101 -101
  96. package/templates/artisan-marketplace.yaml +104 -0
  97. package/templates/book-price-scout.yaml +98 -0
  98. package/templates/electronics-price-tracker.yaml +108 -0
  99. package/templates/flight-deal-hunter.yaml +113 -0
  100. package/templates/freelancer-direct.yaml +116 -0
  101. package/templates/grocery-price-compare.yaml +93 -0
  102. package/templates/hotel-direct-booking.yaml +113 -0
  103. package/templates/local-services.yaml +98 -0
  104. package/templates/olive-oil-tunisia.yaml +88 -0
  105. package/templates/organic-farm-fresh.yaml +101 -0
  106. package/templates/restaurant-direct.yaml +97 -0
  107. package/docs/DEPLOY.md +0 -118
  108. package/docs/SPEC.md +0 -1540
  109. package/wab-mcp-adapter/README.md +0 -136
  110. package/wab-mcp-adapter/index.js +0 -555
  111. package/wab-mcp-adapter/package.json +0 -17
@@ -1,171 +1,171 @@
1
- /**
2
- * Example: Vision-based AI Agent using WAB
3
- *
4
- * This agent demonstrates how a "vision" or "natural language" AI agent
5
- * (like OpenAI Operator, Claude Computer Use, etc.) can interact with
6
- * WAB using descriptive intent instead of explicit action names.
7
- *
8
- * The agent describes what it wants to do in natural language,
9
- * and the IntentResolver matches it to available WAB actions.
10
- *
11
- * HOW IT WORKS:
12
- * The IntentResolver is a LOCAL, keyword-based NLP mapper — it does NOT
13
- * call any external AI/ML API. It scores WAB actions against the intent
14
- * string using word overlap, category bonuses, and synonym matching.
15
- * This keeps the example dependency-free and easy to understand.
16
- *
17
- * To integrate a real LLM (e.g., OpenAI, Claude), replace the
18
- * IntentResolver.resolve() method with an API call that returns the
19
- * best-matching action name from the available actions list.
20
- *
21
- * Prerequisites:
22
- * npm install puppeteer
23
- *
24
- * Usage:
25
- * node examples/vision-agent.js <url>
26
- */
27
-
28
- const puppeteer = require('puppeteer');
29
-
30
- const TARGET_URL = process.argv[2] || 'http://localhost:3000';
31
-
32
- // ─── Intent Resolver: maps natural language to WAB actions ────────────
33
- // This is a lightweight LOCAL resolver (no external API calls).
34
- // It uses keyword matching, synonym expansion, and category heuristics.
35
- class IntentResolver {
36
- constructor(actions) {
37
- this.actions = actions;
38
- }
39
-
40
- /**
41
- * Find the best matching action for a natural language intent.
42
- * Uses keyword matching and description similarity.
43
- * @param {string} intent — Natural language description (e.g., "sign up for an account")
44
- * @returns {{ action: object, confidence: number } | null}
45
- */
46
- resolve(intent) {
47
- const intentLower = intent.toLowerCase();
48
- const intentWords = intentLower.split(/\s+/);
49
- let bestMatch = null;
50
- let bestScore = 0;
51
-
52
- for (const action of this.actions) {
53
- const descLower = (action.description + ' ' + action.name).toLowerCase();
54
- let score = 0;
55
-
56
- // Exact name match
57
- if (intentLower.includes(action.name.replace(/_/g, ' '))) {
58
- score += 5;
59
- }
60
-
61
- // Word overlap scoring
62
- for (const word of intentWords) {
63
- if (word.length < 3) continue;
64
- if (descLower.includes(word)) score += 1;
65
- }
66
-
67
- // Category bonus
68
- if (action.category === 'navigation' && /navigate|go to|open|visit/i.test(intent)) score += 2;
69
- if (action.trigger === 'fill_and_submit' && /fill|submit|sign up|register|login|form/i.test(intent)) score += 2;
70
- if (action.trigger === 'click' && /click|press|tap|select|button/i.test(intent)) score += 1;
71
-
72
- // Synonym matching
73
- const synonyms = {
74
- 'sign up': ['register', 'create account', 'signup'],
75
- 'log in': ['login', 'sign in', 'signin'],
76
- 'search': ['find', 'look for', 'query'],
77
- 'submit': ['send', 'post', 'confirm'],
78
- 'navigate': ['go to', 'open', 'visit']
79
- };
80
-
81
- for (const [key, syns] of Object.entries(synonyms)) {
82
- if (syns.some(s => intentLower.includes(s)) && descLower.includes(key)) score += 3;
83
- if (intentLower.includes(key) && syns.some(s => descLower.includes(s))) score += 3;
84
- }
85
-
86
- if (score > bestScore) {
87
- bestScore = score;
88
- bestMatch = action;
89
- }
90
- }
91
-
92
- if (!bestMatch || bestScore < 1) return null;
93
-
94
- const confidence = Math.min(1, bestScore / 10);
95
- return { action: bestMatch, confidence };
96
- }
97
- }
98
-
99
- // ─── Vision Agent ─────────────────────────────────────────────────────
100
- async function main() {
101
- console.log(`\n👁️ WAB Vision Agent`);
102
- console.log(` Target: ${TARGET_URL}\n`);
103
-
104
- const browser = await puppeteer.launch({ headless: true });
105
- const page = await browser.newPage();
106
-
107
- await page.goto(TARGET_URL, { waitUntil: 'networkidle2' });
108
- console.log(`✓ Page loaded: ${await page.title()}`);
109
-
110
- // Wait for bridge
111
- await page.waitForFunction(() => typeof window.AICommands !== 'undefined', { timeout: 10000 });
112
- console.log('✓ WAB bridge detected\n');
113
-
114
- // Get available actions
115
- const actions = await page.evaluate(() => window.AICommands.getActions());
116
- const resolver = new IntentResolver(actions);
117
-
118
- console.log(`📋 Available actions: ${actions.length}`);
119
- actions.forEach(a => console.log(` • ${a.name} — ${a.description}`));
120
-
121
- // ── Simulate vision agent intents ─────────────────────────────────
122
- const intents = [
123
- 'I want to create a new account',
124
- 'Take me to the documentation page',
125
- 'Click the login button',
126
- 'Show me the dashboard'
127
- ];
128
-
129
- console.log('\n🧠 Resolving natural language intents:\n');
130
-
131
- for (const intent of intents) {
132
- const match = resolver.resolve(intent);
133
-
134
- if (match) {
135
- console.log(` Intent: "${intent}"`);
136
- console.log(` → Action: ${match.action.name} (${match.action.trigger})`);
137
- console.log(` → Confidence: ${(match.confidence * 100).toFixed(0)}%`);
138
- console.log(` → Description: ${match.action.description}`);
139
-
140
- // Execute if confidence is high enough
141
- if (match.confidence >= 0.3) {
142
- const result = await page.evaluate(
143
- (name) => window.AICommands.execute(name),
144
- match.action.name
145
- );
146
- console.log(` → Executed: ${result.success ? '✓' : '✗ ' + result.error}`);
147
- } else {
148
- console.log(` → Skipped: confidence too low`);
149
- }
150
- } else {
151
- console.log(` Intent: "${intent}"`);
152
- console.log(` → No matching action found`);
153
- }
154
- console.log('');
155
- }
156
-
157
- // ── Demonstrate page info with security context ───────────────────
158
- const pageInfo = await page.evaluate(() => window.AICommands.getPageInfo());
159
- console.log('📊 Page Info:');
160
- console.log(` Security sandbox: ${pageInfo.security.sandboxActive ? '✓ Active' : '✗ Inactive'}`);
161
- console.log(` Self-healing: ${pageInfo.selfHealing.tracked} tracked, ${pageInfo.selfHealing.healed} healed`);
162
- console.log(` Stealth mode: ${pageInfo.stealthMode ? 'Enabled' : 'Disabled'}`);
163
-
164
- console.log('\n✓ Vision agent session complete.');
165
- await browser.close();
166
- }
167
-
168
- main().catch((err) => {
169
- console.error('Agent error:', err.message);
170
- process.exit(1);
171
- });
1
+ /**
2
+ * Example: Vision-based AI Agent using WAB
3
+ *
4
+ * This agent demonstrates how a "vision" or "natural language" AI agent
5
+ * (like OpenAI Operator, Claude Computer Use, etc.) can interact with
6
+ * WAB using descriptive intent instead of explicit action names.
7
+ *
8
+ * The agent describes what it wants to do in natural language,
9
+ * and the IntentResolver matches it to available WAB actions.
10
+ *
11
+ * HOW IT WORKS:
12
+ * The IntentResolver is a LOCAL, keyword-based NLP mapper — it does NOT
13
+ * call any external AI/ML API. It scores WAB actions against the intent
14
+ * string using word overlap, category bonuses, and synonym matching.
15
+ * This keeps the example dependency-free and easy to understand.
16
+ *
17
+ * To integrate a real LLM (e.g., OpenAI, Claude), replace the
18
+ * IntentResolver.resolve() method with an API call that returns the
19
+ * best-matching action name from the available actions list.
20
+ *
21
+ * Prerequisites:
22
+ * npm install puppeteer
23
+ *
24
+ * Usage:
25
+ * node examples/vision-agent.js <url>
26
+ */
27
+
28
+ const puppeteer = require('puppeteer');
29
+
30
+ const TARGET_URL = process.argv[2] || 'http://localhost:3000';
31
+
32
+ // ─── Intent Resolver: maps natural language to WAB actions ────────────
33
+ // This is a lightweight LOCAL resolver (no external API calls).
34
+ // It uses keyword matching, synonym expansion, and category heuristics.
35
+ class IntentResolver {
36
+ constructor(actions) {
37
+ this.actions = actions;
38
+ }
39
+
40
+ /**
41
+ * Find the best matching action for a natural language intent.
42
+ * Uses keyword matching and description similarity.
43
+ * @param {string} intent — Natural language description (e.g., "sign up for an account")
44
+ * @returns {{ action: object, confidence: number } | null}
45
+ */
46
+ resolve(intent) {
47
+ const intentLower = intent.toLowerCase();
48
+ const intentWords = intentLower.split(/\s+/);
49
+ let bestMatch = null;
50
+ let bestScore = 0;
51
+
52
+ for (const action of this.actions) {
53
+ const descLower = (action.description + ' ' + action.name).toLowerCase();
54
+ let score = 0;
55
+
56
+ // Exact name match
57
+ if (intentLower.includes(action.name.replace(/_/g, ' '))) {
58
+ score += 5;
59
+ }
60
+
61
+ // Word overlap scoring
62
+ for (const word of intentWords) {
63
+ if (word.length < 3) continue;
64
+ if (descLower.includes(word)) score += 1;
65
+ }
66
+
67
+ // Category bonus
68
+ if (action.category === 'navigation' && /navigate|go to|open|visit/i.test(intent)) score += 2;
69
+ if (action.trigger === 'fill_and_submit' && /fill|submit|sign up|register|login|form/i.test(intent)) score += 2;
70
+ if (action.trigger === 'click' && /click|press|tap|select|button/i.test(intent)) score += 1;
71
+
72
+ // Synonym matching
73
+ const synonyms = {
74
+ 'sign up': ['register', 'create account', 'signup'],
75
+ 'log in': ['login', 'sign in', 'signin'],
76
+ 'search': ['find', 'look for', 'query'],
77
+ 'submit': ['send', 'post', 'confirm'],
78
+ 'navigate': ['go to', 'open', 'visit']
79
+ };
80
+
81
+ for (const [key, syns] of Object.entries(synonyms)) {
82
+ if (syns.some(s => intentLower.includes(s)) && descLower.includes(key)) score += 3;
83
+ if (intentLower.includes(key) && syns.some(s => descLower.includes(s))) score += 3;
84
+ }
85
+
86
+ if (score > bestScore) {
87
+ bestScore = score;
88
+ bestMatch = action;
89
+ }
90
+ }
91
+
92
+ if (!bestMatch || bestScore < 1) return null;
93
+
94
+ const confidence = Math.min(1, bestScore / 10);
95
+ return { action: bestMatch, confidence };
96
+ }
97
+ }
98
+
99
+ // ─── Vision Agent ─────────────────────────────────────────────────────
100
+ async function main() {
101
+ console.log(`\n👁️ WAB Vision Agent`);
102
+ console.log(` Target: ${TARGET_URL}\n`);
103
+
104
+ const browser = await puppeteer.launch({ headless: true });
105
+ const page = await browser.newPage();
106
+
107
+ await page.goto(TARGET_URL, { waitUntil: 'networkidle2' });
108
+ console.log(`✓ Page loaded: ${await page.title()}`);
109
+
110
+ // Wait for bridge
111
+ await page.waitForFunction(() => typeof window.AICommands !== 'undefined', { timeout: 10000 });
112
+ console.log('✓ WAB bridge detected\n');
113
+
114
+ // Get available actions
115
+ const actions = await page.evaluate(() => window.AICommands.getActions());
116
+ const resolver = new IntentResolver(actions);
117
+
118
+ console.log(`📋 Available actions: ${actions.length}`);
119
+ actions.forEach(a => console.log(` • ${a.name} — ${a.description}`));
120
+
121
+ // ── Simulate vision agent intents ─────────────────────────────────
122
+ const intents = [
123
+ 'I want to create a new account',
124
+ 'Take me to the documentation page',
125
+ 'Click the login button',
126
+ 'Show me the dashboard'
127
+ ];
128
+
129
+ console.log('\n🧠 Resolving natural language intents:\n');
130
+
131
+ for (const intent of intents) {
132
+ const match = resolver.resolve(intent);
133
+
134
+ if (match) {
135
+ console.log(` Intent: "${intent}"`);
136
+ console.log(` → Action: ${match.action.name} (${match.action.trigger})`);
137
+ console.log(` → Confidence: ${(match.confidence * 100).toFixed(0)}%`);
138
+ console.log(` → Description: ${match.action.description}`);
139
+
140
+ // Execute if confidence is high enough
141
+ if (match.confidence >= 0.3) {
142
+ const result = await page.evaluate(
143
+ (name) => window.AICommands.execute(name),
144
+ match.action.name
145
+ );
146
+ console.log(` → Executed: ${result.success ? '✓' : '✗ ' + result.error}`);
147
+ } else {
148
+ console.log(` → Skipped: confidence too low`);
149
+ }
150
+ } else {
151
+ console.log(` Intent: "${intent}"`);
152
+ console.log(` → No matching action found`);
153
+ }
154
+ console.log('');
155
+ }
156
+
157
+ // ── Demonstrate page info with security context ───────────────────
158
+ const pageInfo = await page.evaluate(() => window.AICommands.getPageInfo());
159
+ console.log('📊 Page Info:');
160
+ console.log(` Security sandbox: ${pageInfo.security.sandboxActive ? '✓ Active' : '✗ Inactive'}`);
161
+ console.log(` Self-healing: ${pageInfo.selfHealing.tracked} tracked, ${pageInfo.selfHealing.healed} healed`);
162
+ console.log(` Stealth mode: ${pageInfo.stealthMode ? 'Enabled' : 'Disabled'}`);
163
+
164
+ console.log('\n✓ Vision agent session complete.');
165
+ await browser.close();
166
+ }
167
+
168
+ main().catch((err) => {
169
+ console.error('Agent error:', err.message);
170
+ process.exit(1);
171
+ });
@@ -0,0 +1,77 @@
1
+ # WordPress + Elementor + WAB
2
+
3
+ This snippet works with Elementor pages and exposes actions without changing your theme files heavily.
4
+
5
+ ## 1) Add WAB scripts
6
+
7
+ In WordPress (Elementor Custom Code or theme footer):
8
+
9
+ ```html
10
+ <script src="https://webagentbridge.com/script/wab.min.js"></script>
11
+ <script src="https://webagentbridge.com/script/wab-schema.js"></script>
12
+ <script src="/wp-content/uploads/wab-elementor.js"></script>
13
+ ```
14
+
15
+ ## 2) Add this JS file as `wab-elementor.js`
16
+
17
+ ```js
18
+ (function () {
19
+ if (!window.WAB) return;
20
+
21
+ var products = window.WABSchema ? window.WABSchema.scanJsonLd() : [];
22
+ var suggested = window.WABSchema ? window.WABSchema.suggestActions(products) : [];
23
+
24
+ var config = window.WABSchema
25
+ ? window.WABSchema.mergeWithManual(
26
+ {
27
+ getHeroTitle: {
28
+ description: 'Read Elementor hero heading',
29
+ run: function () {
30
+ var title = document.querySelector('.elementor-heading-title');
31
+ return { title: title ? title.textContent.trim() : null };
32
+ }
33
+ },
34
+ submitVisibleElementorForm: {
35
+ description: 'Fill and submit the first visible Elementor form',
36
+ run: function (params) {
37
+ var form = document.querySelector('.elementor-form');
38
+ if (!form) return { success: false, error: 'No Elementor form found' };
39
+
40
+ var fields = form.querySelectorAll('input, textarea, select');
41
+ fields.forEach(function (field) {
42
+ var key = field.name || field.id;
43
+ if (!key || params[key] == null) return;
44
+ field.value = String(params[key]);
45
+ field.dispatchEvent(new Event('input', { bubbles: true }));
46
+ field.dispatchEvent(new Event('change', { bubbles: true }));
47
+ });
48
+
49
+ var submit = form.querySelector('[type="submit"], button');
50
+ if (!submit) return { success: false, error: 'No submit button found' };
51
+ submit.click();
52
+ return { success: true };
53
+ }
54
+ }
55
+ },
56
+ suggested
57
+ )
58
+ : {
59
+ actions: {
60
+ getHeroTitle: {
61
+ description: 'Read Elementor hero heading',
62
+ run: function () {
63
+ var title = document.querySelector('.elementor-heading-title');
64
+ return { title: title ? title.textContent.trim() : null };
65
+ }
66
+ }
67
+ }
68
+ };
69
+
70
+ window.WAB.init({
71
+ name: document.title,
72
+ actions: config.actions
73
+ });
74
+ })();
75
+ ```
76
+
77
+ This gives agents discoverable actions for Elementor content + schema-derived product helpers.
package/package.json CHANGED
@@ -1,78 +1,71 @@
1
- {
2
- "name": "web-agent-bridge",
3
- "version": "1.2.0",
4
- "description": "Open protocol and runtime for AI agents to interact with websites — standardized discovery, commands, and fairness layer for the Agentic Web",
5
- "main": "server/index.js",
6
- "bin": {
7
- "web-agent-bridge": "./bin/cli.js",
8
- "wab": "./bin/cli.js"
9
- },
10
- "scripts": {
11
- "start": "node server/index.js",
12
- "dev": "node server/index.js",
13
- "test": "jest --forceExit --detectOpenHandles",
14
- "build:script": "node scripts/build.js",
15
- "prepublishOnly": "npm test"
16
- },
17
- "keywords": [
18
- "ai",
19
- "agent",
20
- "bridge",
21
- "protocol",
22
- "web-standard",
23
- "mcp",
24
- "automation",
25
- "web",
26
- "middleware",
27
- "ai-agent",
28
- "browser-automation",
29
- "webdriver-bidi",
30
- "fairness",
31
- "discovery",
32
- "agentic-web",
33
- "model-context-protocol"
34
- ],
35
- "repository": {
36
- "type": "git",
37
- "url": "git+https://github.com/abokenan444/web-agent-bridge.git"
38
- },
39
- "homepage": "https://github.com/abokenan444/web-agent-bridge#readme",
40
- "bugs": {
41
- "url": "https://github.com/abokenan444/web-agent-bridge/issues"
42
- },
43
- "files": [
44
- "bin/",
45
- "server/",
46
- "public/",
47
- "script/",
48
- "sdk/",
49
- "wab-mcp-adapter/",
50
- "docs/",
51
- "examples/",
52
- "README.md",
53
- "README.ar.md",
54
- "LICENSE"
55
- ],
56
- "engines": {
57
- "node": ">=18.0.0"
58
- },
59
- "license": "MIT",
60
- "dependencies": {
61
- "bcryptjs": "^2.4.3",
62
- "better-sqlite3": "^11.6.0",
63
- "cors": "^2.8.5",
64
- "dotenv": "^16.4.5",
65
- "express": "^4.21.0",
66
- "express-rate-limit": "^7.4.1",
67
- "helmet": "^8.0.0",
68
- "jsonwebtoken": "^9.0.2",
69
- "nodemailer": "^8.0.3",
70
- "stripe": "^20.4.1",
71
- "uuid": "^10.0.0",
72
- "ws": "^8.19.0"
73
- },
74
- "devDependencies": {
75
- "jest": "^30.3.0",
76
- "supertest": "^7.2.2"
77
- }
78
- }
1
+ {
2
+ "name": "web-agent-bridge",
3
+ "version": "2.1.0",
4
+ "description": "Open-source middleware that bridges AI agents and websites — providing a standardized command interface for intelligent automation",
5
+ "main": "server/index.js",
6
+ "bin": {
7
+ "web-agent-bridge": "./bin/cli.js",
8
+ "wab": "./bin/cli.js",
9
+ "wab-agent": "./bin/cli.js"
10
+ },
11
+ "scripts": {
12
+ "start": "node server/index.js",
13
+ "dev": "node server/index.js",
14
+ "test": "jest --forceExit --detectOpenHandles",
15
+ "build:script": "node scripts/build.js",
16
+ "prepublishOnly": "npm test"
17
+ },
18
+ "keywords": [
19
+ "ai",
20
+ "agent",
21
+ "bridge",
22
+ "automation",
23
+ "web",
24
+ "middleware",
25
+ "ai-agent",
26
+ "browser-automation",
27
+ "webdriver-bidi"
28
+ ],
29
+ "repository": {
30
+ "type": "git",
31
+ "url": "git+https://github.com/abokenan444/web-agent-bridge.git"
32
+ },
33
+ "homepage": "https://github.com/abokenan444/web-agent-bridge#readme",
34
+ "bugs": {
35
+ "url": "https://github.com/abokenan444/web-agent-bridge/issues"
36
+ },
37
+ "files": [
38
+ "bin/",
39
+ "server/",
40
+ "public/",
41
+ "script/",
42
+ "sdk/",
43
+ "templates/",
44
+ "examples/",
45
+ "README.md",
46
+ "README.ar.md",
47
+ "LICENSE"
48
+ ],
49
+ "engines": {
50
+ "node": ">=18.0.0"
51
+ },
52
+ "license": "MIT",
53
+ "dependencies": {
54
+ "bcryptjs": "^2.4.3",
55
+ "better-sqlite3": "^11.6.0",
56
+ "cors": "^2.8.5",
57
+ "dotenv": "^16.4.5",
58
+ "express": "^4.21.0",
59
+ "express-rate-limit": "^7.4.1",
60
+ "helmet": "^8.0.0",
61
+ "jsonwebtoken": "^9.0.2",
62
+ "nodemailer": "^8.0.3",
63
+ "stripe": "^20.4.1",
64
+ "uuid": "^10.0.0",
65
+ "ws": "^8.19.0"
66
+ },
67
+ "devDependencies": {
68
+ "jest": "^30.3.0",
69
+ "supertest": "^7.2.2"
70
+ }
71
+ }
@@ -0,0 +1,59 @@
1
+ {
2
+ "schema_version": "1.0",
3
+ "project": {
4
+ "name": "Web Agent Bridge",
5
+ "short_name": "WAB",
6
+ "description": "Open protocol and runtime for AI agent ↔ website interaction",
7
+ "url": "https://webagentbridge.com",
8
+ "repository": "https://github.com/abokenan444/web-agent-bridge",
9
+ "license": "MIT",
10
+ "version": "1.2.0",
11
+ "category": "developer-tools",
12
+ "tags": [
13
+ "ai-agent",
14
+ "web-protocol",
15
+ "automation",
16
+ "browser-bridge",
17
+ "mcp",
18
+ "fairness",
19
+ "discovery-protocol",
20
+ "open-standard",
21
+ "agentic-web"
22
+ ]
23
+ },
24
+ "ai_resources": {
25
+ "llms_txt": "https://webagentbridge.com/llms.txt",
26
+ "llms_full_txt": "https://webagentbridge.com/llms-full.txt",
27
+ "openapi_spec": "https://webagentbridge.com/openapi.json",
28
+ "discovery_document": "https://webagentbridge.com/agent-bridge.json",
29
+ "well_known_discovery": "https://webagentbridge.com/.well-known/wab.json",
30
+ "protocol_spec": "https://github.com/abokenan444/web-agent-bridge/blob/master/docs/SPEC.md",
31
+ "mcp_adapter": "https://www.npmjs.com/package/wab-mcp-adapter",
32
+ "ai_resources_page": "https://webagentbridge.com/ai"
33
+ },
34
+ "feeds": {
35
+ "atom": "https://webagentbridge.com/feed.xml",
36
+ "sitemap": "https://webagentbridge.com/sitemap.xml"
37
+ },
38
+ "integration": {
39
+ "npm_package": "web-agent-bridge",
40
+ "npm_url": "https://www.npmjs.com/package/web-agent-bridge",
41
+ "docker": "webagentbridge/wab",
42
+ "wordpress_plugin": "https://github.com/abokenan444/web-agent-bridge/tree/master/web-agent-bridge-wordpress",
43
+ "mcp_adapter_npm": "wab-mcp-adapter"
44
+ },
45
+ "endpoints": {
46
+ "discovery": "/api/wab/discover",
47
+ "actions": "/api/wab/actions",
48
+ "execute": "/api/wab/execute",
49
+ "ping": "/api/wab/ping",
50
+ "plans": "/api/plans",
51
+ "registry": "/api/discovery/registry",
52
+ "search": "/api/discovery/search"
53
+ },
54
+ "contact": {
55
+ "support": "support@webagentbridge.com",
56
+ "sales": "sales@webagentbridge.com",
57
+ "issues": "https://github.com/abokenan444/web-agent-bridge/issues"
58
+ }
59
+ }