For those who are looking for a good screen time monitoring and app usage limiting app, I just found this app Regain which is working perfectly fine. Its not open source but works perfectly fine without internet access and no in app purchases required.