In my case -- for nostr wallet connect, and for a server-side app I built to analyze images that are published to Nostr apps -- the server needs to directly communicate with relays, there is no "user" who could interact with JS....
Discussion
Makes sense! Like you say Rails is great for building the business logic for these cases.