mirror of
https://seed.radicle.dev/rad:z3trNYnLWS11cJWC6BbxDs5niGo82.git
synced 2026-10-18 19:10:39 +08:00
Building on the work that Lorenz Leutgeb did in patch
rad:z3trNYnLWS11cJWC6BbxDs5niGo82/patch/19ba16634fbde97156255ed97069d0aa3ab2bf12,
the URI scheme is brought to a final RIP document, with full ABNF and Nearley
grammars as well as examples, and a couple of scripts to extract and test those
grammars against those examples.
Compared to the URL scheme in RIP 3, this RIP brings a subtly different URL form,
while also supporting the RIP 3 scheme (now considered legacy). In short, these
two forms are supported by this RIP:
- rad://{rid}/{nid} (considered legacy)
- rad://{rad-auth}/{rid}[/{namespace}][/{resource-type-and-identifier}]
(rad-auth is the authority part, which can take the form of {nid}@{host-and-port}
or parts thereof)
This works, because the {rid} and the {nid} are distinguishable, as a {nid} always
starts with z6Mk, while a {rid} does start with a z, but never with z6Mk, and they
have different lengths (a {rid} is always 28 or 29 characters long, which a {nid}
is always 48 characters long).
Co-authored-by: Fintan Halpenny <fintan.halpenn@gmail.com>
Co-authored-by: Lorenz Leutgeb <lorenz.leutgeb@radicle.dev>
88 lines
3.0 KiB
JSON
88 lines
3.0 KiB
JSON
{
|
|
"name": "nearley-wrapper",
|
|
"version": "2.20.1",
|
|
"lockfileVersion": 3,
|
|
"requires": true,
|
|
"packages": {
|
|
"": {
|
|
"name": "nearley-wrapper",
|
|
"version": "2.20.1",
|
|
"dependencies": {
|
|
"nearley": "^2.20.1"
|
|
},
|
|
"bin": {
|
|
"nearley-test": "node_modules/.bin/nearley-test",
|
|
"nearleyc": "node_modules/.bin/nearleyc"
|
|
}
|
|
},
|
|
"node_modules/commander": {
|
|
"version": "2.20.3",
|
|
"resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz",
|
|
"integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==",
|
|
"license": "MIT"
|
|
},
|
|
"node_modules/discontinuous-range": {
|
|
"version": "1.0.0",
|
|
"resolved": "https://registry.npmjs.org/discontinuous-range/-/discontinuous-range-1.0.0.tgz",
|
|
"integrity": "sha512-c68LpLbO+7kP/b1Hr1qs8/BJ09F5khZGTxqxZuhzxpmwJKOgRFHJWIb9/KmqnqHhLdO55aOxFH/EGBvUQbL/RQ==",
|
|
"license": "MIT"
|
|
},
|
|
"node_modules/moo": {
|
|
"version": "0.5.3",
|
|
"resolved": "https://registry.npmjs.org/moo/-/moo-0.5.3.tgz",
|
|
"integrity": "sha512-m2fmM2dDm7GZQsY7KK2cme8agi+AAljILjQnof7p1ZMDe6dQ4bdnSMx0cPppudoeNv5hEFQirN6u+O4fDE0IWA==",
|
|
"license": "BSD-3-Clause"
|
|
},
|
|
"node_modules/nearley": {
|
|
"version": "2.20.1",
|
|
"resolved": "https://registry.npmjs.org/nearley/-/nearley-2.20.1.tgz",
|
|
"integrity": "sha512-+Mc8UaAebFzgV+KpI5n7DasuuQCHA89dmwm7JXw3TV43ukfNQ9DnBH3Mdb2g/I4Fdxc26pwimBWvjIw0UAILSQ==",
|
|
"license": "MIT",
|
|
"dependencies": {
|
|
"commander": "^2.19.0",
|
|
"moo": "^0.5.0",
|
|
"railroad-diagrams": "^1.0.0",
|
|
"randexp": "0.4.6"
|
|
},
|
|
"bin": {
|
|
"nearley-railroad": "bin/nearley-railroad.js",
|
|
"nearley-test": "bin/nearley-test.js",
|
|
"nearley-unparse": "bin/nearley-unparse.js",
|
|
"nearleyc": "bin/nearleyc.js"
|
|
},
|
|
"funding": {
|
|
"type": "individual",
|
|
"url": "https://nearley.js.org/#give-to-nearley"
|
|
}
|
|
},
|
|
"node_modules/railroad-diagrams": {
|
|
"version": "1.0.0",
|
|
"resolved": "https://registry.npmjs.org/railroad-diagrams/-/railroad-diagrams-1.0.0.tgz",
|
|
"integrity": "sha512-cz93DjNeLY0idrCNOH6PviZGRN9GJhsdm9hpn1YCS879fj4W+x5IFJhhkRZcwVgMmFF7R82UA/7Oh+R8lLZg6A==",
|
|
"license": "CC0-1.0"
|
|
},
|
|
"node_modules/randexp": {
|
|
"version": "0.4.6",
|
|
"resolved": "https://registry.npmjs.org/randexp/-/randexp-0.4.6.tgz",
|
|
"integrity": "sha512-80WNmd9DA0tmZrw9qQa62GPPWfuXJknrmVmLcxvq4uZBdYqb1wYoKTmnlGUchvVWe0XiLupYkBoXVOxz3C8DYQ==",
|
|
"license": "MIT",
|
|
"dependencies": {
|
|
"discontinuous-range": "1.0.0",
|
|
"ret": "~0.1.10"
|
|
},
|
|
"engines": {
|
|
"node": ">=0.12"
|
|
}
|
|
},
|
|
"node_modules/ret": {
|
|
"version": "0.1.15",
|
|
"resolved": "https://registry.npmjs.org/ret/-/ret-0.1.15.tgz",
|
|
"integrity": "sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==",
|
|
"license": "MIT",
|
|
"engines": {
|
|
"node": ">=0.12"
|
|
}
|
|
}
|
|
}
|
|
}
|