Skip to content

Commit cf44523

Browse files
committed
chore: rename project to nostream
1 parent e0471ca commit cf44523

File tree

12 files changed

+61
-61
lines changed

12 files changed

+61
-61
lines changed

.releaserc.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
1515
}],
1616
["semantic-release-telegram", {
17-
"name": "nostr-ts-relay",
17+
"name": "nostream",
1818
"chats": [ -1001670974037 ],
1919
"templates": {
20-
"success" : "A new version of <a href='{repository_url}'>{name}</a> has been released. Current version is <b>{version}</b>"
20+
"success" : "A {release_type} version of <a href='{repository_url}'>{name}</a> has been released. Current version is <b>{version}</b>\n{release_notes}"
2121
}
2222
}]
2323
]

CONFIGURATION.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ The following environment variables can be set:
2323

2424
# Settings
2525

26-
Running `nostr-ts-relay` for the first time creates the settings file in `<project_root>/.nostr/settings.json`. If the file is not created and an error is thrown ensure that the `<project_root>/.nostr` folder exists. The configuration directory can be changed by setting the `NOSTR_CONFIG_DIR` environment variable.
26+
Running `nostream` for the first time creates the settings file in `<project_root>/.nostr/settings.json`. If the file is not created and an error is thrown ensure that the `<project_root>/.nostr` folder exists. The configuration directory can be changed by setting the `NOSTR_CONFIG_DIR` environment variable.
2727

2828
| Name | Description |
2929
|---------------------------------------------|-------------------------------------------------------------------------------|

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ RUN npm run build
1313
FROM node:18-alpine3.16
1414

1515
LABEL org.opencontainers.image.title="Nostr Typescript Relay"
16-
LABEL org.opencontainers.image.source=https://github.com/Cameri/nostr-ts-relay
17-
LABEL org.opencontainers.image.description="nostr-ts-relay"
16+
LABEL org.opencontainers.image.source=https://github.com/Cameri/nostream
17+
LABEL org.opencontainers.image.description="nostream"
1818
LABEL org.opencontainers.image.authors="Ricardo Arturo Cabral Mejía"
1919
LABEL org.opencontainers.image.licenses=MIT
2020

Dockerfile.railwayapp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ RUN npm run build
3939
FROM node:18-alpine3.16
4040

4141
LABEL org.opencontainers.image.title="Nostr Typescript Relay"
42-
LABEL org.opencontainers.image.source=https://github.com/Cameri/nostr-ts-relay
43-
LABEL org.opencontainers.image.description="nostr-ts-relay"
42+
LABEL org.opencontainers.image.source=https://github.com/Cameri/nostream
43+
LABEL org.opencontainers.image.description="nostream"
4444
LABEL org.opencontainers.image.authors="Ricardo Arturo Cabral Mejía"
4545
LABEL org.opencontainers.image.licenses=MIT
4646

README.md

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
1-
# [nostr-ts-relay](https://github.com/Cameri/nostr-ts-relay)
1+
# [nostream](https://github.com/Cameri/nostream)
22

33
<p align="center">
4-
<img alt="nostr-ts-relay logo" height="256px" width="256px" src="https://user-images.githubusercontent.com/378886/198158439-86e0345a-adc8-4efe-b0ab-04ff3f74c1b2.jpg" />
4+
<img alt="nostream logo" height="256px" width="256px" src="https://user-images.githubusercontent.com/378886/198158439-86e0345a-adc8-4efe-b0ab-04ff3f74c1b2.jpg" />
55
</p>
66

