Skip to content

Commit dbb4a68

Browse files
committed
Upload NostrChat
1 parent 49911fe commit dbb4a68

File tree

1,532 files changed

+158703
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,532 files changed

+158703
-1
lines changed

.eslintrc

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"extends": [
3+
"react-app",
4+
"react-app/jest"
5+
],
6+
"rules": {
7+
"no-console": "warn",
8+
"import/no-anonymous-default-export": "off",
9+
"react-hooks/exhaustive-deps": "off",
10+
"import/order": [
11+
2,
12+
{
13+
"groups": [
14+
"external",
15+
"builtin",
16+
"internal",
17+
"sibling",
18+
"parent",
19+
"index"
20+
]
21+
}
22+
],
23+
"quotes": [2, "single", { "avoidEscape": true }]
24+
}
25+
}

.github/workflows/deploy.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v3
15+
16+
- name: Set up Node.js
17+
uses: actions/setup-node@v3
18+
with:
19+
node-version: '20'
20+
21+
- name: Install dependencies
22+
run: yarn
23+
24+
- name: Build project
25+
run: yarn build
26+
27+
- name: Deploy to GitHub Pages
28+
uses: peaceiris/actions-gh-pages@v4
29+
with:
30+
github_token: ${{ secrets.GITHUB_TOKEN }}
31+
publish_dir: ./build

.gitignore

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# production
12+
/build
13+
14+
# misc
15+
.DS_Store
16+
.env.local
17+
.env.development.local
18+
.env.test.local
19+
.env.production.local
20+
.env
21+
22+
npm-debug.log*
23+
yarn-debug.log*
24+
yarn-error.log*
25+
26+
27+
.idea

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2023 Talha Buğra Bulut
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+55-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,55 @@
1-
# angor-chat
1+
# NostrChat
2+
3+
<img src="public/logo192.png" width="100">
4+
5+
NostrChat is one of the most decentralized chat apps ever built.
6+
7+
NostrChat is built on Nostr, and therefore doesn't rely on any centralized servers, just Nostr relays. Everyday users of NostrChat can immediately benefit from Nostr’s decentralized network. Power users can choose to further decentralization by running their own NostrChat client or Nostr relay.
8+
9+
Our ReadMe is a summary about NostrChat, what it looks like, and how to use it.
10+
11+
[Join NostrChat](https://www.nostrchat.io/)
12+
13+
## What is Nostr?
14+
15+
[Nostr](https://github.com/nostr-protocol/nostr) is a simple open protocol for creating censorship-resistant global networks.
16+
17+
## How to log into NostrChat
18+
19+
From the [Nostrchat.io](https://www.nostrchat.io/) homepage choose one of the following:
20+
21+
**Create Nostr Account** (easiest option for first time users) — Click the button to “Create Nostr Account.” Instantly you’ll be given a new Nostr account. Once you login, it is highly recommended that you go to “Settings -> Keys” and save both your public and private keys. These keys are your access to your Nostr account, and you will need them again in the future.
22+
23+
**Use NIP-07 Wallet** (recommended for return users) — Choose the button “Use NIP-07 Wallet.” Install the Alby wallet browser extension. Once you install Alby you will be able to log into NostrChat. The benefit of the NIP-07 login is that you will manage your private keys locally in the Alby extension.
24+
25+
## How to use NostrChat
26+
27+
Once you enter NostrChat you can chat in the global chat, or create your own chat channel where you can invite others.
28+
29+
## How to run NostrChat locally
30+
31+
Install dependencies
32+
```bash
33+
$ yarn
34+
```
35+
36+
Start
37+
```bash
38+
$ yarn start
39+
```
40+
41+
NostrChat will open in your browser.
42+
43+
## Roadmap 🛣️
44+
45+
- Mute user & Hide message ✅
46+
- Reply in Thread ✅
47+
- Muting ✅
48+
- Reactions ✅
49+
- Channel invitations ✅
50+
- User profiles ✅
51+
- Mentions ✅
52+
- Channel & DM unread indicator ✅
53+
- iOS app
54+
- Notifications (push/fetch)
55+
- Android app

assets/logo-dark.png

41.6 KB
Loading

assets/logo.png

41.6 KB
Loading

capacitor.config.ts

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import { CapacitorConfig } from '@capacitor/cli';
2+
3+
const config: CapacitorConfig = {
4+
appId: 'org.nostrchat.app',
5+
appName: 'NostrChat',
6+
webDir: 'build',
7+
backgroundColor: '#343434',
8+
server: {
9+
androidScheme: 'https'
10+
},
11+
ios: {
12+
contentInset: 'always',
13+
allowsLinkPreview: false
14+
}
15+
};
16+
17+
export default config;

config-overrides.js

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
const webpack = require('webpack')
2+
3+
module.exports = function override(config, env) {
4+
// Dependency fallback management
5+
const fallback = config.resolve.fallback || {};
6+
Object.assign(fallback, {
7+
stream: require.resolve('stream-browserify'),
8+
crypto: require.resolve('crypto-browserify'),
9+
buffer: require.resolve('buffer'),
10+
});
11+
config.plugins = [
12+
...config.plugins,
13+
new webpack.ProvidePlugin({
14+
Buffer: ['buffer', 'Buffer'],
15+
})
16+
];
17+
18+
config.resolve.fallback = fallback;
19+
config.ignoreWarnings = [/Failed to parse source map/]; // gets rid of a billion source map warnings
20+
return config;
21+
}

icons/icon-128.webp

3.97 KB
Binary file not shown.

icons/icon-192.webp

6.18 KB
Binary file not shown.

icons/icon-256.webp

8.62 KB
Binary file not shown.

icons/icon-48.webp

1.53 KB
Binary file not shown.

icons/icon-512.webp

20.1 KB
Binary file not shown.

icons/icon-72.webp

2.14 KB
Binary file not shown.

icons/icon-96.webp

2.97 KB
Binary file not shown.

ios/.gitignore

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
App/build
2+
App/Pods
3+
App/output
4+
App/App/public
5+
DerivedData
6+
xcuserdata
7+
8+
# Cordova plugins for Capacitor
9+
capacitor-cordova-ios-plugins
10+
11+
# Generated Config files
12+
App/App/capacitor.config.json
13+
App/App/config.xml

0 commit comments

Comments
 (0)