Waku's frontend. Interact with your waku node via this simple user interface
Go to file
Alvaro Revuelta aad96280f9
Misc changes and fixes (#35)
2024-07-03 18:13:05 +02:00
.github/workflows Build both arm/amd (#32) 2024-06-12 10:53:37 +02:00
docs Use ferry chat to replace current code. (#28) 2024-05-21 09:30:56 +02:00
public Use ferry chat to replace current code. (#28) 2024-05-21 09:30:56 +02:00
src Misc changes and fixes (#35) 2024-07-03 18:13:05 +02:00
.dockerignore fix: prevent from excluding out folder 2023-12-03 10:54:15 +01:00
.eslintrc.cjs Use ferry chat to replace current code. (#28) 2024-05-21 09:30:56 +02:00
.eslintrc.json copy rln-js 2023-10-30 23:57:10 +01:00
.gitignore Use ferry chat to replace current code. (#28) 2024-05-21 09:30:56 +02:00
Dockerfile Misc changes and fixes (#35) 2024-07-03 18:13:05 +02:00
README.md Misc changes and fixes (#35) 2024-07-03 18:13:05 +02:00
components.json Use ferry chat to replace current code. (#28) 2024-05-21 09:30:56 +02:00
index.html Use ferry chat to replace current code. (#28) 2024-05-21 09:30:56 +02:00
next.config.js copy rln-js 2023-10-30 23:57:10 +01:00
package-lock.json bug fixing and improvements (#33) 2024-06-12 14:23:16 +02:00
package.json Use ferry chat to replace current code. (#28) 2024-05-21 09:30:56 +02:00
postcss.config.js Use ferry chat to replace current code. (#28) 2024-05-21 09:30:56 +02:00
tailwind.config.js Use ferry chat to replace current code. (#28) 2024-05-21 09:30:56 +02:00
tailwind.config.ts copy rln-js 2023-10-30 23:57:10 +01:00
tsconfig.json Use ferry chat to replace current code. (#28) 2024-05-21 09:30:56 +02:00
tsconfig.node.json Use ferry chat to replace current code. (#28) 2024-05-21 09:30:56 +02:00
vite.config.ts Misc changes and fixes (#35) 2024-07-03 18:13:05 +02:00

README.md

Waku Frontend

The chat application to use The Waku Network.

Why

  • a PoC to battle test The Waku Network.
  • create user experience with REST API / WebSocket
  • facilitate the developer adoption of Waku protocols
  • split concern to harden the protocol stabliity with C/S model
  • incubate app based sync protocol

Notes: This project is still in the early stage of development, and the data is not persistent, you may lose the message history any time.

Features

Public community chat

The public chat room is open to everyone who knows the community name. The content is not encrypted.

Plans

  • WebSocket to support real-time chat
  • End-to-end encryption for 1to1 chat

Development

Locally

npm install

npm run dev

The default API endpoint used to contact a Waku Node is http://localhost:8645

In order to set a custom endpoint, please set the env variable VITE_API_ENDPOINT

For example

export VITE_API_ENDPOINT=<my-other-endpoint>

Docker

docker build -t waku-frontend .
docker run -p 4000:4000 waku-frontend

And go to http://localhost:4000.

Caddy configuration

your-domain.com {
        @cors_preflight {
                method OPTIONS
        }
        respond @cors_preflight 204

        header {
                Access-Control-Allow-Origin *
                Access-Control-Allow-Methods GET,POST,OPTIONS,HEAD,PATCH,PUT,DELETE
                Access-Control-Allow-Headers User-Agent,Content-Type,X-Api-Key
                Access-Control-Max-Age 86400
        }
        reverse_proxy :8645
}

Depend APIs

  • /relay/v1/auto/messages
  • /store/v3/messages

Known Issues