-
-
Notifications
You must be signed in to change notification settings - Fork 100
/
package.json
231 lines (231 loc) · 7.2 KB
/
package.json
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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
{
"name": "node-llama-cpp",
"version": "0.1.0",
"description": "Run AI models locally on your machine with node.js bindings for llama.cpp. Enforce a JSON schema on the model output on the generation level",
"main": "./dist/index.js",
"type": "module",
"types": "./dist/index.d.ts",
"bin": {
"node-llama-cpp": "dist/cli/cli.js",
"nlc": "dist/cli/cli.js"
},
"files": [
"dist/",
"templates/packed/",
"llama/",
"bins/",
"package.json",
"README.md",
"LICENSE"
],
"exports": {
".": {
"import": "./dist/index.js",
"node": "./dist/index.js",
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"./commands": {
"import": "./dist/commands.js",
"node": "./dist/commands.js",
"types": "./dist/commands.d.ts",
"default": "./dist/commands.js"
},
"./commands.js": {
"import": "./dist/commands.js",
"node": "./dist/commands.js",
"types": "./dist/commands.d.ts",
"default": "./dist/commands.js"
}
},
"engines": {
"node": ">=18.0.0"
},
"scripts": {
"prepare": "[ \"$CI\" = true ] || [ -d '.husky/_' ] || husky",
"postinstall": "cd templates && npm install",
"postversion": "vite-node scripts/postVersion.ts",
"prebuild": "rimraf ./dist ./tsconfig.tsbuildinfo",
"build": "tsc --build tsconfig.json --force && npm run build:packTemplates",
"build:packTemplates": "vite-node scripts/packTemplates.ts",
"addPostinstallScript": "npm pkg set scripts.postinstall=\"node ./dist/cli/cli.js postinstall\"",
"prewatch": "rimraf ./dist ./tsconfig.tsbuildinfo",
"watch": "tsc --build tsconfig.json --watch --force",
"cmake-js-llama": "cd llama && cmake-js",
"test": "npm run test:typescript && npm run lint:eslint && npm run test:vitest",
"test:vitest": "vitest run ./test",
"test:standalone": "vitest run ./test/standalone",
"test:standalone:interactive": "vitest watch ./test/standalone",
"test:modelDependent": "vitest run ./test/modelDependent",
"test:modelDependent:interactive": "vitest watch ./test/modelDependent",
"test:typescript": "tsc --noEmit --project tsconfig.json",
"lint": "npm run lint:eslint",
"lint:eslint": "eslint --report-unused-disable-directives .",
"format": "npm run lint:eslint -- --fix",
"dev:setup:downloadAllTestModels": "vite-node test/utils/scripts/downloadAllTestModels.ts",
"dev:setup": "npm run build && node ./dist/cli/cli.js source download --noUsageExample && npm run docs:generateTypedoc && npm run dev:setup:downloadAllTestModels",
"dev:build": "npm run build && node ./dist/cli/cli.js source build --noUsageExample",
"clean": "rm -rf ./node_modules ./dist ./tsconfig.tsbuildinfo ./test/.models ./docs/api ./docs/api-overrides ./templates/packed",
"docs:generateTypedoc": "typedoc && rimraf ./docs/api/index.md ./docs/api/globals.md ./docs/api/functions/LlamaText.md",
"docs:dev": "npm run docs:generateTypedoc && vitepress dev",
"docs:build": "npm run docs:generateTypedoc && vitepress build",
"docs:preview": "npm run docs:generateTypedoc && vitepress preview"
},
"repository": {
"type": "git",
"url": "git+https://github.com/withcatai/node-llama-cpp.git"
},
"keywords": [
"llama",
"llama-cpp",
"llama.cpp",
"bindings",
"ai",
"cmake",
"cmake-js",
"prebuilt-binaries",
"llm",
"gguf",
"metal",
"cuda",
"vulkan",
"grammar",
"embedding",
"json-grammar",
"json-schema-grammar",
"functions",
"function-calling",
"embedding",
"temperature",
"minP",
"topK",
"topP",
"seed",
"json-schema",
"raspberry-pi",
"self-hosted",
"local",
"catai",
"mistral",
"typescript",
"lora",
"batching",
"gpu"
],
"author": {
"name": "Gilad S.",
"url": "https://github.com/giladgd"
},
"license": "MIT",
"preferUnplugged": true,
"bugs": {
"url": "https://github.com/withcatai/node-llama-cpp/issues"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/giladgd"
},
"homepage": "https://node-llama-cpp.withcat.ai",
"devDependencies": {
"@commitlint/cli": "^19.6.0",
"@commitlint/config-conventional": "^19.6.0",
"@eslint/compat": "^1.2.3",
"@fontsource/inter": "^5.1.0",
"@nolebase/vitepress-plugin-git-changelog": "^2.11.1",
"@nolebase/vitepress-plugin-og-image": "^2.11.1",
"@resvg/resvg-js": "^2.6.2",
"@semantic-release/exec": "^6.0.3",
"@semantic-release/github": "11.0.1",
"@semantic-release/npm": "12.0.1",
"@shikijs/vitepress-twoslash": "^1.24.0",
"@stylistic/eslint-plugin": "^2.11.0",
"@types/async-retry": "^1.4.9",
"@types/bytes": "^3.1.4",
"@types/cross-spawn": "^6.0.2",
"@types/fs-extra": "^11.0.4",
"@types/node": "^22.10.1",
"@types/proper-lockfile": "^4.1.4",
"@types/semver": "^7.5.8",
"@types/validate-npm-package-name": "^4.0.2",
"@types/which": "^3.0.4",
"@types/yargs": "^17.0.33",
"@vitest/coverage-v8": "^2.1.6",
"@vitest/ui": "^2.1.6",
"electron": "^33.2.1",
"eslint": "^9.16.0",
"eslint-import-resolver-typescript": "^3.6.3",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-jsdoc": "^50.6.0",
"eslint-plugin-n": "^17.14.0",
"feed": "^4.2.2",
"husky": "^9.1.7",
"rehype": "^13.0.1",
"rimraf": "^6.0.1",
"semantic-release": "^24.2.0",
"sharp": "^0.33.5",
"tslib": "^2.8.1",
"typedoc": "^0.27.2",
"typedoc-plugin-markdown": "^4.3.1",
"typedoc-plugin-mdn-links": "^4.0.3",
"typedoc-vitepress-theme": "^1.1.0",
"typescript": "^5.7.2",
"typescript-eslint": "^8.16.0",
"vite-node": "^2.1.6",
"vitepress": "^1.5.0",
"vitest": "^2.1.6",
"zx": "^8.2.4"
},
"dependencies": {
"@huggingface/jinja": "^0.3.2",
"async-retry": "^1.3.3",
"bytes": "^3.1.2",
"chalk": "^5.3.0",
"chmodrp": "^1.0.2",
"cmake-js": "^7.3.0",
"cross-env": "^7.0.3",
"cross-spawn": "^7.0.6",
"env-var": "^7.5.0",
"filenamify": "^6.0.0",
"fs-extra": "^11.2.0",
"ignore": "^5.3.2",
"ipull": "^3.9.2",
"is-unicode-supported": "^2.1.0",
"lifecycle-utils": "^1.7.0",
"log-symbols": "^7.0.0",
"nanoid": "^5.0.9",
"node-addon-api": "^8.3.0",
"octokit": "^4.0.2",
"ora": "^8.1.1",
"pretty-ms": "^9.2.0",
"proper-lockfile": "^4.1.2",
"semver": "^7.6.3",
"simple-git": "^3.27.0",
"slice-ansi": "^7.1.0",
"stdout-update": "^4.0.1",
"strip-ansi": "^7.1.0",
"validate-npm-package-name": "^6.0.0",
"which": "^5.0.0",
"yargs": "^17.7.2"
},
"peerDependencies": {
"typescript": ">=5.0.0"
},
"peerDependenciesMeta": {
"typescript": {
"optional": true
}
},
"optionalDependencies": {
"@node-llama-cpp/linux-arm64": "0.1.0",
"@node-llama-cpp/linux-armv7l": "0.1.0",
"@node-llama-cpp/linux-x64": "0.1.0",
"@node-llama-cpp/linux-x64-cuda": "0.1.0",
"@node-llama-cpp/linux-x64-vulkan": "0.1.0",
"@node-llama-cpp/mac-arm64-metal": "0.1.0",
"@node-llama-cpp/mac-x64": "0.1.0",
"@node-llama-cpp/win-arm64": "0.1.0",
"@node-llama-cpp/win-x64": "0.1.0",
"@node-llama-cpp/win-x64-cuda": "0.1.0",
"@node-llama-cpp/win-x64-vulkan": "0.1.0"
}
}