mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2024-12-14 10:24:47 +01:00
66953ceba3
We don't need the server to tell us our user agent--we can get it ourselves through navigator.userAgent and parse it on the frontend. I've replaced device-detector-js with Bowser because device-detector-js is really slow, freezing for up to 500ms to parse a single user agent.
92 lines
2.5 KiB
JSON
92 lines
2.5 KiB
JSON
{
|
|
"dependencies": {
|
|
"@agnai/sentencepiece-js": "^1.1.1",
|
|
"@agnai/web-tokenizers": "^0.1.3",
|
|
"@dqbd/tiktoken": "^1.0.2",
|
|
"bing-translate-api": "^2.9.1",
|
|
"body-parser": "^1.20.2",
|
|
"command-exists": "^1.2.9",
|
|
"compression": "^1",
|
|
"cookie-parser": "^1.4.6",
|
|
"cors": "^2.8.5",
|
|
"csrf-csrf": "^2.2.3",
|
|
"express": "^4.18.2",
|
|
"form-data": "^4.0.0",
|
|
"google-translate-api-browser": "^3.0.1",
|
|
"gpt3-tokenizer": "^1.1.5",
|
|
"ip-matching": "^2.1.2",
|
|
"ipaddr.js": "^2.0.1",
|
|
"jimp": "^0.22.10",
|
|
"lodash": "^4.17.21",
|
|
"mime-types": "^2.1.35",
|
|
"multer": "^1.4.5-lts.1",
|
|
"node-fetch": "^2.6.11",
|
|
"open": "^8.4.2",
|
|
"png-chunk-text": "^1.0.0",
|
|
"png-chunks-encode": "^1.0.0",
|
|
"png-chunks-extract": "^1.0.0",
|
|
"response-time": "^2.3.2",
|
|
"sanitize-filename": "^1.6.3",
|
|
"sillytavern-transformers": "^2.7.3",
|
|
"simple-git": "^3.19.1",
|
|
"vectra": "^0.2.2",
|
|
"write-file-atomic": "^5.0.1",
|
|
"ws": "^8.13.0",
|
|
"yaml": "^2.3.4",
|
|
"yargs": "^17.7.1",
|
|
"yauzl": "^2.10.0"
|
|
},
|
|
"overrides": {
|
|
"parse-bmfont-xml": {
|
|
"xml2js": "^0.5.0"
|
|
},
|
|
"vectra": {
|
|
"openai": "^4.17.0"
|
|
}
|
|
},
|
|
"name": "sillytavern",
|
|
"type": "commonjs",
|
|
"license": "AGPL-3.0",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/SillyTavern/SillyTavern.git"
|
|
},
|
|
"version": "1.11.0",
|
|
"scripts": {
|
|
"start": "node server.js",
|
|
"start-multi": "node server.js --disableCsrf",
|
|
"pkg": "pkg --compress Gzip --no-bytecode --public .",
|
|
"postinstall": "node post-install.js",
|
|
"lint": "eslint \"src/**/*.js\" \"public/**/*.js\" ./*.js",
|
|
"lint-fix": "eslint \"src/**/*.js\" \"public/**/*.js\" ./*.js --fix"
|
|
},
|
|
"bin": {
|
|
"sillytavern": "./server.js"
|
|
},
|
|
"rules": {
|
|
"no-path-concat": "off",
|
|
"no-var": "off"
|
|
},
|
|
"main": "server.js",
|
|
"pkg": {
|
|
"targets": [
|
|
"node18-linux-x64",
|
|
"node18-macos-x64",
|
|
"node18-windows-x64"
|
|
],
|
|
"assets": [
|
|
"node_modules/**/*"
|
|
],
|
|
"outputPath": "dist",
|
|
"scripts": [
|
|
"server.js"
|
|
]
|
|
},
|
|
"devDependencies": {
|
|
"eslint": "^8.55.0",
|
|
"jquery": "^3.6.4",
|
|
"pkg": "^5.8.1",
|
|
"pkg-fetch": "^3.5.2"
|
|
}
|
|
}
|