Look how it is used in deweb-home and/or deweb-uploader to create coherent and reusable code. Use this code in frontends