How to connect Frontend and Frappe - ERPNext through the endpoints

Hi, i want to connect a Frontend framework like React, Angular or Vue trought frappe - erpnext endpoints, so, i don’t want that the frontrend framework be a dependency of my actual site, i just need it be a extension. how can i do that?

check this if it helps Best way to connect a Angular App with ERPNext - #15 by revant_one