PeerTube/package.json

251 lines
8.5 KiB
JSON
Raw Normal View History

2015-06-09 10:41:40 -05:00
{
"name": "peertube",
2021-01-14 02:43:06 -06:00
"description": "PeerTube, an ActivityPub-federated video streaming platform using P2P directly in your web browser.",
2022-09-21 04:30:14 -05:00
"version": "4.3.0",
2015-06-09 10:41:40 -05:00
"private": true,
2019-12-17 08:19:42 -06:00
"licence": "AGPL-3.0",
2015-06-09 10:41:40 -05:00
"engines": {
2021-05-10 02:41:21 -05:00
"node": ">=12.x",
"yarn": ">=1.x"
},
"bin": {
"peertube": "dist/server/tools/peertube.js"
},
"author": {
2018-10-03 09:43:57 -05:00
"name": "Chocobozzz",
2020-11-12 04:12:41 -06:00
"email": "chocobozzz@framasoft.org",
"url": "http://github.com/Chocobozzz"
},
"repository": {
"type": "git",
2018-08-16 03:57:57 -05:00
"url": "git+https://github.com/Chocobozzz/PeerTube.git"
2015-06-09 10:41:40 -05:00
},
"typings": "*.d.ts",
2015-06-09 10:41:40 -05:00
"scripts": {
2021-09-02 01:57:59 -05:00
"e2e:browserstack": "bash ./scripts/e2e/browserstack.sh",
2021-05-05 03:56:40 -05: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 04:39:58 -05:00
"plugin:install": "node ./dist/scripts/plugin/install.js",
"plugin:uninstall": "node ./dist/scripts/plugin/uninstall.js",
2018-06-06 07:23:40 -05:00
"i18n:create-custom-files": "node ./dist/scripts/i18n/create-custom-files.js",
2018-01-26 02:50:43 -06:00
"reset-password": "node ./dist/scripts/reset-password.js",
2021-05-05 03:56:40 -05: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 15:57:31 -05:00
"start": "node dist/server",
2018-11-14 08:27:47 -06:00
"start:server": "node dist/server --no-client",
2018-01-26 02:50:43 -06:00
"update-host": "node ./dist/scripts/update-host.js",
"create-transcoding-job": "node ./dist/scripts/create-transcoding-job.js",
2021-03-12 10:04:49 -06: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 03:56:40 -05:00
"test": "bash ./scripts/test.sh",
"help": "bash ./scripts/help.sh",
"generate-cli-doc": "bash ./scripts/generate-cli-doc.sh",
2021-12-28 03:18:15 -06:00
"generate-types-package": "ts-node ./packages/types/generate-package.ts",
2018-01-26 02:50:43 -06:00
"parse-log": "node ./dist/scripts/parse-log.js",
2018-05-29 04:11:52 -05:00
"prune-storage": "node ./dist/scripts/prune-storage.js",
"postinstall": "test -n \"$NOCLIENT\" || (cd client && yarn install --pure-lockfile)",
2017-06-10 15:57:31 -05:00
"tsc": "tsc",
"commander": "commander",
2019-07-29 04:59:29 -05:00
"lint": "npm run ci -- lint",
"ng": "ng",
"ts-node": "ts-node",
2020-01-31 09:56:52 -06:00
"eslint": "eslint",
2021-12-24 06:16:55 -06:00
"resolve-tspaths": "resolve-tspaths",
"resolve-tspaths:server": "npm run resolve-tspaths -- --project tsconfig.json --src . --out dist",
2018-06-07 09:50:33 -05:00
"concurrently": "concurrently",
2018-04-19 09:23:09 -05:00
"mocha": "mocha",
2021-05-05 03:56:40 -05: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 09:41:07 -05:00
"swagger-cli": "swagger-cli"
},
2022-06-21 03:59:46 -05:00
"resolutions": {
"jpeg-js": "0.4.4"
},
2015-06-09 10:41:40 -05: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 01:26:20 -05: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 02:58:34 -05:00
"@babel/parser": "^7.17.8",
2022-06-28 08:32:57 -05:00
"@node-oauth/oauth2-server": "^4.2.0",
2022-07-05 08:43:21 -05:00
"@opentelemetry/api": "^1.1.0",
2022-09-09 04:11:47 -05:00
"@opentelemetry/api-metrics": "^0.32.0",
2022-07-05 08:43:21 -05:00
"@opentelemetry/exporter-jaeger": "^1.3.1",
2022-09-09 04:11:47 -05: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 08:43:21 -05:00
"@opentelemetry/resources": "^1.3.1",
2022-09-09 04:11:47 -05:00
"@opentelemetry/sdk-metrics": "^0.32.0",
2022-07-05 08:43:21 -05:00
"@opentelemetry/sdk-trace-base": "^1.3.1",
"@opentelemetry/sdk-trace-node": "^1.3.1",
"@opentelemetry/semantic-conventions": "^1.3.1",
2022-02-08 04:10:48 -06:00
"@peertube/feed": "^5.0.1",
2022-07-12 03:54:21 -05:00
"@peertube/http-signature": "^1.7.0",
2022-09-09 04:11:47 -05:00
"@uploadx/core": "^6.0.0",
2017-07-12 04:56:02 -05:00
"async-lru": "^1.1.1",
2021-03-03 08:22:38 -06:00
"bcrypt": "5.0.1",
2021-08-18 02:14:51 -05:00
"bencode": "^2.0.2",
"bittorrent-tracker": "^9.0.0",
"bluebird": "^3.5.0",
2022-08-08 03:42:08 -05:00
"bullmq": "^1.87.0",
2018-09-11 09:27:07 -05:00
"bytes": "^3.0.0",
"chokidar": "^3.4.2",
2022-02-09 06:44:02 -06:00
"commander": "^9.0.0",
2018-12-04 02:34:29 -06:00
"config": "^3.0.0",
2018-06-28 06:59:48 -05:00
"cookie-parser": "^1.4.3",
"cors": "^2.8.1",
2021-08-06 08:51:45 -05:00
"create-torrent": "^5.0.0",
2018-07-31 07:02:47 -05:00
"deep-object-diff": "^1.1.0",
2022-07-13 02:58:34 -05:00
"email-templates": "^10.0.0",
"execa": "^5.1.1",
2022-06-21 03:59:46 -05:00
"express": "^4.18.1",
2022-01-14 07:15:23 -06:00
"express-rate-limit": "^6.1.0",
2020-01-31 09:56:52 -06:00
"express-validator": "^6.4.0",
2019-12-03 07:12:47 -06:00
"flat": "^5.0.0",
2016-05-03 15:41:46 -05:00
"fluent-ffmpeg": "^2.1.0",
2021-05-05 04:08:02 -05:00
"fs-extra": "^10.0.0",
2021-03-08 07:24:11 -06:00
"got": "^11.8.2",
2022-09-09 04:11:47 -05:00
"helmet": "^6.0.0",
2022-06-21 04:10:58 -05:00
"hpagent": "^1.0.0",
"http-problem-details": "^0.1.5",
2019-06-06 08:39:11 -05:00
"ip-anonymize": "^0.1.0",
2021-06-15 09:14:57 -05:00
"ipaddr.js": "2.0.1",
2020-06-17 03:55:40 -05:00
"is-cidr": "^4.0.0",
2021-04-12 09:35:04 -05:00
"iso-639-3": "2.2.0",
2020-08-25 06:54:59 -05:00
"jimp": "^0.16.0",
2021-02-03 02:33:05 -06:00
"js-yaml": "^4.0.0",
2022-09-09 04:11:47 -05:00
"jsonld": "~8.1.0",
2018-05-22 09:02:29 -05:00
"lodash": "^4.17.10",
2022-07-27 07:56:08 -05:00
"lru-cache": "^7.13.0",
2020-11-19 01:58:34 -06:00
"magnet-uri": "^6.1.0",
2022-06-21 04:10:58 -05:00
"markdown-it": "^13.0.1",
2020-11-10 03:09:11 -06:00
"markdown-it-emoji": "^2.0.0",
"maxmind": "^4.3.6",
2018-09-14 04:52:23 -05:00
"memoizee": "^0.4.14",
2015-06-09 10:41:40 -05:00
"morgan": "^1.5.3",
2022-06-21 03:59:46 -05:00
"multer": "^1.4.5-lts.1",
"node-media-server": "^2.1.4",
2019-04-02 09:42:13 -05:00
"nodemailer": "^6.0.0",
2022-07-28 03:56:05 -05:00
"opentelemetry-instrumentation-sequelize": "^0.29.0",
"otpauth": "^8.0.3",
"p-queue": "^6",
2020-11-19 01:58:34 -06:00
"parse-torrent": "^9.1.0",
"password-generator": "^2.0.2",
2020-06-17 03:55:40 -05:00
"pg": "^8.2.1",
"piscina": "^3.2.0",
"prompt": "^1.0.0",
2021-10-26 02:57:38 -05:00
"proxy-addr": "^2.0.7",
2020-06-17 03:55:40 -05:00
"pug": "^3.0.0",
2021-12-24 07:49:03 -06:00
"redis": "^4.0.1",
2018-12-06 04:50:40 -06:00
"reflect-metadata": "^0.1.12",
"sanitize-html": "2.x",
2022-09-09 04:11:47 -05:00
"sequelize": "6.21.6",
2020-12-08 07:30:29 -06:00
"sequelize-typescript": "^2.0.0-beta.1",
"short-uuid": "^4.2.0",
2021-05-05 04:08:02 -05:00
"sitemap": "^7.0.0",
2021-04-12 09:35:04 -05:00
"socket.io": "^4.0.1",
2022-09-09 04:11:47 -05:00
"sql-formatter": "^10.6.0",
2018-07-16 07:22:16 -05:00
"srt-to-vtt": "^1.1.2",
2022-06-21 04:10:58 -05:00
"tsconfig-paths": "^4.0.0",
2020-06-05 03:03:53 -05:00
"tslib": "^2.0.0",
"useragent": "^2.3.0",
2020-04-01 07:16:19 -05:00
"validator": "^13.0.0",
2017-11-09 10:51:58 -06:00
"webfinger.js": "^2.6.6",
2021-06-15 09:14:57 -05:00
"webtorrent": "^1.0.0",
2022-09-09 04:11:47 -05:00
"winston": "3.8.2",
"ws": "^8.0.0"
2015-06-09 10:41:40 -05:00
},
"devDependencies": {
2021-10-26 09:03:53 -05:00
"@peertube/maildev": "^1.2.0",
"@types/async-lock": "^1.1.0",
2021-06-25 10:39:27 -05:00
"@types/bcrypt": "^5.0.0",
2021-08-27 07:32:44 -05:00
"@types/bencode": "^2.0.0",
2021-05-05 04:08:02 -05:00
"@types/bluebird": "^3.5.33",
2017-05-15 15:22:03 -05:00
"@types/body-parser": "^1.16.3",
2018-09-11 09:27:07 -05:00
"@types/bytes": "^3.0.0",
2017-09-04 14:21:47 -05:00
"@types/chai": "^4.0.4",
"@types/chai-json-schema": "^1.4.3",
"@types/chai-xml": "^0.3.1",
2022-09-09 04:11:47 -05:00
"@types/config": "^3.3.0",
2021-08-27 07:32:44 -05:00
"@types/create-torrent": "^5.0.0",
2021-02-03 02:33:05 -06:00
"@types/express": "4.17.9",
"@types/fluent-ffmpeg": "^2.1.16",
2020-06-17 03:55:40 -05:00
"@types/fs-extra": "^9.0.1",
2017-05-15 15:22:03 -05:00
"@types/lodash": "^4.14.64",
2017-06-10 15:15:25 -05:00
"@types/magnet-uri": "^5.1.1",
2021-07-22 04:58:44 -05:00
"@types/maildev": "^0.0.3",
2018-09-14 04:52:23 -05:00
"@types/memoizee": "^0.4.2",
2020-02-28 09:03:39 -06:00
"@types/mkdirp": "^1.0.0",
2021-08-06 08:51:45 -05:00
"@types/mocha": "^9.0.0",
2017-05-15 15:22:03 -05:00
"@types/morgan": "^1.7.32",
2017-08-25 11:36:49 -05:00
"@types/multer": "^1.3.3",
2021-03-03 08:22:38 -06:00
"@types/node": "^14.14.31",
2019-06-06 08:39:11 -05:00
"@types/nodemailer": "^6.2.0",
2018-08-27 09:34:41 -05:00
"@types/oauth2-server": "^3.0.8",
2017-08-25 11:36:49 -05:00
"@types/request": "^2.0.3",
2017-09-04 14:21:47 -05:00
"@types/supertest": "^2.0.3",
2020-06-17 03:55:40 -05:00
"@types/validator": "^13.0.0",
2020-11-19 01:58:34 -06:00
"@types/webtorrent": "^0.109.0",
2021-10-12 07:31:59 -05:00
"@types/ws": "^8.2.0",
"@typescript-eslint/eslint-plugin": "^5.0.0",
2021-02-22 08:34:32 -06:00
"autocannon": "^7.0.4",
2017-08-25 11:36:49 -05:00
"chai": "^4.1.1",
"chai-json-schema": "^1.5.0",
2020-11-19 01:58:34 -06:00
"chai-xml": "^0.4.0",
2022-01-14 07:15:23 -06:00
"concurrently": "^7.0.0",
"depcheck": "^1.4.2",
2021-10-12 07:31:59 -05:00
"eslint": "^8.0.0",
2022-07-13 02:58:34 -05:00
"eslint-config-standard-with-typescript": "^22.0.0",
2020-01-31 09:56:52 -06:00
"eslint-plugin-import": "^2.20.1",
2022-07-13 04:58:01 -05:00
"eslint-plugin-n": "^15.2.4",
2020-01-31 09:56:52 -06:00
"eslint-plugin-node": "^11.0.0",
2021-12-24 06:53:19 -06:00
"eslint-plugin-promise": "^6.0.0",
"fast-xml-parser": "^4.0.0-beta.8",
2022-06-21 04:10:58 -05:00
"mocha": "^10.0.0",
"proxy": "^1.0.2",
2022-07-13 02:58:34 -05:00
"resolve-tspaths": "^0.7.0",
2021-04-12 09:35:04 -05:00
"socket.io-client": "^4.0.1",
2020-11-19 01:58:34 -06:00
"supertest": "^6.0.1",
2020-04-01 07:16:19 -05:00
"swagger-cli": "^4.0.2",
2022-07-13 02:58:34 -05:00
"ts-node": "^10.8.1",
2022-04-08 07:32:31 -05:00
"tsc-watch": "^5.0.3",
2020-11-19 01:58:34 -06:00
"typescript": "^4.0.5"
2015-06-09 10:41:40 -05:00
},
2020-08-08 05:01:28 -05:00
"bundlewatch": {
2020-08-05 09:44:48 -05:00
"files": [
{
"path": "client/dist/en-US/*.js",
2020-08-05 09:44:48 -05:00
"maxSize": "1mb"
2020-08-06 03:26:39 -05: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 09:44:48 -05:00
}
]
}
2015-06-09 10:41:40 -05:00
}