calvadev⚡️ on Nostr: Finally wrapping up on the Great Refactor of the Shopstr codebase. Not much ...
Finally wrapping up on the Great Refactor of the
Shopstr (nprofile…0uz8) codebase. Not much functional change apart from more efficient event fetching, so now everything can be fetched at once and displayed up front rather than requiring shoppers to manually "load more" to see older listings, including their own. Biggest thing was abstracting the signer checks for NIP-07, NIP-46, and encrypted nsecs, so implementing new Nostr functionality just requires dropping in a signer object and the respective signing calls are handled on the fly. Passphrase inputs for unencrypting locally stored nsecs are now also capable of being remembered across an existing session, removing the need for constant inputting at each page route.
https://github.com/shopstr-eng/shopstr/commit/d1b726866740b119547632e9c1011812ec780e92Still a few minor improvements to add here and there, but generally able to focus more on some new merchant tooling and discovery/trust mechanisms! Be on the lookout... 👀
#shopfreely #SovEng 🫡🏴☠️
Published at
2025-03-23 17:15:04Event JSON
{
"id": "42765b6b84524872fc82a849c18505db27f531291a8e865d50f939c1f8923031",
"pubkey": "d36e8083fa7b36daee646cb8b3f99feaa3d89e5a396508741f003e21ac0b6bec",
"created_at": 1742750104,
"kind": 1,
"tags": [
[
"p",
"a37118a4888e02d28e8767c08caaf73b49abdac391ad7ff18a304891e416dc33",
"",
"mention"
],
[
"t",
"shopfreely"
],
[
"t",
"SovEng"
],
[
"t",
"soveng"
],
[
"r",
"https://github.com/shopstr-eng/shopstr/commit/d1b726866740b119547632e9c1011812ec780e92"
]
],
"content": "Finally wrapping up on the Great Refactor of the nostr:nprofile1qqs2xugc5jyguqkj36rk0syv4tmnkjdtmtperttl7x9rqjy3ustdcvcppemhxue69uhkummn9ekx7mp0qy2hwumn8ghj7un9d3shjtnyv9kh2uewd9hj7qg6waehxw309aek2mnyd96zumn0wdnxcctjv5hxxmmd9uxa0uz8 codebase. Not much functional change apart from more efficient event fetching, so now everything can be fetched at once and displayed up front rather than requiring shoppers to manually \"load more\" to see older listings, including their own. Biggest thing was abstracting the signer checks for NIP-07, NIP-46, and encrypted nsecs, so implementing new Nostr functionality just requires dropping in a signer object and the respective signing calls are handled on the fly. Passphrase inputs for unencrypting locally stored nsecs are now also capable of being remembered across an existing session, removing the need for constant inputting at each page route.\n\nhttps://github.com/shopstr-eng/shopstr/commit/d1b726866740b119547632e9c1011812ec780e92\n\nStill a few minor improvements to add here and there, but generally able to focus more on some new merchant tooling and discovery/trust mechanisms! Be on the lookout... 👀\n\n#shopfreely #SovEng 🫡🏴☠️",
"sig": "7e2995e619f0d18a93c6d773ae1647e86bfe607c1d7f08057005604372de519e5e6b90e78b7c2935d0b1741cfede678445bd7cf3c07771445ac6fc3e658ea3f2"
}