-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
91 lines (91 loc) · 2.5 KB
/
Copy pathpackage.json
File metadata and controls
91 lines (91 loc) · 2.5 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
82
83
84
85
86
87
88
89
90
91
{
"name": "@hasna/gateway",
"version": "0.1.8",
"description": "Open-source AI model gateway core for one-key, multi-provider routing across Hasna apps and self-hosted deployments",
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"bin": {
"gateway": "dist/cli/index.js",
"gateway-mcp": "dist/mcp/index.js",
"gateway-serve": "dist/serve.js"
},
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
},
"./cli": {
"import": "./dist/cli/index.js"
},
"./mcp": {
"types": "./dist/mcp/index.d.ts",
"import": "./dist/mcp/index.js"
},
"./serve": {
"import": "./dist/serve.js"
}
},
"files": [
"dist",
"docs",
"examples",
"LICENSE",
"README.md",
".env.example",
"hasna.contract.json",
"gateway.config.example.json",
"gateway.config.production-cloud.example.json",
"gateway.config.china.example.json",
"gateway.config.no-china.example.json"
],
"scripts": {
"build": "rm -rf dist && bun build src/index.ts src/cli/index.ts src/mcp/index.ts src/serve.ts --outdir dist --target bun && tsc -p tsconfig.build.json && chmod +x dist/cli/index.js dist/mcp/index.js dist/serve.js",
"typecheck": "tsc --noEmit",
"check": "bun run typecheck && bun run build && bun test",
"test": "bun test",
"contracts:validate": "contracts conformance fixtures/contracts",
"dev": "bun run src/cli/index.ts serve --config gateway.config.example.json",
"verify:version-parity": "bun scripts/verify-version-parity.mjs",
"prepublishOnly": "bun run verify:version-parity && bun run typecheck && bun run build && bun run test"
},
"keywords": [
"ai",
"gateway",
"llm",
"openai-compatible",
"openrouter",
"routing",
"fallbacks",
"byok",
"hasna"
],
"publishConfig": {
"registry": "https://registry.npmjs.org",
"access": "public"
},
"repository": {
"type": "git",
"url": "git+https://github.com/hasna/gateway.git"
},
"homepage": "https://github.com/hasna/gateway",
"bugs": {
"url": "https://github.com/hasna/gateway/issues"
},
"engines": {
"bun": ">=1.0.0"
},
"author": "Andrei Hasna <andrei@hasna.com>",
"license": "Apache-2.0",
"dependencies": {
"@hasna/contracts": "^0.2.2",
"@modelcontextprotocol/sdk": "^1.12.1",
"pg": "^8.13.3",
"zod": "^3.25.76"
},
"devDependencies": {
"@types/bun": "^1.2.4",
"@types/pg": "^8.11.11",
"typescript": "^5.7.3"
}
}