{"_id":"@synonymdev/slashtags-profile","_rev":"28-dd6e4dd06984d7d3f49eb87d9c6c8d52","name":"@synonymdev/slashtags-profile","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0-alpha.0":{"name":"@synonymdev/slashtags-profile","version":"1.0.0-alpha.0","_id":"@synonymdev/slashtags-profile@1.0.0-alpha.0","maintainers":[{"name":"pwltr","email":"philippwalter@pm.me"},{"name":"miguelmedeirosweb","email":"miguel@miguelmedeiros.com.br"},{"name":"rbndg","email":"rbandegi@gmail.com"},{"name":"bitcoinerrorlog","email":"john@synonym.to"},{"name":"jayvdb","email":"jayvdb1@gmail.com"},{"name":"coreyphillips","email":"corey.lyle.phillips@gmail.com"},{"name":"nzh","email":"ar.nazeh@gmail.com"}],"dist":{"shasum":"78cef59024803b9d387f3a0b0820011a44888fc6","tarball":"https://registry.npmjs.org/@synonymdev/slashtags-profile/-/slashtags-profile-1.0.0-alpha.0.tgz","fileCount":8,"integrity":"sha512-oyDuFiw7ESm6x29nEzLrg++3zuUrJBRorQJsU86MEn8l835KWL/jEj5NHtntopgtQuCPC8IKaEiyqQdVo0d0fQ==","signatures":[{"sig":"MEUCIQDxEw/Uma3Y7rikDos0liS/Mw2rYGpSGlQRGc3RJhjCYAIgcVXb/NeCrLS/FjF0o4bqKahm7fQBnLxEL/l1HqTP0R0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9694},"main":"index.js","types":"types/index.d.ts","gitHead":"eaf28c64fa866272ad086b60ab47bdf2afc669c1","scripts":{"lint":"standard --fix","test":"brittle test/* -cov","build":"tsc","fullcheck":"npm run lint && npm run build && npm run test","prepublishOnly":"npm run fullcheck"},"_npmUser":{"name":"nzh","email":"ar.nazeh@gmail.com"},"_npmVersion":"9.5.0","description":"Slashtags Profile helper module.","directories":{},"_nodeVersion":"18.15.0","dependencies":{"b4a":"^1.6.3","@synonymdev/slashtags-url":"^1.0.0-alpha.3","@synonymdev/slashtags-core-data":"^1.0.0-alpha.3"},"_hasShrinkwrap":false,"devDependencies":{"brittle":"^3.2.1","standard":"^17.0.0","typescript":"^5.0.4","@hyperswarm/testnet":"^3.1.1"},"_npmOperationalInternal":{"tmp":"tmp/slashtags-profile_1.0.0-alpha.0_1684321654183_0.29848643918009365","host":"s3://npm-registry-packages"}},"1.0.0-alpha.1":{"name":"@synonymdev/slashtags-profile","version":"1.0.0-alpha.1","_id":"@synonymdev/slashtags-profile@1.0.0-alpha.1","maintainers":[{"name":"pwltr","email":"philippwalter@pm.me"},{"name":"miguelmedeirosweb","email":"miguel@miguelmedeiros.com.br"},{"name":"rbndg","email":"rbandegi@gmail.com"},{"name":"bitcoinerrorlog","email":"john@synonym.to"},{"name":"jayvdb","email":"jayvdb1@gmail.com"},{"name":"coreyphillips","email":"corey.lyle.phillips@gmail.com"},{"name":"nzh","email":"ar.nazeh@gmail.com"}],"dist":{"shasum":"db243f7ede6592aa37bd465db7a52594ae6c9602","tarball":"https://registry.npmjs.org/@synonymdev/slashtags-profile/-/slashtags-profile-1.0.0-alpha.1.tgz","fileCount":10,"integrity":"sha512-tY5UMqGiCht5HihIyGAhW0uaYKuEFmxRbL0RNu6NNcp7uNYylnYIA13koCl9SGiINHNh1YvUrWyRZY7P2bp0ag==","signatures":[{"sig":"MEQCIEdlDUzftoUrl6LHga6/2ACkTZU+tBPeOItOp6OWLjyBAiAp8pbifxlb7eYuW/2QslWAg9tpeNkDV/BFrDfxVoV6RA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12590},"main":"index.js","types":"types/index.d.ts","gitHead":"6beb4a6fa3e5e97f23b080c067fc62320d26147b","scripts":{"lint":"standard --fix","test":"brittle test/* -cov","build":"tsc","fullcheck":"npm run lint && npm run build && npm run test","prepublishOnly":"npm run fullcheck"},"_npmUser":{"name":"nzh","email":"ar.nazeh@gmail.com"},"_npmVersion":"9.5.0","description":"Slashtags Profile helper module.","directories":{},"_nodeVersion":"18.15.0","dependencies":{"ajv":"^8.12.0","b4a":"^1.6.3","@synonymdev/slashtags-url":"^1.0.0-alpha.3","@synonymdev/slashtags-core-data":"^1.0.0-alpha.4"},"_hasShrinkwrap":false,"devDependencies":{"brittle":"^3.2.1","standard":"^17.0.0","typescript":"^5.0.4","@hyperswarm/testnet":"^3.1.1"},"_npmOperationalInternal":{"tmp":"tmp/slashtags-profile_1.0.0-alpha.1_1684905917543_0.471131060101875","host":"s3://npm-registry-packages"}},"1.0.0-alpha.2":{"name":"@synonymdev/slashtags-profile","version":"1.0.0-alpha.2","_id":"@synonymdev/slashtags-profile@1.0.0-alpha.2","maintainers":[{"name":"pwltr","email":"philippwalter@pm.me"},{"name":"miguelmedeirosweb","email":"miguel@miguelmedeiros.com.br"},{"name":"rbndg","email":"rbandegi@gmail.com"},{"name":"bitcoinerrorlog","email":"john@synonym.to"},{"name":"jayvdb","email":"jayvdb1@gmail.com"},{"name":"coreyphillips","email":"corey.lyle.phillips@gmail.com"},{"name":"nzh","email":"ar.nazeh@gmail.com"}],"dist":{"shasum":"b1f92e0c1a1b2a93fe5f9a531badf235bffbac7e","tarball":"https://registry.npmjs.org/@synonymdev/slashtags-profile/-/slashtags-profile-1.0.0-alpha.2.tgz","fileCount":10,"integrity":"sha512-fp34KU0gGMOihWLc/+ARrUsdJ2+Pff09dhnnTAPG31PdCIBZnNeORYoZOTYq4v5P04/+6LxuBi73hzSP/beb3w==","signatures":[{"sig":"MEUCIBXQkb4hTnM/LJ2OPY9NjEXXr3LHeUXNRaD7via0wkcIAiEAw99CoW8wTyXlfIZ0fU/BUoUAV483dFaHLTLSmyxLw9Q=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12450},"main":"index.js","types":"types/index.d.ts","gitHead":"8b8394245eb645552d8da79663bf358497b3fecc","scripts":{"lint":"standard --fix","test":"brittle test/* -cov","build":"tsc","fullcheck":"npm run lint && npm run build && npm run test","prepublishOnly":"npm run fullcheck"},"_npmUser":{"name":"nzh","email":"ar.nazeh@gmail.com"},"_npmVersion":"9.5.0","description":"Slashtags Profile helper module.","directories":{},"_nodeVersion":"18.15.0","dependencies":{"ajv":"^8.12.0","b4a":"^1.6.3","@synonymdev/slashtags-url":"^1.0.0-alpha.3","@synonymdev/slashtags-core-data":"^1.0.0-alpha.5"},"_hasShrinkwrap":false,"devDependencies":{"brittle":"^3.2.1","standard":"^17.0.0","typescript":"^5.0.4","@hyperswarm/testnet":"^3.1.1"},"_npmOperationalInternal":{"tmp":"tmp/slashtags-profile_1.0.0-alpha.2_1685691783427_0.9900462310098495","host":"s3://npm-registry-packages"}},"1.0.0":{"name":"@synonymdev/slashtags-profile","version":"1.0.0","_id":"@synonymdev/slashtags-profile@1.0.0","maintainers":[{"name":"pwltr","email":"philippwalter@pm.me"},{"name":"miguelmedeirosweb","email":"miguel@miguelmedeiros.com.br"},{"name":"rbndg","email":"rbandegi@gmail.com"},{"name":"bitcoinerrorlog","email":"john@synonym.to"},{"name":"jayvdb","email":"jayvdb1@gmail.com"},{"name":"coreyphillips","email":"corey.lyle.phillips@gmail.com"},{"name":"nzh","email":"ar.nazeh@gmail.com"}],"dist":{"shasum":"c9a2e54437a5ef8adf8f56a0eb71edc15b925757","tarball":"https://registry.npmjs.org/@synonymdev/slashtags-profile/-/slashtags-profile-1.0.0.tgz","fileCount":10,"integrity":"sha512-uFaqrT6l5CPo4oDm3acn8M3pX7jYrqqzvsxnBenpwanMEO44SENSy8Xz6M1lXrMvu31Oa+M+SfGMsXrl9461mQ==","signatures":[{"sig":"MEQCIDp5rJ8gLPxIy7PqGD64yE8NkQTJGIloYsX89soCk+eWAiAKkXbiAnuAd3vgaU7gyU40x1hkmil5UZPhcoY1H9mo5w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9502},"main":"index.js","types":"types/index.d.ts","gitHead":"9e93799784324ff5c93c8f7cece83f38cd3509ef","scripts":{"lint":"standard --fix","test":"brittle test/* -cov","build":"tsc","fullcheck":"npm run lint && npm run build && npm run test","prepublishOnly":"npm run fullcheck"},"_npmUser":{"name":"nzh","email":"ar.nazeh@gmail.com"},"_npmVersion":"9.5.0","description":"Slashtags Profile helper module.","directories":{},"_nodeVersion":"18.15.0","dependencies":{"ajv":"^8.12.0","b4a":"^1.6.3","@synonymdev/web-relay":"github:slashtags/web-relay","@synonymdev/slashtags-url":"^1.0.0-alpha.3"},"_hasShrinkwrap":false,"devDependencies":{"brittle":"^3.2.1","standard":"^17.0.0","typescript":"^5.0.4","@types/node":"^20.4.8"},"_npmOperationalInternal":{"tmp":"tmp/slashtags-profile_1.0.0_1693886359500_0.3146140915564477","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@synonymdev/slashtags-profile","version":"1.0.1","_id":"@synonymdev/slashtags-profile@1.0.1","maintainers":[{"name":"pwltr","email":"philippwalter@pm.me"},{"name":"miguelmedeirosweb","email":"miguel@miguelmedeiros.com.br"},{"name":"rbndg","email":"rbandegi@gmail.com"},{"name":"bitcoinerrorlog","email":"john@synonym.to"},{"name":"jayvdb","email":"jayvdb1@gmail.com"},{"name":"coreyphillips","email":"corey.lyle.phillips@gmail.com"},{"name":"nzh","email":"ar.nazeh@gmail.com"}],"dist":{"shasum":"cf5646554faf5e31ff6d6fa2f46caaca332680bd","tarball":"https://registry.npmjs.org/@synonymdev/slashtags-profile/-/slashtags-profile-1.0.1.tgz","fileCount":10,"integrity":"sha512-BgTeKDpuGOoSAmqydkz0dZ6jqdkuU16g4cAsg9gbV56nGWVYdhUVk5K3oaWXlIeLOs78Uu0HUkqvwFHtXQfcdA==","signatures":[{"sig":"MEQCIHUaKkb0dvTXuZMMeMLbOjwqYWAVCf5zrYAN2iyg6pMLAiA+akm3JsiZtzscymaztxciuuaixN8GpBnwH0pRG3tPsw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9482},"main":"index.js","types":"types/index.d.ts","gitHead":"9b1a410c727b71f1f1591903a3f5af7aaa48b4d1","scripts":{"lint":"standard --fix","test":"brittle test/* -cov","build":"tsc","fullcheck":"npm run lint && npm run build && npm run test","prepublishOnly":"npm run fullcheck"},"_npmUser":{"name":"nzh","email":"ar.nazeh@gmail.com"},"_npmVersion":"9.5.0","description":"Slashtags Profile helper module.","directories":{},"_nodeVersion":"18.15.0","dependencies":{"ajv":"^8.12.0","b4a":"^1.6.3","@synonymdev/slashtags-url":"^1.0.0-alpha.3"},"_hasShrinkwrap":false,"devDependencies":{"brittle":"^3.2.1","standard":"^17.0.0","typescript":"^5.0.4","@types/node":"^20.4.8","@synonymdev/web-relay":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/slashtags-profile_1.0.1_1693887015091_0.03603944611925036","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"@synonymdev/slashtags-profile","version":"1.0.2","_id":"@synonymdev/slashtags-profile@1.0.2","maintainers":[{"name":"pwltr","email":"philippwalter@pm.me"},{"name":"miguelmedeirosweb","email":"miguel@miguelmedeiros.com.br"},{"name":"rbndg","email":"rbandegi@gmail.com"},{"name":"bitcoinerrorlog","email":"john@synonym.to"},{"name":"jayvdb","email":"jayvdb1@gmail.com"},{"name":"coreyphillips","email":"corey.lyle.phillips@gmail.com"},{"name":"nzh","email":"ar.nazeh@gmail.com"}],"dist":{"shasum":"0e73bd0d165f1f0f8600a9b337191931d67f5e21","tarball":"https://registry.npmjs.org/@synonymdev/slashtags-profile/-/slashtags-profile-1.0.2.tgz","fileCount":8,"integrity":"sha512-vFkYcozOaBjJljBr6D63iTCdJvj9/S2pfcBQN8weLTlW8WEGuiHbxN5aZw50kTeo/NJ1k7AUhEY/ccJTOHE/QQ==","signatures":[{"sig":"MEYCIQDQePTIv26W+7oGEbUxYd5bv046PYu0W6ME07dU5vTHXAIhAKAJighHq3o+VdTBPihgp0k3jhpyaDu2ArbosqzVo8FR","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10244},"main":"index.js","types":"types/index.d.ts","gitHead":"37585e48dd5ecd5f8459f9a97ec18f285d7ebbb9","scripts":{"lint":"standard --fix","test":"brittle test/* -cov","build":"tsc","fullcheck":"npm run lint && npm run build && npm run test","prepublishOnly":"npm run fullcheck"},"_npmUser":{"name":"rbndg","email":"rbandegi@gmail.com"},"_npmVersion":"9.6.6","description":"Slashtags Profile helper module.","directories":{},"_nodeVersion":"19.3.0","dependencies":{"ajv":"^8.12.0","b4a":"^1.6.3","@synonymdev/slashtags-url":"^1.0.0-alpha.3"},"_hasShrinkwrap":false,"devDependencies":{"brittle":"^3.2.1","standard":"^17.0.0","typescript":"^5.0.4","@types/node":"^20.4.8","@synonymdev/web-relay":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/slashtags-profile_1.0.2_1696563956674_0.7508988741642986","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"@synonymdev/slashtags-profile","version":"2.0.0","_id":"@synonymdev/slashtags-profile@2.0.0","maintainers":[{"name":"dzdidi_restored","email":"deniszalessky@gmail.com"},{"name":"pwltr","email":"philippwalter@pm.me"},{"name":"miguelmedeirosweb","email":"miguel@miguelmedeiros.com.br"},{"name":"rbndg","email":"rbandegi@gmail.com"},{"name":"bitcoinerrorlog","email":"john@synonym.to"},{"name":"jayvdb","email":"jayvdb1@gmail.com"},{"name":"coreyphillips","email":"corey.lyle.phillips@gmail.com"},{"name":"nzh","email":"ar.nazeh@gmail.com"}],"dist":{"shasum":"0efbd1925ba37172e78716a6f923a3e749774b1c","tarball":"https://registry.npmjs.org/@synonymdev/slashtags-profile/-/slashtags-profile-2.0.0.tgz","fileCount":8,"integrity":"sha512-unL/iDKvcnPBVWl4uF3Hi1qTw3RGnG1nxt24CQiHVb/xWgUWnbex88wyUJoDG/4GHOiiLVTKL6pj5GUN/hhX8A==","signatures":[{"sig":"MEYCIQDqvGHD+wYhedhCSKttiEiw5S/Kt91bwPEG4R8JrMcLbgIhAOh3mD83SicY6EIh/NVwQpS3YdU64w9y1Gs0/8tEhEOS","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10317},"main":"index.js","types":"types/index.d.ts","gitHead":"08bc2a73d7ab72112a4c22879220c83b1af04db0","scripts":{"lint":"standard --fix","test":"brittle test/* -cov","build":"tsc","fullcheck":"npm run lint && npm run build && npm run test","prepublishOnly":"npm run fullcheck"},"_npmUser":{"name":"nzh","email":"ar.nazeh@gmail.com"},"_npmVersion":"10.2.4","description":"Slashtags Profile helper module.","directories":{},"_nodeVersion":"20.11.0","dependencies":{"ajv":"^8.12.0","@synonymdev/slashtags-url":"^1.0.0-alpha.3"},"_hasShrinkwrap":false,"devDependencies":{"brittle":"^3.2.1","standard":"^17.0.0","typescript":"^5.0.4","@types/node":"^20.4.8","@synonymdev/web-relay":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/slashtags-profile_2.0.0_1722010810040_0.6366100689025436","host":"s3://npm-registry-packages"}}},"time":{"created":"2023-05-17T11:07:34.182Z","modified":"2026-09-07T09:46:37.500Z","1.0.0-alpha.0":"2023-05-17T11:07:34.365Z","1.0.0-alpha.1":"2023-05-24T05:25:17.699Z","1.0.0-alpha.2":"2023-06-02T07:43:03.604Z","1.0.0":"2023-09-05T03:59:19.742Z","1.0.1":"2023-09-05T04:10:15.248Z","1.0.2":"2023-10-06T03:45:56.880Z","2.0.0":"2024-07-26T16:20:10.262Z"},"description":"Slashtags Profile helper module.","maintainers":[{"email":"pavel@synonym.to","name":"thisispav"},{"email":"john@synonym.to","name":"bitcoinerrorlog"},{"email":"corey.lyle.phillips@gmail.com","name":"coreyphillips"},{"email":"philippwalter@pm.me","name":"pwltr"},{"email":"deniszalessky@gmail.com","name":"dzdidi_restored"},{"email":"octrif@gmail.com","name":"ovitrif"},{"email":"crequena2@gmail.com","name":"shacollision"},{"email":"jamesbrowning91@gmail.com","name":"catch-21"},{"email":"oier@synonym.to","name":"tipogi"},{"email":"andrei@synonym.to","name":"andrei-synonym"},{"email":"tomos@synonym.to","name":"86667-tomos"},{"email":"jayvdb1@gmail.com","name":"jayvdb"},{"email":"sevi_buehler@hotmail.com","name":"sebubu"}],"readme":"# slashtags-profile\n\nSlashtags Profile helper module.\n\n## Install\n\n```bash\nnpm install @synonymdev/slashtags-profile\n```\n\n## Usage\n\nInitialize\n\n```js\nconst { Client } = require('@synonymdev/web-relay')\nconst SlashtagsProfile = require('@synonymdev/slashtags-profile')\n\nconst client = new Client({ storage: \"path/to/storage\", relay: address })\nconst writer = new SlashtagsProfile(client)\n\nconst profile = { name: 'foo' }\n\nawait writer.put(profile)\n\nconst url = await writer.createURL()\n```\n\nResolve profile as a reader \n\n```js\nconst { Client } = require('@synonymdev/web-relay')\nconst SlashtagsProfile = require('@synonymdev/slashtags-profile')\n\nconst client = new Client({ storage: \"path/to/storage \"})\nconst reader = new SlashtagsProfile(client)\n\nconst resolved = await reader.get(url) // URL from writer side\n// {name: 'foo'}\n```\n\n## API\n\n#### `const profile = new SlashtagsProfile(WebRelayClient)`\n\nCreate a new SlashtagsProfile instance.\n\n- `WebRelayClient` [slashtags-web-relay](https://github.com/slashtags/web-relay) instance.\n\n#### `const url = await profile.createURL()`\n\nCreates a sharable `url` to allow remote readers to read this profile.\n\n#### `await profile.close()`\n\nCloses the underlying web relay client.\n\n#### `await profile.put(profile)`\n\nPuts a new profile value. `profile` param should be an object following its type definition.\n\n#### `await profile.del()`\n\nDeletes the value from the underlying hyperdrive.\n\n####  `await profile.get([url])`\n\nRead a local profile if no `url` is passed, or a remote one if `url` is passed.\n\n#### `await profile.subscribe(url, onupdate)`\n\nWatch updates to a remote file, and call `onupdate(profile)` function with current profile.\n","readmeFilename":"README.md"}