Here’s something I’ve been working on to get myself started with the SAFE API. It’s nothing groundbreaking but I thought some of you might find it useful or interesting.
So Safenote is an extension for the Chrome browser. It allows you to write a note for the URL you are currently viewing and save it on Safe. All notes are saved on Safe so using Safenote on another computer allows you to share the notes between them.
Keep in mind that your notes are also saved in the local storage of your browser. Other extensions or webpage can’t access them but someone with an access to your computer could.
Since I didn’t want to distribute it through the Chrome web store you need to load it manually, the steps are explained below. Once unpacked you’ll be able to look at the code and tinker with it if you want.
How to install
Go to safenote.davidmtl.safenet (alpha network) and download the zip file. Extract it and follow these installation steps:
In Chrome, access the extension page by entering this in the url box.
Load the extension by checking the “developer mode” check box and pressing the “Load unpacked extension…” button.
How to use
- To create a note press the Safenote icon on the right of the browser and to open the page that allows to save it on SAFE press the “Save on SAFE” button.
SAVE on Safe page:
- This page will request authorization automatically to the SAFE Launcher when it opens.
- Press SAVE to save the note on Safe.
- Press DELETE to delete the note both locally and on Safe.
- Press “Reset authorization” to redo the authorization step.
- Press “Refresh local changes” if new local changes doesn’t show up in the list.
- Press “Restore from SAFE” to get all safenotes from SAFE and download them locally.
That’s it, feel free to give feedbacks.