Files
node-llama-cpp/package.json
T

150 lines
4.5 KiB
JSON

{
"name": "node-llama-cpp",
"version": "0.1.0",
"description": "Run AI models locally on your machine with node.js bindings for llama.cpp. Force 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"
},
"files": [
"dist/",
"llama/",
"llamaBins/",
"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 install",
"prebuild": "rimraf ./dist ./tsconfig.tsbuildinfo",
"build": "tsc --build tsconfig.json --force",
"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:standalone",
"test:standalone": "vitest run ./test",
"test:standalone:interactive": "vitest watch ./test",
"test:typescript": "tsc --build tsconfig.json --dry --force",
"lint": "npm run lint:eslint",
"lint:eslint": "eslint --ext .js --ext .ts .",
"format": "npm run lint:eslint -- --fix",
"dev:setup": "npm run build && node ./dist/cli/cli.js download && npm run docs:generateTypedoc",
"dev:build": "npm run build && node ./dist/cli/cli.js build",
"clean": "rm -rf ./node_modules ./dist ./tsconfig.tsbuildinfo",
"docs:generateTypedoc": "typedoc && rimraf ./docs/api/index.md ./docs/api/exports.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",
"grammar",
"json-grammar",
"json-schema-grammar",
"temperature",
"topK",
"topP",
"json-schema",
"raspberry-pi",
"self-hosted",
"local",
"catai"
],
"author": "Gilad S.",
"license": "MIT",
"bugs": {
"url": "https://github.com/withcatai/node-llama-cpp/issues"
},
"homepage": "https://withcatai.github.io/node-llama-cpp/",
"devDependencies": {
"@commitlint/cli": "^17.7.1",
"@commitlint/config-conventional": "^17.7.0",
"@semantic-release/exec": "^6.0.3",
"@types/cli-progress": "^3.11.0",
"@types/cross-spawn": "^6.0.2",
"@types/fs-extra": "^11.0.1",
"@types/node": "^20.8.4",
"@types/uuid": "^9.0.2",
"@types/which": "^3.0.0",
"@types/yargs": "^17.0.24",
"@typescript-eslint/eslint-plugin": "^6.3.0",
"@typescript-eslint/parser": "^6.3.0",
"@vitest/coverage-v8": "^0.34.6",
"eslint": "^8.46.0",
"eslint-plugin-import": "^2.28.0",
"eslint-plugin-node": "github:giladgd/eslint-plugin-node#dev/giladgd/fixImportExtentionFixingInTypeScript",
"husky": "^8.0.3",
"rimraf": "^5.0.1",
"semantic-release": "^21.0.7",
"ts-node": "^10.9.1",
"tslib": "^2.6.1",
"typedoc": "^0.25.1",
"typedoc-plugin-markdown": "^4.0.0-next.22",
"typedoc-plugin-mdn-links": "^3.1.0",
"typedoc-vitepress-theme": "^1.0.0-next.3",
"typescript": "^5.1.6",
"vitepress": "^1.0.0-rc.20",
"vitest": "^0.34.6",
"zx": "^7.2.3"
},
"dependencies": {
"chalk": "^5.3.0",
"chmodrp": "^1.0.2",
"cli-progress": "^3.12.0",
"cmake-js": "^7.2.1",
"cross-env": "^7.0.3",
"cross-spawn": "^7.0.3",
"env-var": "^7.3.1",
"fs-extra": "^11.1.1",
"log-symbols": "^5.1.0",
"node-addon-api": "^7.0.0",
"octokit": "^3.1.0",
"ora": "^7.0.1",
"simple-git": "^3.19.1",
"uuid": "^9.0.0",
"which": "^4.0.0",
"yargs": "^17.7.2"
}
}