jb55 on Nostr: I had this thought but in a different way. Since notedeck apps will be sandboxed, i ...
I had this thought but in a different way. Since notedeck apps will be sandboxed, i wanted to encourage notes as the main way to persist state.
Maybe notes in their raw form are too scary. There could be a struct serializer that automatically serializes/deserializes structs to notes. Could decorate the fields on your data types to include which ones should be indexed (encoded as single-character tags on the note)
Although this does give me ORM vibes which is triggering, but saves the dev from having to think about how to encode their data into notes.
Published at
2025-04-26 12:33:28Event JSON
{
"id": "a7814d084893c59333bd5e0d1505b02e7fa080cbacd8cd5a0a701603fc89f100",
"pubkey": "32e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245",
"created_at": 1745670808,
"kind": 1,
"tags": [
[
"e",
"4c755d287d444f1d559e49b8677ae63e9502fe38312c046e929dd8b98c626442",
"",
"root"
],
[
"p",
"460c25e682fda7832b52d1f22d3d22b3176d972f60dcdc3212ed8c92ef85065c"
]
],
"content": "I had this thought but in a different way. Since notedeck apps will be sandboxed, i wanted to encourage notes as the main way to persist state.\n\nMaybe notes in their raw form are too scary. There could be a struct serializer that automatically serializes/deserializes structs to notes. Could decorate the fields on your data types to include which ones should be indexed (encoded as single-character tags on the note)\n\nAlthough this does give me ORM vibes which is triggering, but saves the dev from having to think about how to encode their data into notes.",
"sig": "a514b754a217a37bd754708e1f148a62aa154f12a518c808999102f5f845eab1cdc99f1be074773376ec0d22526b31d1891290877d8255b67f49145866d10a1d"
}