Registry / storage / migstr

migstr

JSON →
library0.1.2jsnpmunverified

migstr is a simple Nostr relay migration tool that downloads events from one or more relays and either prints them as NDJSON or pushes them to a destination relay. Current version 0.1.2, released as an experimental CLI tool. Key differentiators: extremely simple interface (single npx command), supports multiple source relays with automatic destination relay detection, and output to file or direct relay push. No dependencies beyond Node.js and npm.

npm install migstr
INSTALL
IMPORT
SIG · MIGSTR
M
migstr
storagejavascriptv0.1.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

migstr
npx migstr <pubkey> <relay-url> [<source-relay-2> ... <destination-relay>]
npm install -g migstr && migstr ...
Designed to be used via npx; global install not recommended as it's an early-stage CLI.

Downloads all events from a single relay for a given pubkey and saves them as NDJSON.

author=61ba7de10f2617ddd1731af540b2d727285904419641b29dd0193b7121aa874d npx migstr $author wss://relay.damus.io >/tmp/events.ndjson
Debug
Known issues
gotchaIf more than one relay is specified, the last relay is treated as the destination. Events will be sent to it, not printed.
fix
Use only one source relay if you want to output to stdout. For multiple sources, ensure the last is the destination.
affects: all
Errors
Common errors & fixes
Error: Invalid relay URL
Relay URL must start with wss:// or ws://
fix
Check the relay URL format (e.g., wss://relay.damus.io)
Upgrade
Version history
0.1.2latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
23 hits · last 30 days
node
22
OpenAI (training)
1
Resources
packagemigstr
migstr — npm install migstr · libregistry