After experimenting with NIP-47 I believe a protocol-based 'nostr API' is a viable alternative to the platform-based REST API. Once developers realize this, the rest will follow.