gzh on Nostr: Wonder if there is a syntax invented somewhere for the frontend to declare what ...
Wonder if there is a syntax invented somewhere for the frontend to declare what content is required to be loaded in a batch from a hierarchical data structure stored at backend. To include various logic, conditions, traversal of data structures, defined by client. Of course backend could run a sort of script sent from client, but it would be better to have a non-Turing complete description for that. Then relays could implement this batch loading feature even for non-trusted clients, while not having to keep in mind the design of the client…
Published at
2023-01-03 23:33:07Event JSON
{
"id": "9f953f73b6fdedc495513698a6af690de7731f4c493d8e726aa0918760347916",
"pubkey": "ab451528a3768fd81984986855b78c4faf40e5e7cf18873ac3c0ad861276fdf5",
"created_at": 1672788787,
"kind": 1,
"tags": [
[
"e",
"70b6c57aaf74733ea43a069b6afa04d6a1a5c5e9569d6be16bff8df9ed67fe19"
],
[
"p",
"32e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245"
]
],
"content": "Wonder if there is a syntax invented somewhere for the frontend to declare what content is required to be loaded in a batch from a hierarchical data structure stored at backend. To include various logic, conditions, traversal of data structures, defined by client. Of course backend could run a sort of script sent from client, but it would be better to have a non-Turing complete description for that. Then relays could implement this batch loading feature even for non-trusted clients, while not having to keep in mind the design of the client…",
"sig": "648d66a22ce7bf4002997b27784238565bc322632149ae4679fdf8f8a90a81337f0dc60670dce432249f9e2d94827c877c43404909f080bbcd0bd25ace30ef02"
}