{
"name": "@cocalc/hub",
"version": "1.120.6",
"description": "CoCalc: Backend webserver component",
"exports": {
"./*": "./dist/*.js",
"./run/*": "./run/*.js"
},
"dependencies": {
"@cocalc/assets": "workspace:*",
"@cocalc/backend": "workspace:*",
"@cocalc/cdn": "workspace:*",
"@cocalc/conat": "workspace:*",
"@cocalc/database": "workspace:*",
"@cocalc/hub": "workspace:*",
"@cocalc/next": "workspace:*",
"@cocalc/server": "workspace:*",
"@cocalc/static": "workspace:*",
"@cocalc/util": "workspace:*",
"@isaacs/ttlcache": "^1.4.1",
"@types/formidable": "^3.4.5",
"async": "^1.5.2",
"awaiting": "^3.0.0",
"blocked": "^1.1.0",
"commander": "^7.2.0",
"compression": "^1.7.4",
"cookie-parser": "^1.4.3",
"cookies": "^0.8.0",
"cors": "^2.8.5",
"debug": "^4.4.0",
"express": "^4.21.2",
"formidable": "^3.5.4",
"http-proxy-3": "^1.20.8",
"lodash": "^4.17.21",
"lru-cache": "^7.18.3",
"mime-types": "^2.1.35",
"ms": "2.1.2",
"parse-domain": "^5.0.0",
"random-key": "^0.3.2",
"react": "^19.1.0",
"uglify-js": "^3.14.1",
"underscore": "^1.12.1",
"uuid": "^8.3.2",
"validator": "^13.6.0",
"webpack-dev-middleware": "^7.4.2",
"webpack-hot-middleware": "^2.26.1"
},
"devDependenicesNotes": "For license and size reasons, we make @cocalc/crm a dev dependency so it is NOT installed unless explicitly installed as a separate step.",
"devDependencies": {
"@types/express": "^4.17.21",
"@types/node": "^18.16.14",
"coffeescript": "^2.5.1"
},
"scripts": {
"preinstall": "npx only-allow pnpm",
"clean": "rm -rf node_modules dist",
"build": "tsc && coffee -m -c -o dist/ .",
"hub-project-dev-nobuild": "unset DATA COCALC_ROOT && export DEBUG=${DEBUG:='cocalc:*,-cocalc:silly:*'} && export PGHOST=${PGHOST:=`realpath $INIT_CWD/../../data/postgres/socket`} && PGUSER='smc' NODE_ENV=${NODE_ENV:=development} NODE_OPTIONS='--max_old_space_size=8000 --trace-warnings --enable-source-maps --inspect' cocalc-hub-server --mode=single-user --all --hostname=0.0.0.0",
"hub-personal": "unset DATA COCALC_ROOT && export DEBUG=${DEBUG:='cocalc:*,-cocalc:silly:*'} && export PGHOST=${PGHOST:=`realpath $INIT_CWD/../../data/postgres/socket`} && PGUSER='smc' NODE_ENV=${NODE_ENV:=development} NODE_OPTIONS='--max_old_space_size=8000 --trace-warnings --enable-source-maps --inspect' cocalc-hub-server --mode=single-user --all --hostname=0.0.0.0 --personal",
"hub-project-dev": "pnpm build && NODE_OPTIONS='--inspect' pnpm hub-project-dev-nobuild",
"hub-project-prod-nobuild": "unset DATA COCALC_ROOT && export DEBUG=${DEBUG:='cocalc:*,-cocalc:silly:*'} && export PGHOST=${PGHOST:=`realpath $INIT_CWD/../../data/postgres/socket`} && PGUSER='smc' NODE_ENV=production NODE_OPTIONS='--max_old_space_size=8000 --enable-source-maps' cocalc-hub-server --mode=single-user --all --hostname=0.0.0.0",
"hub-project-prod-ssl": "unset DATA COCALC_ROOT && export CONAT_SERVER=https://localhost:$PORT && export DEBUG=${DEBUG:='cocalc:*,-cocalc:silly:*'} && export PGHOST=${PGHOST:=`realpath $INIT_CWD/../../data/postgres/socket`} && PGUSER='smc' NODE_ENV=production NODE_OPTIONS='--max_old_space_size=8000 --enable-source-maps' cocalc-hub-server --mode=single-user --all --hostname=0.0.0.0 --https-key=$INIT_CWD/../../data/secrets/cert/key.pem --https-cert=$INIT_CWD/../../data/secrets/cert/cert.pem",
"hub-docker-dev": "export DEBUG=${DEBUG:='cocalc:*,-cocalc:silly:*'} && COCALC_DOCKER=true NODE_ENV=development PROJECTS=/projects/[project_id] PORT=443 NODE_OPTIONS='--max_old_space_size=8000 --enable-source-maps --trace-warnings --inspect' cocalc-hub-server --mode=multi-user --all --hostname=0.0.0.0 --https-key=/projects/conf/cert/key.pem --https-cert=/projects/conf/cert/cert.pem",
"hub-docker-prod": "export DEBUG=${DEBUG:='cocalc:*,-cocalc:silly:*'} && COCALC_DOCKER=true NODE_ENV=production PROJECTS=/projects/[project_id] PORT=443 NODE_OPTIONS='--max_old_space_size=8000 --enable-source-maps' cocalc-hub-server --mode=multi-user --all --hostname=0.0.0.0 --https-key=/projects/conf/cert/key.pem --https-cert=/projects/conf/cert/cert.pem",
"hub-docker-prod-nossl": "export DEBUG=${DEBUG:='cocalc:*,-cocalc:silly:*'} && COCALC_DOCKER=true NODE_ENV=production PROJECTS=/projects/[project_id] PORT=80 NODE_OPTIONS='--max_old_space_size=8000 --enable-source-maps' cocalc-hub-server --mode=multi-user --all --hostname=0.0.0.0",
"tsc": "tsc --watch --pretty --preserveWatchOutput",
"depcheck": "pnpx depcheck | grep -Ev '\\.coffee|coffee$'",
"prepublishOnly": "test"
},
"repository": {
"type": "git",
"url": "https://github.com/sagemathinc/cocalc"
},
"keywords": [
"python",
"sage",
"sagemath",
"latex",
"terminal",
"web",
"ide",
"math",
"mathematics"
],
"author": "SageMath, Inc.",
"license": "SEE LICENSE.md",
"bugs": {
"url": "https://github.com/sagemathinc/cocalc/issues"
},
"homepage": "https://github.com/sagemathinc/cocalc/tree/master/src/packages/hub",
"bin": {
"cocalc-hub-server": "./run/hub.js",
"cocalc-hub-stats-updater": "./run/stats-updater.js",
"cocalc-hub-delete-projects": "./run/delete-projects.js",
"cocalc-hub-maintenance-expired": "./run/maintenance-expired.js",
"cocalc-hub-maintenance-syncstrings": "./run/maintenance-syncstrings.js",
"cocalc-hub-maintenance-blobs": "./run/maintenance-blobs.js",
"cocalc-hub-stripe-sync": "./run/stripe-sync.js"
}
}