77
<p align="center">
8-
<a href="https://github.com/Cameri/nostr-ts-relay/releases">
9-
<img alt="GitHub release" src="https://img.shields.io/github/v/release/Cameri/nostr-ts-relay">
8+
<a href="https://github.com/Cameri/nostream/releases">
9+
<img alt="GitHub release" src="https://img.shields.io/github/v/release/Cameri/nostream">
1010
</a>
11-
<a href="https://github.com/Cameri/nostr-ts-relay/issues">
12-
<img alt="GitHub issues" src="https://img.shields.io/github/issues/Cameri/nostr-ts-relay?style=plastic" />
11+
<a href="https://github.com/Cameri/nostream/issues">
12+
<img alt="GitHub issues" src="https://img.shields.io/github/issues/Cameri/nostream?style=plastic" />
1313
</a>
14-
<a href="https://github.com/Cameri/nostr-ts-relay/stargazers">
15-
<img alt="GitHub stars" src="https://img.shields.io/github/stars/Cameri/nostr-ts-relay" />
14+
<a href="https://github.com/Cameri/nostream/stargazers">
15+
<img alt="GitHub stars" src="https://img.shields.io/github/stars/Cameri/nostream" />
1616
</a>
17-
<img alt="GitHub top language" src="https://img.shields.io/github/languages/top/Cameri/nostr-ts-relay">
18-
<a href="https://github.com/Cameri/nostr-ts-relay/network">
19-
<img alt="GitHub forks" src="https://img.shields.io/github/forks/Cameri/nostr-ts-relay" />
17+
<img alt="GitHub top language" src="https://img.shields.io/github/languages/top/Cameri/nostream">
18+
<a href="https://github.com/Cameri/nostream/network">
19+
<img alt="GitHub forks" src="https://img.shields.io/github/forks/Cameri/nostream" />
2020
</a>
21-
<a href="https://github.com/Cameri/nostr-ts-relay/blob/main/LICENSE">
22-
<img alt="GitHub license" src="https://img.shields.io/github/license/Cameri/nostr-ts-relay" />
21+
<a href="https://github.com/Cameri/nostream/blob/main/LICENSE">
22+
<img alt="GitHub license" src="https://img.shields.io/github/license/Cameri/nostream" />
2323
</a>
24-
<a href='https://coveralls.io/github/Cameri/nostr-ts-relay?branch=main'>
25-
<img alt='Coverage Status' src='https://coveralls.io/repos/github/Cameri/nostr-ts-relay/badge.svg?branch=main' />
24+
<a href='https://coveralls.io/github/Cameri/nostream?branch=main'>
25+
<img alt='Coverage Status' src='https://coveralls.io/repos/github/Cameri/nostream/badge.svg?branch=main' />
2626
</a>
27-
<a href='https://sonarcloud.io/project/overview?id=Cameri_nostr-ts-relay'>
28-
<img alt='Sonarcloud quality gate' src='https://sonarcloud.io/api/project_badges/measure?project=Cameri_nostr-ts-relay&metric=alert_status' />
27+
<a href='https://sonarcloud.io/project/overview?id=Cameri_nostream'>
28+
<img alt='Sonarcloud quality gate' src='https://sonarcloud.io/api/project_badges/measure?project=Cameri_nostream&metric=alert_status' />
2929
</a>
30-
<a href='https://github.com/Cameri/nostr-ts-relay/actions'>
31-
<img alt='Build status' src='https://github.com/Cameri/nostr-ts-relay/actions/workflows/checks.yml/badge.svg?branch=main&event=push' />
30+
<a href='https://github.com/Cameri/nostream/actions'>
31+
<img alt='Build status' src='https://github.com/Cameri/nostream/actions/workflows/checks.yml/badge.svg?branch=main&event=push' />
3232
</a>
3333
</p>
3434

@@ -37,7 +37,7 @@ Typescript.
3737

3838
This implementation is production-ready. See below for supported features.
3939

