Commits: Basic, functional permission tab when requesting getPubKey. Only allows one time deny. getPubKey and getRelays for sure working after prompt. Changed the prompt to use a query string instead of background script queue. This should prevent any disconnect between the user expecting one thing and getting a different prompt. It is not working using query string and working quite nicely. Finally figured out the secret sauce to only open one prompt at a time. Allow and deny now both work, with the option to remember the request next time. Still tweaking lots of events to try and get the prompts working smoothly Nice rendering for the event query message. Tweaking the migration setup and the tab opening/closing code. When remembering signing events, it is now scoped by event kind, as well! Include extra event information in event signing dialogs. Change confirm buttons to confirm dialog box. Update nostr-tools to 1.2.1 The interface for app permissions looks good. Ready to work on functionality now. Don't show app permissions section unless there are things to show. Fix bug when saving a "Deny". Additional formatting changes to options page for permissions UI. Fine permissions seem to be working nicely! Quick usability fix so that App Permissions section appears on Options page, even when there are no options selected. Bumping build to #5. Preparing for new build release.
Nostore
This is a NIP-07 compatible extension for signing nostr events.
Features
- Login with nostr (
getPublicKey). - Post nostr event (
signEvent). - Encrypted direct messages (
nip04.encryptandnip04.decrypt). - Multiple profiles.
Usage
Click the Nostore extension icon in the Safari toolbar, there should be a default profile with a new, random private key.
Feel free to change the name and edit the key with your personal nostr key. Create additional profiles as desired. Whichever key profile is selected under Profile is the currently "active" profile for nostr events.
Acknowledgements
Thanks to fiatjiaf for envisioning nostr, but also for creating nostr-tools and the nos2x extension, which I referenced liberally when stumped during development of this extension.
Privacy
This extension does not collect any user data, or transmit any data over a network connection. All private key data is sequestered in the extension's separate browser storage.
Development
- Open the project in XCode.
- Open project folder in terminal.
- Run
npm installto install the dependencies. - Run
npm run watchto watch and build the necessary extension files. - Run
npm run watch-tailwindto watch and build the pages with tailwinds CSS. - After every rebuild, execute Run in XCode to deploy the latest changes to Safari.
If you do not see the Nostore extension in your Safari toolbar, you need to activate unsigned extensions and Nostore:
- Safari menu -> Settings -> Advanced -> Show Develop menu in menu bar.
- In Develop menu, select Allow Unsigned Extension.
- Click Extension tab in Settings, activate Nostore.