Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
130 lines (130 loc) · 3.35 KB
/
Copy pathpackage.json
File metadata and controls
130 lines (130 loc) · 3.35 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
{
"name": "@huggingface/responses.js",
"packageManager": "pnpm@10.10.0",
"version": "1.3.6",
"pnpm": {
"overrides": {
"body-parser": ">=2.4.0",
"qs": ">=6.16.1",
"diff": ">=8.0.3",
"hono": ">=4.13.11",
"express-rate-limit": ">=8.2.2",
"@hono/node-server": ">=2.1.3",
"minimatch": ">=10.2.3",
"@modelcontextprotocol/sdk>ajv": ">=8.18.0",
"fast-uri": ">=4.2.3",
"rollup": ">=4.59.0",
"serialize-javascript": ">=7.1.3",
"flatted": ">=3.4.2",
"picomatch": ">=4.0.4",
"yaml": ">=2.8.3",
"brace-expansion": ">=5.0.11",
"path-to-regexp": ">=8.4.0",
"express>path-to-regexp": "0.1.13",
"vite": ">=8.1.6",
"postcss": ">=8.5.18",
"ip-address": ">=10.7.4",
"proxy-addr": ">=2.0.8",
"source-map-js": ">=1.2.2",
"fast-copy": ">=4.1.0",
"ws": ">=8.20.1",
"esbuild": ">=0.28.1",
"js-yaml": ">=5.4.1",
"nanoid": ">=3.3.18"
},
"ignoredBuiltDependencies": [
"esbuild"
]
},
"type": "module",
"description": "Server for handling AI responses",
"repository": "https://github.com/huggingface/huggingface.js.git",
"publishConfig": {
"access": "public"
},
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.js",
"import": "./dist/index.mjs"
}
},
"engines": {
"node": ">=20"
},
"source": "index.ts",
"scripts": {
"build": "tsup src/*.ts --format cjs,esm --clean && tsc --emitDeclarationOnly --declaration",
"check": "tsc",
"dev": "tsx watch src/index.ts",
"dev:debug": "tsx watch --inspect src/index.ts",
"format": "prettier --write .",
"format:check": "prettier --check .",
"lint": "eslint --quiet --fix .",
"lint:check": "eslint .",
"prepublishOnly": "pnpm run build",
"prepare": "husky",
"start": "node dist/index.js",
"start:cluster": "node dist/cluster.js",
"example": "node examples/_run.js",
"demo:build": "cd demo && npm run build",
"demo:dev": "cd demo && npm run dev",
"demo:install": "cd demo && npm install",
"demo:lint": "cd demo && npm run lint",
"demo:format": "cd demo && npm run format",
"demo:start": "cd demo && npm run start",
"deploy:spaces": "./push_to_space.sh",
"test": "vitest run",
"test:watch": "vitest",
"test:integration": "mocha --timeout 20000 \"tests/**/*.test.js\"",
"test:coverage": "vitest run --coverage"
},
"files": [
"src",
"dist",
"tsconfig.json"
],
"keywords": [
"huggingface",
"ai",
"llm",
"responses-api",
"server"
],
"author": "Hugging Face",
"license": "MIT",
"dependencies": {
"@modelcontextprotocol/sdk": "^1.31.0",
"@opentelemetry/api": "^1.9.0",
"express": "^4.22.1",
"openai": "^5.8.2",
"pino": "^10.3.1",
"pino-http": "^11.0.0",
"undici": "^7.30.1",
"zod": "^4.6.6"
},
"devDependencies": {
"@commitlint/cli": "^21.0.1",
"@commitlint/config-conventional": "^21.0.1",
"@eslint/js": "^9.30.1",
"@types/express": "^4.17.23",
"@types/node": "^25.3.3",
"@typescript-eslint/eslint-plugin": "^8.54.0",
"@typescript-eslint/parser": "^8.54.0",
"@vitest/coverage-v8": "^4.1.11",
"eslint": "^9.39.2",
"eslint-config-prettier": "^10.1.5",
"eslint-plugin-prettier": "^5.5.1",
"husky": "^9.1.7",
"mocha": "^11.7.5",
"pino-pretty": "^13.1.3",
"prettier": "^3.6.2",
"tsup": "^8.5.0",
"tsx": "^4.20.3",
"typescript": "^5.8.3",
"vitest": "^4.1.11"
}
}