40-
The project master repository is available on [GitHub](https://github.com/Cameri/nostr-ts-relay).
40+
The project master repository is available on [GitHub](https://github.com/Cameri/nostream).
4141

4242
[![Deploy on Railway](https://railway.app/button.svg)](https://railway.app/new/template/BWx8DY?referralCode=qVdmfO)
4343

@@ -85,8 +85,8 @@ You may have to uninstall Docker if you installed it using a different guide.
8585

8686
Clone repository and enter directory:
8787
```
88-
git clone [email protected]:Cameri/nostr-ts-relay.git
89-
cd nostr-ts-relay
88+
git clone [email protected]:Cameri/nostream.git
89+
cd nostream
9090
```
9191

9292
Start:
@@ -115,10 +115,10 @@ By default this server will run continuously until you stop it with Ctrl+C or un
115115
You can [install as a systemd service](https://www.swissrouting.com/nostr.html#installing-as-a-service) if you want the server to run again automatically whenever the system is restarted. For example:
116116

117117
```
118-
$ nano /etc/systemd/system/nostr-ts-relay.service
118+
$ nano /etc/systemd/system/nostream.service
119119
120120
# Note: replace "User=..." with your username, and
121-
# "/home/nostr/nostr-ts-relay" with the directory where you cloned the repo.
121+
# "/home/nostr/nostream" with the directory where you cloned the repo.
122122
123123
[Unit]
124124
Description=Nostr TS Relay
@@ -130,9 +130,9 @@ You can [install as a systemd service](https://www.swissrouting.com/nostr.html#i
130130
Restart=always
131131
RestartSec=5
132132
User=nostr
133-
WorkingDirectory=/home/nostr/nostr-ts-relay
134-
ExecStart=/home/nostr/nostr-ts-relay/scripts/start
135-
ExecStop=/home/nostr/nostr-ts-relay/scripts/stop
133+
WorkingDirectory=/home/nostr/nostream
134+
ExecStart=/home/nostr/nostream/scripts/start
135+
ExecStop=/home/nostr/nostream/scripts/stop
136136
137137
[Install]
138138
WantedBy=multi-user.target
@@ -141,14 +141,14 @@ You can [install as a systemd service](https://www.swissrouting.com/nostr.html#i
141141
And then:
142142

143143
```
144-
systemctl enable nostr-ts-relay
145-
systemctl start nostr-ts-relay
144+
systemctl enable nostream
145+
systemctl start nostream
146146
```
147147

148148
The logs can be viewed with:
149149

150150
```
151-
journalctl -u nostr-ts-relay
151+
journalctl -u nostream
152152
```
153153

154154
## Quick Start (Standalone)
@@ -186,8 +186,8 @@ Start Redis and use `redis-cli` to set the default password and verify:
186186

187187
Clone repository and enter directory:
188188
```
189-
git clone [email protected]:Cameri/nostr-ts-relay.git
190-
cd nostr-ts-relay
189+
git clone [email protected]:Cameri/nostream.git
190+
cd nostream
191191
```
192192

193193
Install dependencies:
@@ -232,7 +232,7 @@ To clean up the build, coverage and test reports run:
232232

233233
Open a terminal and change to the project's directory:
234234
```
235-
cd /path/to/nostr-ts-relay
235+
cd /path/to/nostream
236236
```
237237

238238
Run unit tests with:
@@ -267,7 +267,7 @@ To see the unit tests coverage report open `.coverage/unit/lcov-report/index.htm
267267

268268
Open a terminal and change to the project's directory:
269269
```
270-
cd /path/to/nostr-ts-relay
270+
cd /path/to/nostream
271271
```
272272

273273
Run integration tests with:
@@ -286,7 +286,7 @@ And to get integration test coverage run:
286286

287287
Open a terminal and change to the project's directory:
288288
```
289-
cd /path/to/nostr-ts-relay
289+
cd /path/to/nostream
290290
```
291291

292292
Set the following environment variables:
@@ -328,7 +328,7 @@ To see the integration test coverage report open `.coverage/integration/lcov-rep
328328

329329
You can change the default folder by setting the `NOSTR_CONFIG_DIR` environment variable to a different path.
330330

331-
Run nostr-ts-relay using one of the quick-start guides at least once and `~/.nostr/settings.json` will be created.
331+
Run nostream using one of the quick-start guides at least once and `~/.nostr/settings.json` will be created.
332332
Any changes made to the settings file will be read on the next start.
333333

334334
A sample settings file is included at the project root under the name `settings.sample.json`. Feel free to copy it to `~/.nostr/settings.json`

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "nostr-ts-relay",
2+
"name": "nostream",
33
"version": "1.12.0",
44
"description": "A Nostr relay written in Typescript.",
55
"supportedNips": [
@@ -33,7 +33,7 @@
3333
"test:unit": "mocha 'test/**/*.spec.ts'",
3434
"test:unit:watch": "npm run test:unit -- --min --watch --watch-files src/**/*,test/**/*",
3535
"cover:unit": "nyc --report-dir .coverage/unit npm run test:unit",
36-
"docker:build": "docker build -t nostr-ts-relay .",
36+
"docker:build": "docker build -t nostream .",
3737
"pretest:integration": "mkdir -p .test-reports/integration",
3838
"test:integration": "cucumber-js",
3939
"cover:integration": "nyc --report-dir .coverage/integration npm run test:integration -- -p cover",
@@ -51,7 +51,7 @@
5151
},
5252
"repository": {
5353
"type": "git",
54-
"url": "git+https://github.com/Cameri/nostr-ts-relay.git"
54+
"url": "git+https://github.com/Cameri/nostream.git"
5555
},
5656
"keywords": [
5757
"nostr",
@@ -61,9 +61,9 @@
6161
"author": "Ricardo Arturo Cabral Mejía (npub1qqqqqqyz0la2jjl752yv8h7wgs3v098mh9nztd4nr6gynaef6uqqt0n47m)",
6262
"license": "MIT",
6363
"bugs": {
64-
"url": "https://github.com/Cameri/nostr-ts-relay/issues"
64+
"url": "https://github.com/Cameri/nostream/issues"
6565
},
66-
"homepage": "https://github.com/Cameri/nostr-ts-relay#readme",
66+
"homepage": "https://github.com/Cameri/nostream#readme",
6767
"devDependencies": {
6868
"@commitlint/cli": "17.2.0",
6969
"@commitlint/config-conventional": "17.2.0",

scripts/print_tor_hostname

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/bash
22

33
PROJECT_ROOT="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))/.."
4-
cat $PROJECT_ROOT/.nostr/tor/data/nostr-ts-relay/hostname
4+
cat $PROJECT_ROOT/.nostr/tor/data/nostream/hostname

settings.sample.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"info": {
3-
"relay_url": "wss://nostr-ts-relay.your-domain.com",
4-
"name": "nostr-ts-relay.your-domain.com",
3+
"relay_url": "wss://nostream.your-domain.com",
4+
"name": "nostream.your-domain.com",
55
"description": "A nostr relay written in Typescript.",
66
"pubkey": "replace-with-your-pubkey",
77
"contact": "[email protected]"

test/integration/docker-compose.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ services:
3636
migrations-test:
3737
condition: service_completed_successfully
3838
networks:
39-
- nostr-ts-relay-test
39+
- nostream-test
4040
links:
4141
- db-test
4242
db-test:
@@ -46,7 +46,7 @@ services:
4646
POSTGRES_PASSWORD: postgres
4747
POSTGRES_DB: nostr_ts_relay_test
4848
networks:
49-
- nostr-ts-relay-test
49+
- nostream-test
5050
healthcheck:
5151
test: ["CMD-SHELL", "pg_isready -U postgres"]
5252
timeout: 5s
@@ -56,7 +56,7 @@ services:
5656
image: redis:7.0.5-alpine3.16
5757
command: redis-server --save 20 1 --loglevel warning --requirepass nostr_ts_relay_test
5858
networks:
59-
- nostr-ts-relay-test
59+
- nostream-test
6060
restart: always
6161
healthcheck:
6262
test: [ "CMD", "redis-cli", "ping", "|", "grep", "PONG" ]
@@ -82,9 +82,9 @@ services:
8282
db-test:
8383
condition: service_healthy
8484
networks:
85-
- nostr-ts-relay-test
85+
- nostream-test
8686
links:
8787
- db-test
8888

8989
networks:
90-
nostr-ts-relay-test:
90+
nostream-test:

0 commit comments

Comments
 (0)