2025-04-22 17:13:17 +03:00
{
"name" : "@triliumnext/server" ,
2025-10-05 11:52:06 +03:00
"version" : "0.99.1" ,
2025-05-03 03:14:23 +03:00
"description" : "The server-side component of TriliumNext, which exposes the client via the web, allows for sync and provides a REST API for both internal and external use." ,
2025-04-22 17:13:17 +03:00
"private" : true ,
2025-09-02 17:38:24 +03:00
"main" : "./src/main.ts" ,
"scripts" : {
"dev" : "cross-env NODE_ENV=development TRILIUM_ENV=dev TRILIUM_DATA_DIR=data TRILIUM_RESOURCE_DIR=src tsx watch --ignore '../client/node_modules/.vite-temp' ./src/main.ts" ,
2025-09-02 19:49:36 +03:00
"start-no-dir" : "cross-env NODE_ENV=development TRILIUM_ENV=dev TRILIUM_RESOURCE_DIR=src tsx watch --ignore '../client/node_modules/.vite-temp' ./src/main.ts" ,
2025-09-02 19:44:28 +03:00
"edit-integration-db" : "cross-env NODE_ENV=development TRILIUM_PORT=8086 TRILIUM_ENV=dev TRILIUM_DATA_DIR=spec/db TRILIUM_INTEGRATION_TEST=edit TRILIUM_RESOURCE_DIR=src tsx watch --ignore '../client/node_modules/.vite-temp' ./src/main.ts" ,
2025-09-02 17:38:24 +03:00
"build" : "tsx scripts/build.ts" ,
"package" : "pnpm build && bash scripts/build-server.sh" ,
"test" : "vitest" ,
"test-build" : "vitest --config vitest.build.config.mts" ,
2025-09-02 21:06:41 +03:00
"start-prod" : "cross-env TRILIUM_DATA_DIR=data pnpm start-prod-no-dir" ,
"start-prod-no-dir" : "pnpm build && cross-env TRILIUM_ENV=production TRILIUM_PORT=8082 node dist/main.cjs" ,
2025-09-02 19:44:28 +03:00
"circular-deps" : "dpdm -T src/**/*.ts --tree=false --warning=false --skip-dynamic-imports=circular" ,
"docker-build-debian" : "pnpm build && docker build . -t triliumnext-debian -f Dockerfile" ,
"docker-build-alpine" : "pnpm build && docker build . -t triliumnext-alpine -f Dockerfile.alpine" ,
"docker-build-rootless-debian" : "pnpm build && docker build . -t triliumnext-rootless-debian -f Dockerfile.rootless" ,
"docker-build-rootless-alpine" : "pnpm build && docker build . -t triliumnext-rootless-alpine -f Dockerfile.alpine.rootless" ,
"docker-start-debian" : "pnpm docker-build-debian && docker run -p 8081:8080 triliumnext-debian" ,
"docker-start-alpine" : "pnpm docker-build-alpine && docker run -p 8081:8080 triliumnext-alpine" ,
"docker-start-rootless-debian" : "pnpm docker-build-rootless-debian && docker run -p 8081:8080 triliumnext-rootless-debian" ,
"docker-start-rootless-alpine" : "pnpm docker-build-rootless-alpine && docker run -p 8081:8080 triliumnext-rootless-alpine"
2025-09-02 17:38:24 +03:00
} ,
2025-05-02 21:29:19 +03:00
"dependencies" : {
2025-09-28 19:43:04 +03:00
"better-sqlite3" : "12.4.1" ,
"node-html-parser" : "7.0.1"
2025-04-25 12:15:02 +03:00
} ,
"devDependencies" : {
2025-09-30 00:37:22 +00:00
"@anthropic-ai/sdk" : "0.65.0" ,
2025-08-31 18:24:02 +03:00
"@braintree/sanitize-url" : "7.1.1" ,
2025-07-08 01:57:38 +00:00
"@electron/remote" : "2.1.3" ,
2025-08-31 18:24:02 +03:00
"@preact/preset-vite" : "2.10.2" ,
"@triliumnext/commons" : "workspace:*" ,
"@triliumnext/express-partial-content" : "workspace:*" ,
"@triliumnext/turndown-plugin-gfm" : "workspace:*" ,
2025-04-25 12:15:02 +03:00
"@types/archiver" : "6.0.3" ,
"@types/better-sqlite3" : "7.6.13" ,
"@types/cls-hooked" : "4.3.9" ,
2025-06-08 07:43:23 +00:00
"@types/compression" : "1.8.1" ,
2025-06-08 01:53:26 +00:00
"@types/cookie-parser" : "1.4.9" ,
2025-04-25 12:15:02 +03:00
"@types/debounce" : "1.2.4" ,
"@types/ejs" : "3.1.5" ,
"@types/escape-html" : "1.0.4" ,
2025-07-30 06:48:57 +00:00
"@types/express-http-proxy" : "1.6.7" ,
2025-06-08 01:55:20 +00:00
"@types/express-session" : "1.18.2" ,
2025-04-25 12:15:02 +03:00
"@types/fs-extra" : "11.0.4" ,
"@types/html" : "1.0.4" ,
"@types/ini" : "4.1.1" ,
"@types/js-yaml" : "4.0.9" ,
2025-06-08 01:56:48 +00:00
"@types/mime-types" : "3.0.1" ,
2025-07-02 02:56:29 +00:00
"@types/multer" : "2.0.0" ,
2025-04-25 12:15:02 +03:00
"@types/safe-compare" : "1.1.2" ,
2025-05-07 05:55:45 +00:00
"@types/sanitize-html" : "2.16.0" ,
2025-04-25 12:15:02 +03:00
"@types/sax" : "1.2.7" ,
"@types/serve-favicon" : "2.5.7" ,
2025-10-04 05:49:51 +00:00
"@types/serve-static" : "1.15.9" ,
2025-04-25 12:15:02 +03:00
"@types/session-file-store" : "1.2.5" ,
"@types/stream-throttle" : "0.1.4" ,
"@types/supertest" : "6.0.3" ,
"@types/swagger-ui-express" : "4.1.8" ,
"@types/tmp" : "0.2.6" ,
"@types/turndown" : "5.0.5" ,
"@types/ws" : "8.18.1" ,
"@types/xml2js" : "0.4.14" ,
2025-04-23 10:06:37 +03:00
"archiver" : "7.0.1" ,
"async-mutex" : "0.5.0" ,
2025-09-15 01:12:15 +00:00
"axios" : "1.12.2" ,
2025-04-24 21:45:13 +03:00
"bindings" : "1.5.0" ,
2025-08-31 18:24:02 +03:00
"bootstrap" : "5.3.8" ,
2025-04-23 10:06:37 +03:00
"chardet" : "2.1.0" ,
2025-07-23 02:28:26 +00:00
"cheerio" : "1.1.2" ,
2025-04-23 10:06:37 +03:00
"chokidar" : "4.0.3" ,
"cls-hooked" : "4.2.2" ,
2025-07-18 08:02:36 +00:00
"compression" : "1.8.1" ,
2025-04-23 10:06:37 +03:00
"cookie-parser" : "1.4.7" ,
2025-05-02 18:05:03 +00:00
"csrf-csrf" : "3.2.2" ,
2025-09-02 01:16:58 +00:00
"dayjs" : "1.11.18" ,
2025-04-23 10:06:37 +03:00
"debounce" : "2.2.0" ,
2025-09-15 05:39:00 +00:00
"debug" : "4.4.3" ,
2025-04-23 10:06:37 +03:00
"ejs" : "3.1.10" ,
2025-10-09 10:13:39 +00:00
"electron" : "38.2.2" ,
2025-04-23 10:06:37 +03:00
"electron-debug" : "4.1.0" ,
"electron-window-state" : "5.0.3" ,
"escape-html" : "1.0.3" ,
2025-06-07 11:15:22 +00:00
"express" : "5.1.0" ,
2025-09-09 21:26:51 +00:00
"express-http-proxy" : "2.1.2" ,
2025-10-01 20:52:25 +03:00
"express-openid-connect" : "2.19.2" ,
2025-09-06 18:53:07 +00:00
"express-rate-limit" : "8.1.0" ,
2025-07-18 08:35:17 +00:00
"express-session" : "1.18.2" ,
2025-04-24 21:45:13 +03:00
"file-uri-to-path" : "2.0.0" ,
2025-09-17 01:50:24 +00:00
"fs-extra" : "11.3.2" ,
2025-04-22 17:37:02 +03:00
"helmet" : "8.1.0" ,
2025-04-23 10:06:37 +03:00
"html" : "1.0.0" ,
"html2plaintext" : "2.1.4" ,
2025-04-23 18:38:47 +03:00
"http-proxy-agent" : "7.0.2" ,
"https-proxy-agent" : "7.0.6" ,
2025-10-02 04:54:01 +00:00
"i18next" : "25.5.3" ,
2025-04-22 17:37:02 +03:00
"i18next-fs-backend" : "2.6.0" ,
2025-05-20 17:44:04 +00:00
"image-type" : "6.0.0" ,
2025-04-23 10:06:37 +03:00
"ini" : "5.0.0" ,
"is-animated" : "2.0.2" ,
2025-07-09 02:08:18 +00:00
"is-svg" : "6.1.0" ,
2025-04-23 10:06:37 +03:00
"jimp" : "1.6.0" ,
"js-yaml" : "4.1.0" ,
2025-10-09 10:17:03 +00:00
"marked" : "16.4.0" ,
2025-04-23 10:06:37 +03:00
"mime-types" : "3.0.1" ,
2025-07-18 08:01:44 +00:00
"multer" : "2.0.2" ,
2025-04-23 10:06:37 +03:00
"normalize-strings" : "1.1.1" ,
2025-09-25 02:02:42 +00:00
"ollama" : "0.6.0" ,
2025-10-10 01:33:47 +00:00
"openai" : "6.3.0" ,
2025-04-23 10:06:37 +03:00
"rand-token" : "1.0.1" ,
2025-04-22 17:37:02 +03:00
"safe-compare" : "1.1.4" ,
"sanitize-filename" : "1.6.3" ,
2025-05-15 02:15:24 +00:00
"sanitize-html" : "2.17.0" ,
2025-04-23 18:38:47 +03:00
"sax" : "1.4.1" ,
2025-06-11 08:34:14 +00:00
"serve-favicon" : "2.5.1" ,
2025-04-23 10:06:37 +03:00
"stream-throttle" : "0.1.3" ,
2025-04-22 17:37:02 +03:00
"strip-bom" : "5.0.0" ,
"striptags" : "3.2.0" ,
2025-07-23 02:30:18 +00:00
"supertest" : "7.1.4" ,
2025-04-23 10:06:37 +03:00
"swagger-jsdoc" : "6.2.8" ,
2025-04-22 17:37:02 +03:00
"swagger-ui-express" : "5.0.1" ,
2025-10-01 20:52:25 +03:00
"time2fa" : "1.4.2" ,
2025-08-09 00:41:34 +00:00
"tmp" : "0.2.5" ,
2025-08-15 02:14:46 +00:00
"turndown" : "7.2.1" ,
2025-04-23 10:06:37 +03:00
"unescape" : "1.0.1" ,
2025-10-03 06:11:33 +00:00
"vite" : "7.1.9" ,
2025-06-29 00:35:22 +00:00
"ws" : "8.18.3" ,
2025-04-23 10:06:37 +03:00
"xml2js" : "0.6.2" ,
2025-05-21 13:30:46 +03:00
"yauzl" : "3.2.0"
2025-09-02 17:38:24 +03:00
}
2025-05-02 21:29:19 +03:00
}