{"id":48539,"library":"migstr","title":"migstr","description":"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.","status":"active","version":"0.1.2","language":"javascript","source_language":"en","source_url":"https://github.com/patrkris/migstr","tags":["javascript","nostr","migration","migrate","copy","relay"],"install":[{"cmd":"npm install migstr","lang":"bash","label":"npm"},{"cmd":"yarn add migstr","lang":"bash","label":"yarn"},{"cmd":"pnpm add migstr","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"Designed to be used via npx; global install not recommended as it's an early-stage CLI.","wrong":"npm install -g migstr && migstr ...","symbol":"migstr","correct":"npx migstr <pubkey> <relay-url> [<source-relay-2> ... <destination-relay>]"}],"quickstart":{"code":"author=61ba7de10f2617ddd1731af540b2d727285904419641b29dd0193b7121aa874d\nnpx migstr $author wss://relay.damus.io >/tmp/events.ndjson","lang":"bash","description":"Downloads all events from a single relay for a given pubkey and saves them as NDJSON."},"warnings":[{"fix":"Use only one source relay if you want to output to stdout. For multiple sources, ensure the last is the destination.","message":"If more than one relay is specified, the last relay is treated as the destination. Events will be sent to it, not printed.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'0.1.2':33 'automat':53 'beyond':67 'cli':38 'command':47 'copi':75 'current':31 'depend':66 'destin':29,54 'detect':56 'differenti':41 'direct':62 'download':11 'either':19 'event':12 'experiment':37 'extrem':42 'file':60 'interfac':44 'javascript':71 'key':40 'migrat':8,73,74 'migstr':1,2 'multipl':49 'ndjson':23 'node.js':68 'nostr':6,72 'npm':70 'npx':46 'one':14 'output':58 'print':20 'push':25,64 'relay':7,17,30,51,55,63,76 'releas':34 'simpl':5,43 'singl':45 'sourc':50 'support':48 'tool':9,39 'version':32","created_at":"2026-06-07T16:57:10.445153+00:00","updated_at":"2026-06-07T16:57:10.445153+00:00","problems":[{"fix":"Check the relay URL format (e.g., wss://relay.damus.io)","cause":"Relay URL must start with wss:// or ws://","error":"Error: Invalid relay URL"}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/patrkris/migstr#readme","github":"https://github.com/patrkris/migstr","docs":null,"changelog":null,"pypi":null,"npm":"migstr","openapi_spec":null,"status_page":null,"smithery":null,"categories":["storage"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-07","next_check":"2026-09-05","install_tag":null}}