Maybe try these, i am not a developer so i don't know, but people use it https://github.com/nostr-dev-kit/ndk https://github.com/nbd-wtf/nostr-tools
Yes, it will be easier to use those libraries to start nostr project instead of writing all the things from scratch 👍