franzap on Nostr: I have a specific requirement for zap.store that no relay provides out of the box, ...
I have a specific requirement for zap.store that no relay provides out of the box, custom indexing multiple fields for NIP-50 full-text search (and rejecting certain event kinds).
I thought of customizing the fiatjaf golang relay framework but didn't want to learn new tooling just for this.
Gzuuus (npub1gzu…a5ds) pointed me at Bun.sh which is a powerful JS toolkit with built-in websockets and sqlite, and I basically got a relay implemented in under a day... very cool.
This will eventually index all software releases on zap.store, and I'm thinking of making this same server implement
hzrd149 (npub1ye5…knpr)-Blossom, keeping copies of all the indexed artifacts.
#zapstore
Published at
2024-03-19 22:01:01Event JSON
{
"id": "e1e61be35fe5ef3a0e502a9cb3d8b34d2e84948b5e30baf9a59c881d94ce083a",
"pubkey": "726a1e261cc6474674e8285e3951b3bb139be9a773d1acf49dc868db861a1c11",
"created_at": 1710885661,
"kind": 1,
"tags": [
[
"t",
"zapstore"
],
[
"p",
"40b9c85fffeafc1cadf8c30a4e5c88660ff6e4971a0dc723d5ab674b5e61b451",
"",
"mention"
],
[
"p",
"266815e0c9210dfa324c6cba3573b14bee49da4209a9456f9484e5106cd408a5",
"",
"mention"
]
],
"content": "I have a specific requirement for zap.store that no relay provides out of the box, custom indexing multiple fields for NIP-50 full-text search (and rejecting certain event kinds).\n\nI thought of customizing the fiatjaf golang relay framework but didn't want to learn new tooling just for this.\n\n nostr:npub1gzuushllat7pet0ccv9yuhygvc8ldeyhrgxuwg744dn5khnpk3gs3ea5ds pointed me at Bun.sh which is a powerful JS toolkit with built-in websockets and sqlite, and I basically got a relay implemented in under a day... very cool.\n\nThis will eventually index all software releases on zap.store, and I'm thinking of making this same server implement nostr:npub1ye5ptcxfyyxl5vjvdjar2ua3f0hynkjzpx552mu5snj3qmx5pzjscpknpr-Blossom, keeping copies of all the indexed artifacts.\n\n#zapstore\n\nhttps://image.nostr.build/62251418d5885c062b2ae120ee3092a66c47f5757bc955ff56ddc83bd029f50f.png\n\n",
"sig": "b22be160dd6e3c2e45280058f0a99ff3cf3d39acd8066cf28cac008684b37669d5620ecab42dd9dc06c099197e2452cb8c5b93d2fd4efd73350bd3dfee173dd6"
}