1
0
Fork 0
peertube/package.json

252 lines
8.7 KiB
JSON
Raw Normal View History

2015-06-09 11:41:40 -04:00
{
"name": "peertube",
2021-01-14 03:43:06 -05:00
"description": "PeerTube, an ActivityPub-federated video streaming platform using P2P directly in your web browser.",
2022-09-12 04:48:46 -04:00
"version": "4.3.0-rc.1",
2015-06-09 11:41:40 -04:00
"private": true,
2019-12-17 09:19:42 -05:00
"licence": "AGPL-3.0",
2015-06-09 11:41:40 -04:00
"engines": {
2021-05-10 03:41:21 -04:00
"node": ">=12.x",
"yarn": ">=1.x"
},
"bin": {
"peertube": "dist/server/tools/peertube.js"
},
"author": {
2018-10-03 10:43:57 -04:00
"name": "Chocobozzz",
2020-11-12 05:12:41 -05:00
"email": "chocobozzz@framasoft.org",
"url": "http://github.com/Chocobozzz"
},
"repository": {
"type": "git",
2018-08-16 04:57:57 -04:00
"url": "git+https://github.com/Chocobozzz/PeerTube.git"
2015-06-09 11:41:40 -04:00
},
"typings": "*.d.ts",
2015-06-09 11:41:40 -04:00
"scripts": {
2021-09-02 02:57:59 -04:00
"e2e:browserstack": "bash ./scripts/e2e/browserstack.sh",
2021-05-05 04:56:40 -04:00
"e2e:local": "bash ./scripts/e2e/local.sh",
"setup:cli": "bash ./scripts/setup/cli.sh",
"build": "bash ./scripts/build/index.sh",
"build:embed": "bash ./scripts/build/embed.sh",
"build:server": "bash ./scripts/build/server.sh",
"build:client": "bash ./scripts/build/client.sh",
"clean:client": "bash ./scripts/clean/client/index.sh",
"clean:server:test": "bash ./scripts/clean/server/test.sh",
"i18n:update": "bash ./scripts/i18n/update.sh",
2019-07-12 05:39:58 -04:00
"plugin:install": "node ./dist/scripts/plugin/install.js",
"plugin:uninstall": "node ./dist/scripts/plugin/uninstall.js",
2018-06-06 08:23:40 -04:00
"i18n:create-custom-files": "node ./dist/scripts/i18n/create-custom-files.js",
2018-01-26 03:50:43 -05:00
"reset-password": "node ./dist/scripts/reset-password.js",
2021-05-05 04:56:40 -04:00
"dev": "bash ./scripts/dev/index.sh",
"dev:server": "bash ./scripts/dev/server.sh",
"dev:embed": "bash ./scripts/dev/embed.sh",
"dev:client": "bash ./scripts/dev/client.sh",
"dev:cli": "bash ./scripts/dev/cli.sh",
2017-06-10 16:57:31 -04:00
"start": "node dist/server",
2018-11-14 09:27:47 -05:00
"start:server": "node dist/server --no-client",
2018-01-26 03:50:43 -05:00
"update-host": "node ./dist/scripts/update-host.js",
"create-transcoding-job": "node ./dist/scripts/create-transcoding-job.js",
2021-03-12 11:04:49 -05:00
"regenerate-thumbnails": "node ./dist/scripts/regenerate-thumbnails.js",
"create-import-video-file-job": "node ./dist/scripts/create-import-video-file-job.js",
"create-move-video-storage-job": "node ./dist/scripts/create-move-video-storage-job.js",
"print-transcode-command": "node ./dist/scripts/print-transcode-command.js",
2021-05-05 04:56:40 -04:00
"test": "bash ./scripts/test.sh",
"help": "bash ./scripts/help.sh",
"generate-cli-doc": "bash ./scripts/generate-cli-doc.sh",
2021-12-28 04:18:15 -05:00
"generate-types-package": "ts-node ./packages/types/generate-package.ts",
2018-01-26 03:50:43 -05:00
"parse-log": "node ./dist/scripts/parse-log.js",
2018-05-29 05:11:52 -04:00
"prune-storage": "node ./dist/scripts/prune-storage.js",
"postinstall": "test -n \"$NOCLIENT\" || (cd client && yarn install --pure-lockfile)",
2017-06-10 16:57:31 -04:00
"tsc": "tsc",
"commander": "commander",
2019-07-29 05:59:29 -04:00
"lint": "npm run ci -- lint",
"ng": "ng",
"ts-node": "ts-node",
2020-01-31 10:56:52 -05:00
"eslint": "eslint",
2021-12-24 07:16:55 -05:00
"resolve-tspaths": "resolve-tspaths",
"resolve-tspaths:all": "npm run resolve-tspaths:server && npm run resolve-tspaths:cli",
"resolve-tspaths:server": "npm run resolve-tspaths -- --project tsconfig.json --src . --out dist",
"resolve-tspaths:cli": "npm run resolve-tspaths -- --project ./server/tools/tsconfig.json --src ./server/tools --out ./dist/server/tools",
2018-06-07 10:50:33 -04:00
"concurrently": "concurrently",
2018-04-19 10:23:09 -04:00
"mocha": "mocha",
2021-05-05 04:56:40 -04:00
"ci": "bash ./scripts/ci.sh",
"release": "bash ./scripts/release.sh",
"release-embed-api": "bash ./scripts/release-embed-api.sh",
"nightly": "bash ./scripts/nightly.sh",
"openapi-clients": "bash ./scripts/openapi-clients.sh",
"client-report": "bash ./scripts/client-report.sh",
2021-04-28 10:41:07 -04:00
"swagger-cli": "swagger-cli"
},
2022-06-21 04:59:46 -04:00
"resolutions": {
"jpeg-js": "0.4.4"
},
2015-06-09 11:41:40 -04:00
"dependencies": {
Add support for saving video files to object storage (#4290) * Add support for saving video files to object storage * Add support for custom url generation on s3 stored files Uses two config keys to support url generation that doesn't directly go to (compatible s3). Can be used to generate urls to any cache server or CDN. * Upload files to s3 concurrently and delete originals afterwards * Only publish after move to object storage is complete * Use base url instead of url template * Fix mistyped config field * Add rudenmentary way to download before transcode * Implement Chocobozzz suggestions https://github.com/Chocobozzz/PeerTube/pull/4290#issuecomment-891670478 The remarks in question: Try to use objectStorage prefix instead of s3 prefix for your function/variables/config names Prefer to use a tree for the config: s3.streaming_playlists_bucket -> object_storage.streaming_playlists.bucket Use uppercase for config: S3.STREAMING_PLAYLISTS_BUCKETINFO.bucket -> OBJECT_STORAGE.STREAMING_PLAYLISTS.BUCKET (maybe BUCKET_NAME instead of BUCKET) I suggest to rename moveJobsRunning to pendingMovingJobs (or better, create a dedicated videoJobInfo table with a pendingMove & videoId columns so we could also use this table to track pending transcoding jobs) https://github.com/Chocobozzz/PeerTube/pull/4290/files#diff-3e26d41ca4bda1de8e1747af70ca2af642abcc1e9e0bfb94239ff2165acfbde5R19 uses a string instead of an integer I think we should store the origin object storage URL in fileUrl, without base_url injection. Instead, inject the base_url at "runtime" so admins can easily change this configuration without running a script to update DB URLs * Import correct function * Support multipart upload * Remove import of node 15.0 module stream/promises * Extend maximum upload job length Using the same value as for redundancy downloading seems logical * Use dynamic part size for really large uploads Also adds very small part size for local testing * Fix decreasePendingMove query * Resolve various PR comments * Move to object storage after optimize * Make upload size configurable and increase default * Prune webtorrent files that are stored in object storage * Move files after transcoding jobs * Fix federation * Add video path manager * Support move to external storage job in client * Fix live object storage tests Co-authored-by: Chocobozzz <me@florianbigard.com>
2021-08-17 02:26:20 -04:00
"@aws-sdk/client-s3": "^3.23.0",
"@aws-sdk/lib-storage": "^3.72.0",
"@aws-sdk/node-http-handler": "^3.82.0",
2022-07-13 03:58:34 -04:00
"@babel/parser": "^7.17.8",
2022-06-28 09:32:57 -04:00
"@node-oauth/oauth2-server": "^4.2.0",
2022-07-05 09:43:21 -04:00
"@opentelemetry/api": "^1.1.0",
2022-09-09 05:11:47 -04:00
"@opentelemetry/api-metrics": "^0.32.0",
2022-07-05 09:43:21 -04:00
"@opentelemetry/exporter-jaeger": "^1.3.1",
2022-09-09 05:11:47 -04:00
"@opentelemetry/exporter-prometheus": "~0.32.0",
"@opentelemetry/instrumentation": "^0.32.0",
"@opentelemetry/instrumentation-dns": "^0.30.0",
"@opentelemetry/instrumentation-express": "^0.31.0",
"@opentelemetry/instrumentation-fs": "^0.5.0",
"@opentelemetry/instrumentation-http": "^0.32.0",
"@opentelemetry/instrumentation-pg": "^0.31.0",
"@opentelemetry/instrumentation-redis-4": "^0.32.0",
2022-07-05 09:43:21 -04:00
"@opentelemetry/resources": "^1.3.1",
2022-09-09 05:11:47 -04:00
"@opentelemetry/sdk-metrics": "^0.32.0",
2022-07-05 09:43:21 -04:00
"@opentelemetry/sdk-trace-base": "^1.3.1",
"@opentelemetry/sdk-trace-node": "^1.3.1",
"@opentelemetry/semantic-conventions": "^1.3.1",
2022-02-08 05:10:48 -05:00
"@peertube/feed": "^5.0.1",
2022-07-12 04:54:21 -04:00
"@peertube/http-signature": "^1.7.0",
2022-09-09 05:11:47 -04:00
"@uploadx/core": "^6.0.0",
2017-07-12 05:56:02 -04:00
"async-lru": "^1.1.1",
2021-03-03 09:22:38 -05:00
"bcrypt": "5.0.1",
2021-08-18 03:14:51 -04:00
"bencode": "^2.0.2",
"bittorrent-tracker": "^9.0.0",
"bluebird": "^3.5.0",
2022-08-08 04:42:08 -04:00
"bullmq": "^1.87.0",
2018-09-11 10:27:07 -04:00
"bytes": "^3.0.0",
"chokidar": "^3.4.2",
2022-02-09 07:44:02 -05:00
"commander": "^9.0.0",
2018-12-04 03:34:29 -05:00
"config": "^3.0.0",
2018-06-28 07:59:48 -04:00
"cookie-parser": "^1.4.3",
"cors": "^2.8.1",
2021-08-06 09:51:45 -04:00
"create-torrent": "^5.0.0",
2018-07-31 08:02:47 -04:00
"deep-object-diff": "^1.1.0",
2022-07-13 03:58:34 -04:00
"email-templates": "^10.0.0",
"execa": "^5.1.1",
2022-06-21 04:59:46 -04:00
"express": "^4.18.1",
2022-01-14 08:15:23 -05:00
"express-rate-limit": "^6.1.0",
2020-01-31 10:56:52 -05:00
"express-validator": "^6.4.0",
2019-12-03 08:12:47 -05:00
"flat": "^5.0.0",
2016-05-03 16:41:46 -04:00
"fluent-ffmpeg": "^2.1.0",
2021-05-05 05:08:02 -04:00
"fs-extra": "^10.0.0",
2021-03-08 08:24:11 -05:00
"got": "^11.8.2",
2022-09-09 05:11:47 -04:00
"helmet": "^6.0.0",
2022-06-21 05:10:58 -04:00
"hpagent": "^1.0.0",
"http-problem-details": "^0.1.5",
2019-06-06 09:39:11 -04:00
"ip-anonymize": "^0.1.0",
2021-06-15 10:14:57 -04:00
"ipaddr.js": "2.0.1",
2020-06-17 04:55:40 -04:00
"is-cidr": "^4.0.0",
2021-04-12 10:35:04 -04:00
"iso-639-3": "2.2.0",
2020-08-25 07:54:59 -04:00
"jimp": "^0.16.0",
2021-02-03 03:33:05 -05:00
"js-yaml": "^4.0.0",
2022-09-09 05:11:47 -04:00
"jsonld": "~8.1.0",
2018-05-22 10:02:29 -04:00
"lodash": "^4.17.10",
2022-07-27 08:56:08 -04:00
"lru-cache": "^7.13.0",
2020-11-19 02:58:34 -05:00
"magnet-uri": "^6.1.0",
2022-06-21 05:10:58 -04:00
"markdown-it": "^13.0.1",
2020-11-10 04:09:11 -05:00
"markdown-it-emoji": "^2.0.0",
"maxmind": "^4.3.6",
2018-09-14 05:52:23 -04:00
"memoizee": "^0.4.14",
2015-06-09 11:41:40 -04:00
"morgan": "^1.5.3",
2022-06-21 04:59:46 -04:00
"multer": "^1.4.5-lts.1",
"node-media-server": "^2.1.4",
2019-04-02 10:42:13 -04:00
"nodemailer": "^6.0.0",
2022-07-28 04:56:05 -04:00
"opentelemetry-instrumentation-sequelize": "^0.29.0",
"p-queue": "^6",
2020-11-19 02:58:34 -05:00
"parse-torrent": "^9.1.0",
"password-generator": "^2.0.2",
2020-06-17 04:55:40 -04:00
"pg": "^8.2.1",
"piscina": "^3.2.0",
"prompt": "^1.0.0",
2021-10-26 03:57:38 -04:00
"proxy-addr": "^2.0.7",
2020-06-17 04:55:40 -04:00
"pug": "^3.0.0",
2021-12-24 08:49:03 -05:00
"redis": "^4.0.1",
2018-12-06 05:50:40 -05:00
"reflect-metadata": "^0.1.12",
"sanitize-html": "2.x",
2022-09-09 05:11:47 -04:00
"sequelize": "6.21.6",
2020-12-08 08:30:29 -05:00
"sequelize-typescript": "^2.0.0-beta.1",
"short-uuid": "^4.2.0",
2021-05-05 05:08:02 -04:00
"sitemap": "^7.0.0",
2021-04-12 10:35:04 -04:00
"socket.io": "^4.0.1",
2022-09-09 05:11:47 -04:00
"sql-formatter": "^10.6.0",
2018-07-16 08:22:16 -04:00
"srt-to-vtt": "^1.1.2",
2022-06-21 05:10:58 -04:00
"tsconfig-paths": "^4.0.0",
2020-06-05 04:03:53 -04:00
"tslib": "^2.0.0",
"useragent": "^2.3.0",
2020-04-01 08:16:19 -04:00
"validator": "^13.0.0",
2017-11-09 11:51:58 -05:00
"webfinger.js": "^2.6.6",
2021-06-15 10:14:57 -04:00
"webtorrent": "^1.0.0",
2022-09-09 05:11:47 -04:00
"winston": "3.8.2",
"ws": "^8.0.0"
2015-06-09 11:41:40 -04:00
},
"devDependencies": {
2021-10-26 10:03:53 -04:00
"@peertube/maildev": "^1.2.0",
"@types/async-lock": "^1.1.0",
2021-06-25 11:39:27 -04:00
"@types/bcrypt": "^5.0.0",
2021-08-27 08:32:44 -04:00
"@types/bencode": "^2.0.0",
2021-05-05 05:08:02 -04:00
"@types/bluebird": "^3.5.33",
2017-05-15 16:22:03 -04:00
"@types/body-parser": "^1.16.3",
2018-09-11 10:27:07 -04:00
"@types/bytes": "^3.0.0",
2017-09-04 15:21:47 -04:00
"@types/chai": "^4.0.4",
"@types/chai-json-schema": "^1.4.3",
"@types/chai-xml": "^0.3.1",
2022-09-09 05:11:47 -04:00
"@types/config": "^3.3.0",
2021-08-27 08:32:44 -04:00
"@types/create-torrent": "^5.0.0",
2021-02-03 03:33:05 -05:00
"@types/express": "4.17.9",
"@types/fluent-ffmpeg": "^2.1.16",
2020-06-17 04:55:40 -04:00
"@types/fs-extra": "^9.0.1",
2017-05-15 16:22:03 -04:00
"@types/lodash": "^4.14.64",
2017-06-10 16:15:25 -04:00
"@types/magnet-uri": "^5.1.1",
2021-07-22 05:58:44 -04:00
"@types/maildev": "^0.0.3",
2018-09-14 05:52:23 -04:00
"@types/memoizee": "^0.4.2",
2020-02-28 10:03:39 -05:00
"@types/mkdirp": "^1.0.0",
2021-08-06 09:51:45 -04:00
"@types/mocha": "^9.0.0",
2017-05-15 16:22:03 -04:00
"@types/morgan": "^1.7.32",
2017-08-25 12:36:49 -04:00
"@types/multer": "^1.3.3",
2021-03-03 09:22:38 -05:00
"@types/node": "^14.14.31",
2019-06-06 09:39:11 -04:00
"@types/nodemailer": "^6.2.0",
2018-08-27 10:34:41 -04:00
"@types/oauth2-server": "^3.0.8",
2017-08-25 12:36:49 -04:00
"@types/request": "^2.0.3",
2017-09-04 15:21:47 -04:00
"@types/supertest": "^2.0.3",
2020-06-17 04:55:40 -04:00
"@types/validator": "^13.0.0",
2020-11-19 02:58:34 -05:00
"@types/webtorrent": "^0.109.0",
2021-10-12 08:31:59 -04:00
"@types/ws": "^8.2.0",
"@typescript-eslint/eslint-plugin": "^5.0.0",
2021-02-22 09:34:32 -05:00
"autocannon": "^7.0.4",
2017-08-25 12:36:49 -04:00
"chai": "^4.1.1",
"chai-json-schema": "^1.5.0",
2020-11-19 02:58:34 -05:00
"chai-xml": "^0.4.0",
2022-01-14 08:15:23 -05:00
"concurrently": "^7.0.0",
"depcheck": "^1.4.2",
2021-10-12 08:31:59 -04:00
"eslint": "^8.0.0",
2022-07-13 03:58:34 -04:00
"eslint-config-standard-with-typescript": "^22.0.0",
2020-01-31 10:56:52 -05:00
"eslint-plugin-import": "^2.20.1",
2022-07-13 05:58:01 -04:00
"eslint-plugin-n": "^15.2.4",
2020-01-31 10:56:52 -05:00
"eslint-plugin-node": "^11.0.0",
2021-12-24 07:53:19 -05:00
"eslint-plugin-promise": "^6.0.0",
"fast-xml-parser": "^4.0.0-beta.8",
2022-06-21 05:10:58 -04:00
"mocha": "^10.0.0",
"proxy": "^1.0.2",
2022-07-13 03:58:34 -04:00
"resolve-tspaths": "^0.7.0",
2021-04-12 10:35:04 -04:00
"socket.io-client": "^4.0.1",
2020-11-19 02:58:34 -05:00
"supertest": "^6.0.1",
2020-04-01 08:16:19 -04:00
"swagger-cli": "^4.0.2",
2022-07-13 03:58:34 -04:00
"ts-node": "^10.8.1",
2022-04-08 08:32:31 -04:00
"tsc-watch": "^5.0.3",
2020-11-19 02:58:34 -05:00
"typescript": "^4.0.5"
2015-06-09 11:41:40 -04:00
},
2020-08-08 06:01:28 -04:00
"bundlewatch": {
2020-08-05 10:44:48 -04:00
"files": [
{
"path": "client/dist/en-US/*.js",
2020-08-05 10:44:48 -04:00
"maxSize": "1mb"
2020-08-06 04:26:39 -04:00
},
{
"path": "client/dist/standalone/videos/video-embed.bundle.js",
"maxSize": "1mb"
},
{
"path": "client/dist/standalone/videos/video-embed.css",
"maxSize": "1mb"
2020-08-05 10:44:48 -04:00
}
]
}
2015-06-09 11:41:40 -04:00
}