Well it depends
If you want to earn something from it or not .
If not go definitely for OpenSource 🤩.
Is there a way to earn and develop it as an opensource at the same time?
You can always ask people to support you through any monetary services like Patreon etc...
Also you can add some paid services in your project which may require users to pay some amount monthly/yearly etc.
Great ideas! thanks for your answers.
Just to add an example, Wallabag is a open-source self hosted solution but you can pay to have an account hosted by the developper (wallabag.it). This is a very conveniant solution for people who don't want to create/manage a server. For this product, online paid version is the same as free self-hosted.
Thanks for this example
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.