@nordsym/apiclaw 1.2.0 → 1.2.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 (46) hide show
  1. package/.env.prod +1 -0
  2. package/README.md +5 -5
  3. package/STATUS.md +7 -7
  4. package/convex/http.ts +33 -1
  5. package/data/combined-02-25.json +5602 -0
  6. package/data/night-batch-02-25.json +2732 -0
  7. package/data/night-expansion-02-25.json +2872 -0
  8. package/dist/credentials.d.ts.map +1 -1
  9. package/dist/credentials.js +15 -0
  10. package/dist/credentials.js.map +1 -1
  11. package/dist/execute.d.ts +1 -1
  12. package/dist/execute.d.ts.map +1 -1
  13. package/dist/execute.js +77 -1
  14. package/dist/execute.js.map +1 -1
  15. package/dist/index.js +9 -7
  16. package/dist/index.js.map +1 -1
  17. package/dist/proxy.d.ts.map +1 -1
  18. package/dist/proxy.js +1 -1
  19. package/dist/proxy.js.map +1 -1
  20. package/dist/registry/apis.json +44476 -174
  21. package/landing/src/app/api/auth/magic-link/route.ts +8 -1
  22. package/landing/src/app/api/auth/verify/route.ts +7 -4
  23. package/landing/src/app/docs/page.tsx +83 -82
  24. package/landing/src/app/earn/page.tsx +8 -8
  25. package/landing/src/app/page.tsx +208 -15
  26. package/landing/src/app/providers/page.tsx +6 -5
  27. package/landing/src/app/providers/register/page.tsx +1 -1
  28. package/landing/src/lib/convex-client.ts +6 -2
  29. package/landing/src/lib/stats.json +1 -1
  30. package/package.json +3 -2
  31. package/scripts/merge-to-registry.py +77 -0
  32. package/scripts/night-batch-02-24.py +391 -0
  33. package/scripts/night-batch-02-25.py +479 -0
  34. package/scripts/night-batch-03-24-b2.py +387 -0
  35. package/scripts/night-batch-03-24-b3.py +284 -0
  36. package/scripts/night-batch-03-24.py +447 -0
  37. package/scripts/night-batch-06-24-b2.py +695 -0
  38. package/scripts/night-batch-06-24-b3.py +696 -0
  39. package/scripts/night-batch-06-24.py +825 -0
  40. package/scripts/night-expansion-02-24-02.py +708 -0
  41. package/scripts/night-expansion-02-25.py +668 -0
  42. package/src/credentials.ts +16 -0
  43. package/src/execute.ts +87 -1
  44. package/src/index.ts +9 -7
  45. package/src/proxy.ts +1 -1
  46. package/src/registry/apis.json +44476 -174
package/.env.prod ADDED
@@ -0,0 +1 @@
1
+ CONVEX_DEPLOYMENT=prod:brilliant-puffin-712
package/README.md CHANGED
@@ -19,7 +19,7 @@
19
19
  <p align="center">
20
20
  <img src="https://img.shields.io/badge/APIs-15,000-ef4444" alt="APIs" />
21
21
  <img src="https://img.shields.io/badge/Categories-446-171717" alt="Categories" />
22
- <img src="https://img.shields.io/badge/Instant_Connect-6_APIs-00d4ff" alt="Instant Connect" />
22
+ <img src="https://img.shields.io/badge/Direct_Call-6_APIs-00d4ff" alt="Direct Call" />
23
23
  <img src="https://img.shields.io/badge/MCP-Compatible-00d4ff" alt="MCP Compatible" />
24
24
  <img src="https://img.shields.io/badge/License-MIT-green" alt="License" />
25
25
  </p>
