Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
NotificationsYou must be signed in to change notification settings

RapiPOX/server

Repository files navigation

First implementation of RapiPOX Server

  • Project startup
  • Typescript
  • Linters
  • Relay connection
  • Http request
  • Get actions from files
  • Dockerfile
  • Umbrelize
  • Whitelist protection
  • Tests

Getting started

Setup environment

Set proper nvm version

nvm use

Install dependencies

pnpm i

Copy .env.example to .env

cp .env.example .env

Edit .env file with proper values

Run in developer mode

pnpm dev

How to use it?

Make a request

Just publish a nostr event to the same relay server that the RapiPOX server is connected to.

{"id":"GENERATED_REQUEST_EVENT_ID","kind":20001,"content":"{\"url\":\"https://lawallet.ar/.well-known/lnurlp/pos\"}","tags": ["p":"RAPIPOX_SERVER_PUBLIC_KEY","action":"http",    ],...}

Theaction tag should contain a valid action, in this case we are usinghttp that takes JSON content and uses theFetch API to make a request to the given URL.

Receive response

The server will respond publishing a nostr event with the sameid andkind but with thecontent containing the response from the request.

{..."kind":20001,"content":"{\"status\": 200,\"body\":\"<html>...</html>\"}","tags": ["p":"YOUR_PUBLIC_KEY","e":"GENERATED_REQUEST_EVENT_ID",    ],...}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp