Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
81 lines (81 loc) · 1.89 KB
/
Copy pathpackage.json
File metadata and controls
81 lines (81 loc) · 1.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
{
"name": "search2ai",
"version": "0.3.0",
"description": "Self-hosted search gateway for AI agents: one Perplexity-compatible API over Search1API, Serper, Tavily, Brave, Exa, SearXNG and more, with provider fallback. Use it as a library, an HTTP service, or an MCP server.",
"type": "module",
"license": "MIT",
"author": "fatwang2",
"repository": {
"type": "git",
"url": "git+https://github.com/fatwang2/search2ai.git"
},
"homepage": "https://github.com/fatwang2/search2ai",
"keywords": [
"search",
"gateway",
"ai",
"agent",
"mcp",
"perplexity",
"tavily",
"serper",
"brave",
"exa",
"searxng",
"search1api",
"hono",
"cloudflare-workers"
],
"engines": {
"node": ">=22.18"
},
"bin": {
"search2ai": "dist/cli.js"
},
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
},
"./core": {
"types": "./dist/core/index.d.ts",
"import": "./dist/core/index.js"
},
"./hono": {
"types": "./dist/hono.d.ts",
"import": "./dist/hono.js"
}
},
"files": [
"dist",
"README.md",
"README-EN.md",
"LICENSE"
],
"scripts": {
"dev": "node --watch src/cli.ts serve",
"start": "node dist/cli.js serve",
"build": "rm -rf dist && tsc -p tsconfig.build.json",
"typecheck": "tsc --noEmit",
"test": "vitest run",
"test:e2e": "node scripts/e2e.ts",
"deploy": "wrangler deploy",
"prepublishOnly": "npm run build"
},
"dependencies": {
"@hono/node-server": "^2.1.1",
"@hono/zod-validator": "^0.9.1",
"@modelcontextprotocol/sdk": "^1.30.0",
"hono": "^4.13.5",
"zod": "^4.5.4"
},
"devDependencies": {
"@types/node": "^22.18.0",
"typescript": "^5.9.0",
"vite": "^8.2.2",
"vitest": "^5.0.0",
"wrangler": "^4.128.0"
}
}