@@ -103,7 +103,7 @@ mcp.call("purchase_access", {
103
103
  // → Real API keys, ready to use
104
104
  ```
105
105
 
106
- ### ⚡ Instant Connect (NEW!)
106
+ ### ⚡ Direct Call (NEW!)
107
107
 
108
108
  **No API keys needed.** Execute API calls directly through APIClaw.
109
109
 
@@ -140,7 +140,7 @@ mcp.call("call_api", {
140
140
  })
141
141
  ```
142
142
 
143
- **Available Instant Connect APIs:**
143
+ **Available Direct Call APIs:**
144
144
 
145
145
  | Provider | Actions | Description |
146
146
  |----------|---------|-------------|
@@ -159,7 +159,7 @@ mcp.call("call_api", {
159
159
  |--------|-------|
160
160
  | **APIs Indexed** | 15,000 |
161
161
  | **Categories** | 446 |
162
- | **Instant Connect** | 6 APIs |
162
+ | **Direct Call** | 6 APIs |
163
163
  | **Response Time** | <200ms |
164
164
  | **Uptime** | 24/7 |
165
165
 
@@ -240,7 +240,7 @@ Most API marketplaces make agents navigate human UIs. We flip it:
240
240
 
241
241
  - **Agents query via MCP** → Get 15,000 APIs, ranked by fit, structured as JSON
242
242
  - **Providers manage via dashboard** → When they want to, not as a blocker
243
- - **Zero manual API key juggling** → Instant Connect handles auth
243
+ - **Zero manual API key juggling** → Direct Call handles auth
244
244
 
245
245
  We have docs, a landing page, dashboards—they're just not required for agents to work. Agents can skip straight to the API.
246
246
 
package/STATUS.md CHANGED
@@ -72,7 +72,7 @@ npx vercel --prod
72
72
  - `magicLinks` — Email-auth tokens
73
73
  - `payouts` — Provider-utbetalningar
74
74
 
75
- **⚠️ Env vars:** Inga satta på prod. Behövs för server-side Instant Connect.
75
+ **⚠️ Env vars:** Inga satta på prod. Behövs för server-side Direct Call.
76
76
 
77
77
  **Deploy:**
78
78
  ```bash
@@ -105,7 +105,7 @@ npx convex deploy
105
105
 
106
106
  ---
107
107
 
108
- ## ⚡ Instant Connect
108
+ ## ⚡ Direct Call
109
109
 
110
110
  **6 providers konfigurerade lokalt:**
111
111
 
@@ -131,8 +131,8 @@ npx convex deploy
131
131
  | `discover_apis` | Sök API:er efter capability | ✅ |
132
132
  | `get_api_details` | Hämta full API-info | ✅ |
133
133
  | `list_categories` | Lista alla kategorier | ✅ |
134
- | `list_connected` | Visa Instant Connect-providers | ✅ |
135
- | `call_api` | Kör API via Instant Connect | ✅ |
134
+ | `list_connected` | Visa Direct Call-providers | ✅ |
135
+ | `call_api` | Kör API via Direct Call | ✅ |
136
136
  | `purchase_access` | Köp API-access | ✅ |
137
137
  | `check_balance` | Kolla credits | ✅ |
138
138
  | `add_credits` | Lägg till test-credits | ✅ |
@@ -146,7 +146,7 @@ apiclaw/
146
146
  ├── src/ # MCP Server (TypeScript)
147
147
  │ ├── index.ts # Huvudfil, MCP tool definitions
148
148
  │ ├── discovery.ts # Söklogik
149
- │ ├── execute.ts # Instant Connect handlers
149
+ │ ├── execute.ts # Direct Call handlers
150
150
  │ ├── credentials.ts # Credential-hantering
151
151
  │ ├── credits.ts # Credit-system
152
152
  │ ├── stripe.ts # Stripe (förberett)
@@ -209,7 +209,7 @@ bash scripts/sync-and-deploy.sh
209
209
  |---------|-----------|---------|
210
210
  | Stripe payments live | Medium | Behöver webhook setup |
211
211
  | Provider dashboard med live data | Medium | Ingen data i Convex |
212
- | Cloud Instant Connect | Medium | Credentials ej i cloud |
212
+ | Cloud Direct Call | Medium | Credentials ej i cloud |
213
213
  | Rate limiting | Låg | — |
214
214
  | Usage metering | Låg | Schema finns |
215
215
 
@@ -218,7 +218,7 @@ bash scripts/sync-and-deploy.sh
218
218
  ## 📈 Nästa steg (prioriterat)
219
219
 
220
220
  1. ~~**Öka API-antal**~~ ✅ **DONE: 15,000 APIs reached!**
221
- 2. **Testa Instant Connect E2E** — Verifiera alla 6 providers
221
+ 2. **Testa Direct Call E2E** — Verifiera alla 6 providers
222
222
  3. **Stripe wiring** — Koppla betalflöde
223
223
  4. **Launch prep** — PH, X thread, etc.
224
224
 
package/convex/http.ts CHANGED
@@ -54,6 +54,38 @@ const PROVIDERS = {
54
54
  regions: ["Global"],
55
55
  tags: ["tts", "voice", "audio"],
56
56
  },
57
+ replicate: {
58
+ name: "Replicate",
59
+ description: "Run AI models (Whisper, SDXL, Llama, etc). Pay per prediction.",
60
+ category: "ai",
61
+ pricing: "Varies by model",
62
+ regions: ["Global"],
63
+ tags: ["ai", "ml", "whisper", "image", "audio", "transcription"],
64
+ },
65
+ firecrawl: {
66
+ name: "Firecrawl",
67
+ description: "Web scraping and crawling API. Extract clean data from any URL.",
68
+ category: "scraping",
69
+ pricing: "~$0.001/page",
70
+ regions: ["Global"],
71
+ tags: ["scraping", "web", "crawl", "extract"],
72
+ },
73
+ github: {
74
+ name: "GitHub",
75
+ description: "GitHub API. Search repos, manage code, access developer data.",
76
+ category: "code",
77
+ pricing: "Free tier available",
78
+ regions: ["Global"],
79
+ tags: ["github", "code", "repos", "developer"],
80
+ },
81
+ e2b: {
82
+ name: "E2B",
83
+ description: "Secure code sandbox for AI agents. Run Python, shell commands in isolated environments.",
84
+ category: "sandbox",
85
+ pricing: "$0.000028/s (2 vCPU)",
86
+ regions: ["Global"],
87
+ tags: ["sandbox", "code", "python", "execution", "ai", "agents"],
88
+ },
57
89
  } as const;
58
90
 
59
91
  // CORS headers
@@ -325,7 +357,7 @@ function generateCredentials(providerId: string): object {
325
357
  export default http;
326
358
 
327
359
  // ==============================================
328
- // INSTANT CONNECT PROXY ENDPOINTS
360
+ // DIRECT CALL PROXY ENDPOINTS
329
361
  // ==============================================
330
362
 
331
363
  // OpenRouter proxy