Both choices have their pros and cons. First choice gives me higher confidence, customization and know-how but it could be very time consuming.
While the latter choice may save me a lot of time, but i don't feel comfortable taking someone GitHub repo and using it as base for my SaaS. My main worry is that it may take me even longer in the long term to understand that code and maintain/extend it.
How have you tackled the above situation ?