-
Notifications
You must be signed in to change notification settings - Fork 231
Expand file tree
/
Copy pathpackage.json
More file actions
181 lines (181 loc) · 6.34 KB
/
package.json
File metadata and controls
181 lines (181 loc) · 6.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
{
"name": "nostream",
"version": "2.1.1",
"packageManager": "pnpm@10.33.0",
"private": true,
"description": "A Nostr relay written in Typescript.",
"supportedNips": [
1,
2,
3,
4,
9,
11,
12,
14,
15,
16,
17,
20,
22,
28,
33,
40,
44,
45
],
"supportedNipExtensions": [],
"main": "src/index.ts",
"bin": {
"nostream": "./dist/src/cli/index.js"
},
"files": [
"dist",
"resources",
"nginx",
"i2p",
"docker-compose*.yml",
"postgresql.conf",
".env.example",
"README.md",
"CLI.md",
"CONFIGURATION.md"
],
"scripts": {
"cli": "node --env-file-if-exists=.env -r ts-node/register src/cli/index.ts",
"dev": "node --env-file-if-exists=.env -r ts-node/register src/index.ts",
"clean-db": "node --env-file-if-exists=.env -r ts-node/register src/clean-db.ts",
"clean": "rimraf ./{dist,.nyc_output,.test-reports,.coverage}",
"build": "tsc --project tsconfig.build.json",
"verify:cli:build": "node scripts/verify-cli-build.js",
"prestart": "pnpm run build",
"start": "cd dist && node --env-file-if-exists=../.env src/index.js",
"build:check": "pnpm run build --noEmit",
"check:deps": "knip --config .knip.json --production --include files,dependencies --no-progress --reporter compact",
"lint": "biome lint ./src ./test",
"check:all": "pnpm run lint && pnpm run check:deps",
"lint:report": "mkdir -p .lint-reports && biome lint --reporter=json --reporter-file=.lint-reports/biome.json ./src ./test",
"lint:fix": "pnpm run lint --write",
"format": "biome format --write ./src ./test",
"check:format": "biome format ./src ./test",
"import": "node --env-file-if-exists=.env -r ts-node/register src/import-events.ts",
"db:migrate": "knex migrate:latest",
"db:migrate:rollback": "knex migrate:rollback",
"db:seed": "knex seed:run",
"db:benchmark": "node --env-file-if-exists=.env -r ts-node/register src/scripts/benchmark-queries.ts",
"db:verify-index-impact": "node --env-file-if-exists=.env -r ts-node/register scripts/verify-index-impact.ts",
"pretest:unit": "pnpm run build && node -e \"require('fs').mkdirSync('.test-reports/unit', {recursive: true})\"",
"test:unit": "mocha 'test/**/*.spec.ts'",
"pretest:cli": "pnpm run build",
"test:cli": "mocha 'test/unit/cli/**/*.spec.ts'",
"test:unit:watch": "pnpm run test:unit --min --watch --watch-files src/**/*,test/**/*",
"cover:unit": "nyc --report-dir .coverage/unit pnpm run test:unit",
"docker:build": "docker build -t nostream .",
"pretest:integration": "mkdir -p .test-reports/integration",
"test:load": "node -r ts-node/register ./scripts/security-load-test.ts",
"smoke:nip03": "node -r ts-node/register scripts/smoke-nip03.ts",
"test:integration": "cucumber-js",
"cover:integration": "nyc --report-dir .coverage/integration pnpm run test:integration -p cover",
"export": "node --env-file-if-exists=.env -r ts-node/register src/scripts/export-events.ts",
"docker:compose:start": "pnpm run cli -- start",
"docker:compose:stop": "pnpm run cli -- stop",
"docker:compose:clean": "pnpm run cli -- clean",
"tor:docker:compose:start": "pnpm run cli -- start --tor",
"tor:hostname": "pnpm run cli -- info --tor-hostname",
"tor:docker:compose:stop": "pnpm run cli -- stop",
"i2p:docker:compose:start": "pnpm run cli -- start --i2p",
"i2p:hostname": "pnpm run cli -- info --i2p-hostname",
"i2p:docker:compose:stop": "pnpm run cli -- stop",
"docker:integration:run": "docker compose -f ./test/integration/docker-compose.yml run --rm tests",
"test:cli:docker-smoke": "pnpm run cli -- stop --all && pnpm run cli -- info",
"docker:test:integration": "pnpm run docker:integration:run pnpm run test:integration",
"docker:cover:integration": "pnpm run docker:integration:run pnpm exec nyc --report-dir .coverage/integration pnpm run test:integration -- -p cover",
"postdocker:integration:run": "docker compose -f ./test/integration/docker-compose.yml down",
"prepack": "pnpm run build",
"prepare": "husky install || exit 0",
"changeset:version": "changeset version && pnpm install --lockfile-only",
"changeset:publish": "changeset publish"
},
"repository": {
"type": "git",
"url": "git+https://github.com/cameri/nostream.git"
},
"keywords": [
"nostr",
"relay",
"typescript"
],
"author": "Ricardo Arturo Cabral Mejía (npub1qqqqqqyz0la2jjl752yv8h7wgs3v098mh9nztd4nr6gynaef6uqqt0n47m)",
"license": "MIT",
"bugs": {
"url": "https://github.com/cameri/nostream/issues"
},
"homepage": "https://github.com/cameri/nostream#readme",
"devDependencies": {
"@biomejs/biome": "^2.4.11",
"@changesets/changelog-github": "0.6.0",
"@changesets/cli": "^2.27.12",
"@commitlint/cli": "17.2.0",
"@commitlint/config-conventional": "17.2.0",
"@cucumber/cucumber": "10.2.1",
"@cucumber/pretty-formatter": "1.0.0",
"@types/chai": "^4.3.1",
"@types/chai-as-promised": "^7.1.5",
"@types/express": "4.17.21",
"@types/js-yaml": "4.0.5",
"@types/mocha": "^9.1.1",
"@types/node": "^24.12.2",
"@types/pg": "^8.6.5",
"@types/ramda": "^0.28.13",
"@types/sinon": "^10.0.11",
"@types/sinon-chai": "^3.2.8",
"@types/ws": "^8.5.12",
"chai": "^4.3.6",
"chai-as-promised": "^7.1.1",
"husky": "8.0.2",
"knip": "2.43.0",
"mocha": "^11.7.5",
"mochawesome": "^7.1.3",
"nyc": "^15.1.0",
"pino-pretty": "^13.1.3",
"rimraf": "^3.0.2",
"rxjs": "7.8.0",
"sinon": "15.0.1",
"sinon-chai": "^3.7.0",
"source-map-support": "^0.5.21",
"ts-node": "10.9.2",
"ts-node-dev": "^1.1.8",
"typescript": "~5.7.3",
"uuid": "^14.0.0"
},
"engines": {
"node": ">=24.14.1"
},
"dependencies": {
"@getalby/sdk": "^5.0.0",
"@clack/prompts": "^1.2.0",
"@noble/secp256k1": "1.7.1",
"accepts": "^1.3.8",
"axios": "^1.15.0",
"cac": "^7.0.0",
"colorette": "^2.0.20",
"express": "4.22.1",
"js-yaml": "4.1.1",
"knex": "2.4.2",
"ora": "^9.3.0",
"pg": "8.9.0",
"pg-query-stream": "4.3.0",
"pino": "^8.21.0",
"ramda": "0.28.0",
"redis": "4.5.1",
"stream-json": "^2.1.0",
"ws": "^8.18.0",
"zod": "^3.22.4"
},
"optionalDependencies": {
"lzma-native": "^8.0.6"
},
"overrides": {
"axios@<0.31.0": ">=0.31.0"
}
}