Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bordalix/nostr-restore
https://github.com/bordalix/nostr-restore
nostr
Last synced: 20 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/bordalix/nostr-restore
- Owner: bordalix
- Created: 2023-02-12T12:02:20.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-02-21T09:16:27.000Z (almost 2 years ago)
- Last Synced: 2024-11-20T20:41:31.630Z (3 months ago)
- Topics: nostr
- Language: HTML
- Homepage:
- Size: 140 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nostr-restore
This app will restore your events from a nostr-backup file
### App must run locally
Due to browser limitations, you'll have to run this app locally:
- go to https://nostr-restore.pages.dev, save to disk and open html file with your browser
- or get the code from the this repo and open the index.html file with your browser### Import backup file
Browsers don't allow importing JSON files locally, but allow Javascript files.
Older versions of https://nostr-backup.pages.dev exported a JSON file (instead of a Javascript file).
If your backup file already has the `.js` extension, you can skip this part.
If your backup file is a JSON file (nostr-backup`.json`) you need to transform it into a javascript file (nostr-backup`.js`). Don't worry, its easy:
- Copy your `nostr-backup.json` to the root directory of this app
- Open `nostr-backup.json` with a text editor
- Add the following code to the first line: `const data =`
- Save the file as `nostr-backup.js` (note the extension change)
- Now when you open the `index.html` (or whatever name you saved your file) with your browser you should see an indication of how many events were found and a button to start broadcasting### Relays
If you want to use your own list of relays:
- Clone this repo
- Edit `js/relays.js`
- Open `index.html` with a browser