Skip to content

Javascript Library


Include prefs.us Javascript library in your project

    <script src="https://prefs.us/prefs.us.js"></script>


Get the API key ready. All data will be linked to that key. Get as many keys as you need. The method below will either return the existing key or create a new one.

    const apikey = prefs_us.getkey('choosen-key-id', 'choosen-seed-phrase');


Use .using(apikey) method to specify the API key if already have one pre-generated.

    prefs_us.using('abcd...apikey...cd0f8);