I was thinking how web apps on safe network could be used without having to copy/create/link the code files. This could be considered similar to, say, a command line app that can take different input to deliver different output.
From messing about with sequences and NRS maps, I can see that I can create a link to a URL with parameters. I was wondering whether these would be exposed to the browser or whether only special parameter (e.g. v=0) are extracted? So, in the example below, could I retrieve ātestā from āvar1ā if I navigated to safe://sequence?
To explain my line of thought, it would be good to be able to load a web app from a starting point, such as a map containing properties. These could then configure the app, point to data sources, etc. This would seem like a neat way to bootstrap a web app with personalised properties, without having to touch a line of code - it could just be an NRS command.
Is this possible/feasible? I canāt remember how the browser used to handle this or whether NRS was even mature enough to test it. It would seem like a neat way to treat web apps as actual apps, rather than just clones/includes, etc.
Sample NRS:
paul@Vader:~$ safe dog safe://sequence --json
[
"safe://sequence",
[
{
"NrsMapContainer": {
"public_name": "sequence",
"xorurl": "safe://hyryygyaudepew9mccw4k37eowiz5t64cwg7inhdgcbu93atack7u3wudyyn7a",
"xorname": [
19,
26,
26,
138,
125,
108,
101,
52,
172,
245,
16,
165,
111,
184,
251,
76,
161,
187,
81,
112,
102,
96,
103,
252,
226,
56,
98,
187,
60,
210,
99,
0
],
"type_tag": 1500,
"version": 0,
"nrs_map": {
"sub_names_map": {},
"default": {
"OtherRdf": {
"created": "2021-03-05T14:59:02Z",
"link": "safe://hyryyyy68crrax3qsp6ourp4q8th57rqdc9ys153w13rzc1buo6chfbxipcnmy?v=0&var1=test",
"modified": "2021-03-05T14:59:02Z"
}
}
},
"data_type": "PublicSequence",
"resolved_from": "safe://sequence"
}
},
{
"PublicSequence": {
"xorurl": "safe://hyryyyy68crrax3qsp6ourp4q8th57rqdc9ys153w13rzc1buo6chfbxipcnmy?v=0&var1=test",
"xorname": [
199,
97,
9,
135,
229,
214,
111,
161,
50,
55,
78,
60,
121,
190,
145,
195,
103,
193,
105,
111,
52,
150,
73,
118,
72,
51,
135,
153,
194,
133,
245,
107
],
"type_tag": 1200,
"version": 0,
"data": [],
"resolved_from": "safe://hyryyyy68crrax3qsp6ourp4q8th57rqdc9ys153w13rzc1buo6chfbxipcnmy?v=0&var1=test"
}
}
]
]