Skip to content

BlowaterNostr/relayed

Repository files navigation

Relayed

deno module

[!IMPORTANT] Make Small Relay Great for the first time!

Relayed is lightweight relay written in Deno.

  • built-in database
  • GraphQL API for relay management

Quick Start

  1. Install Deno at https://deno.land/manual/getting_started/installation.

  2. Run following command in your CLI:

# relayed_pw is the password for the relayed admin
relayed_pw=123whatever deno run -r --allow-net --allow-env --unstable https://deno.land/x/relayed/deploy/example.ts
  1. You have a relay!

Local Development

To begin, install Deno by following the instructions at https://deno.land/manual/getting_started/installation.

Next, create a file named deploy/default.ts:

cp deploy/example.ts deploy/defalut.ts

After that, launch the project with the command:

relayed_pw=123whatever deno task start

Finally, open your browser and go to http://localhost:8080/api to access the GraphQL playground.

Use GraphQL Playground

In the Headers section, include {"password":"123whatever"} for identity verification.

Click the Re-fetch GraphQL schema button to retrieve the schema.

You can now utilize the GraphQL Playground to communicate with the server.

Client Connection

Relay url is ws://localhost:8000.

Join our community

wss://relayed.deno.dev

About

A Nostr Relay written in Deno

Resources

Stars

Watchers

Forks

Packages

No packages published