{"_id":"@dashevo/dapi-db-feedstore","_rev":"18-dbbe78272fe45ccbb14cffc82caea9a1","name":"@dashevo/dapi-db-feedstore","dist-tags":{"latest":"1.4.2"},"versions":{"1.4.0":{"name":"@dashevo/dapi-db-feedstore","version":"1.4.0","author":{"name":"Haad"},"license":"MIT","_id":"@dashevo/dapi-db-feedstore@1.4.0","maintainers":[{"name":"alex-werner","email":"alex@werner.fr"},{"name":"andyfreer","email":"andy@dash.org"},{"name":"antouhou","email":"antouhou@gmail.com"},{"name":"cofresi","email":"cofresi@dash.org"},{"name":"dreyacosta","email":"david.rey.acosta@gmail.com"},{"name":"kamuela","email":"kamuela.franco@gmail.com"},{"name":"nmarley","email":"nathan.marley@gmail.com"},{"name":"pierrevr","email":"pierre@dash.org"},{"name":"seigler","email":"joshua@seigler.net"},{"name":"shumkov","email":"ivan@shumkov.ru"},{"name":"snogcel","email":"ledniknoj@gmail.com"}],"dist":{"shasum":"db20209f550cce55e31c03e5174fec576df5a3f8","tarball":"https://registry.npmjs.org/@dashevo/dapi-db-feedstore/-/dapi-db-feedstore-1.4.0.tgz","fileCount":7,"integrity":"sha512-KZoqtlRPvZABHKA9pgZI98X5G74Kts2HetJzjsumc/YuyCzFqIFdU1bGw1PCgr5UbRCaX+Kpg91Z2IoFEoWD+g==","signatures":[{"sig":"MEUCIGcOg12rKCjdNv9cZevmY5kqAwN0+vg+Z7S2OrJwWjqwAiEAz6RXakNFUGcnBRcAAzJ2/wi6JR+kvg+G9y3RUQFJtU4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4760,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbHabzCRA9TVsSAnZWagAAQ9EP/jykQP86iulLDRrV//mu\nNk6MXC/mG1z5z6XgP2uyPV3oJdUqAFmHhjDseCqX+qG1AEoDeOFt4ALxU0V3\nHAEQsvrlhHVaSi4xB2VPtjbs3tbbam8eNUCR9xJHyl85t3j1eg+GG3sJ+V3L\nBmABbZfC5cada4E06CYgDzpT5cBU1B6csBmYYAW7dWxA822NdgcfOaiF4XUk\n4CHLc3xaeXLeu4r6JXXRLuj1WoaGQ9n+hd+1gikwMC8kojr/WjjTPWspZ7Wz\nnlYd/Yp4ZoSGSEuQUdPaxTpROfrD2iQYjobmBLtpt6JGTChsGmHNT1BJA9LQ\nyl0vedANA9gObtDhmchCoC1PaUr67VfbAIhAzmReus+h7VblwjoD2OlAc8Lo\n88d2ItIqULewiUhjK7sV41eNgLwNFGPrh2Mns49jNE5OpQV4ib83SxKplmXZ\nvni7kRpKTHrOfrzXJJuaZGEkcknSGi8U4Zv1m5JjVhzDU+W2acb3A7zCCYFy\nCkYfrHNyXwA3iKTLGXEnfM+4j/d5lAsD/pEqoxTdYPmNrPWfp9cy6gJLrQEf\nWr/WgSezC3bGywLsJcErX5gfg0orz+f4qIZaAdzKmf83x/4qIdqizduCzTgL\nAfVfAwpmGEHE8/FoHGck6KgS+7n2IjmSAYhZJu+ugCToRmxzVomr3wATQc8w\nYnfv\r\n=gB3T\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/FeedStore.js","gitHead":"1bacaa6dd46e7dc924057bc74a890f6cf00ab629","scripts":{"lint":"eslint .","lint:fix":"eslint . --fix"},"_npmUser":{"name":"cofresi","email":"cofresi@dash.org"},"_npmVersion":"5.6.0","description":"Feed store for dapi-db","directories":{},"_nodeVersion":"9.5.0","dependencies":{"@dashevo/dapi-db-eventstore":"~1.4.1"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^4.19.1","eslint-plugin-import":"^2.12.0","eslint-config-airbnb-base":"^12.1.0"},"_npmOperationalInternal":{"tmp":"tmp/dapi-db-feedstore_1.4.0_1528669939049_0.33683961175461863","host":"s3://npm-registry-packages"}},"1.4.1":{"name":"@dashevo/dapi-db-feedstore","version":"1.4.1","author":{"name":"Haad"},"license":"MIT","_id":"@dashevo/dapi-db-feedstore@1.4.1","maintainers":[{"name":"alex-werner","email":"alex@werner.fr"},{"name":"andyfreer","email":"andy@dash.org"},{"name":"antouhou","email":"antouhou@gmail.com"},{"name":"cofresi","email":"cofresi@dash.org"},{"name":"dreyacosta","email":"david.rey.acosta@gmail.com"},{"name":"kamuela","email":"kamuela.franco@gmail.com"},{"name":"nmarley","email":"nathan.marley@gmail.com"},{"name":"pierrevr","email":"pierre@dash.org"},{"name":"seigler","email":"joshua@seigler.net"},{"name":"shumkov","email":"ivan@shumkov.ru"},{"name":"snogcel","email":"ledniknoj@gmail.com"}],"dist":{"shasum":"c49b3b86b35d4b99a39ec1dc7841e76c7f4a61f7","tarball":"https://registry.npmjs.org/@dashevo/dapi-db-feedstore/-/dapi-db-feedstore-1.4.1.tgz","fileCount":7,"integrity":"sha512-ujHQKAuO1OFyvHdjb9IcmUbReaYxTk4KE4NvDR9d1B6WDsxXxgCZZP6gHeBUd266QnLkSTlHHVHagLzYmgLwaA==","signatures":[{"sig":"MEUCIG9Ss9vPD3IyaWjTv1GVFV2UP0M97epyYAWScXYfs/9GAiEAtSfJ54j4+pWnYpFNldRAuvk6L/0yS94ozEwry7ctgp8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4760,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbHacCCRA9TVsSAnZWagAAk48QAJzf03J1qMqJltSWF7UP\nyPU52C8+Om2KTDLehC7M2m6g4ghsrecjyhsC6BabCmBPoJoQN32lbxmm1nol\n9+k89a01O3CNB7qXmIDLfrcE3tENcUia/E17yZHPcriTeIY/hfjPqUJg4jMK\noN/6acqzCCs3JfwcXNfHtEi44+zu0rUI9a3lYeChUUg8aQsjCzjImsa1XhXp\nf33t953o/8C5D+C1yr/FwyxFFCpf0nJWbcc07Df/9yauoQgm8n385efoyHQY\netgpNf0sbSpAT2pVHAfikkFIk8jBIH0AFZ7dtf7AagQ9LcoIPBqCaIgRo1sZ\nOL9oc/M/W08i2gKEdTqTozpXW5nyTor3j/J0XTDOTvLTcYJ/9z+11DvvFmTq\ndqt94f6EP1s3dm5duFx/yJtEwO211cu131KhoEQ1xSIe6pjZUYRYwAH9lzuz\nr49SWcaGn1wSFNioRzabEndC5ubmFu38lJvbbT4B18DCM3pzEulLiLS0QCd2\nhWvRkp/CZn0Lmm+wwytjSH0f2r7Nn2E58i5tdbCfWKtF93YheA/ONd4VqvhK\nDn12xhzNozD8tb/oE9MeQuY4QpCrlSdr7Xshx3kzen4VDn2PQzgwa0R0pYrc\nNd+NS5PHRiZduTy7zJ0SsLWzgZ3AVj3IrXyIyqpPR4IbJ3+a24/uweUvPeyx\nU6iQ\r\n=WQHc\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/FeedStore.js","gitHead":"759e5a3255bef32bb6277408605d244370c91586","scripts":{"lint":"eslint .","lint:fix":"eslint . --fix"},"_npmUser":{"name":"cofresi","email":"cofresi@dash.org"},"_npmVersion":"5.6.0","description":"Feed store for dapi-db","directories":{},"_nodeVersion":"9.5.0","dependencies":{"@dashevo/dapi-db-eventstore":"~1.4.1"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^4.19.1","eslint-plugin-import":"^2.12.0","eslint-config-airbnb-base":"^12.1.0"},"_npmOperationalInternal":{"tmp":"tmp/dapi-db-feedstore_1.4.1_1528669953866_0.6725265046956408","host":"s3://npm-registry-packages"}},"1.4.2":{"name":"@dashevo/dapi-db-feedstore","version":"1.4.2","author":{"name":"Haad"},"license":"MIT","_id":"@dashevo/dapi-db-feedstore@1.4.2","maintainers":[{"name":"alex-werner","email":"alex@werner.fr"},{"name":"andyfreer","email":"andy@dash.org"},{"name":"antouhou","email":"antouhou@gmail.com"},{"name":"cofresi","email":"cofresi@dash.org"},{"name":"dreyacosta","email":"david.rey.acosta@gmail.com"},{"name":"evodeploy","email":"evodeploy@blackcarrot.be"},{"name":"kamuela","email":"kamuela.franco@gmail.com"},{"name":"nmarley","email":"nathan.marley@gmail.com"},{"name":"pierrevr","email":"pierre@dash.org"},{"name":"seigler","email":"joshua@seigler.net"},{"name":"shumkov","email":"ivan@shumkov.ru"},{"name":"snogcel","email":"ledniknoj@gmail.com"}],"dist":{"shasum":"033460d1eb942340184ad8048df9d39e32093f33","tarball":"https://registry.npmjs.org/@dashevo/dapi-db-feedstore/-/dapi-db-feedstore-1.4.2.tgz","fileCount":7,"integrity":"sha512-pHhrIwSM9NNJk4XITcAhrTTVuXepegUKQJy4rHM9yAa8c+EXAcp7f6Zq5eH/dPR6B4aPLeJ4+RHPewRPmKjhaw==","signatures":[{"sig":"MEUCIFlsCd+owfok3LxNGvtlum3IrwDX+xFUM75G0Z/F1ZcrAiEA1wujgxsiFr4ALUa1fIaAJ+/m+PdcrSezd2VYFYZJKfo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4907,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb55ivCRA9TVsSAnZWagAA7fUQAJpWr1zECoa9oTmTbXfa\noWqz3zD3p7Ng3g5b+b+bGIrDD80qRyI/p3nQP0m6SRd7WGWwxyCY7uQvqenz\noihj+U5+urahIWEdntAYo46+cOO9xPyu6Z1fuTNN823jcyJ+BreScepe0ovX\nbfH7B4CBX2vF1te4BZlFToptCiSS3vrbSKz9yDqXcXUZwCNupmBAf1LcNBA5\ncW5m4CLTHQPfCpBp2B13el6bn+P6dqo2zclfEMaecChm5VW1HSqZfJIoq7fr\n6sOWuOC+4+qisvwsp3sxrkFUhYTOB0Gmd46kbmJ5r+oXa02JP2aRjG5CElpA\nJfoNszcRUhdLHawDwi6HDQ3vMSRFDMnYHYl3E/QNf3n5H5WshgNMD7i5MWWc\neI7dawzN0uzlF92g/K0t+V37olNxw3OzPk/eEC1DH3GZTr1b6pNuwdXsXwW8\ncyzOOC5M/nfPSf1+rj2+noSvmWqFlUToDMu9Jn4hEWV5+dfuhSAGTI+W/D2o\nGpm0fBeaQ6QSgUCNFkSSoAMZrO2eC+mITDVQydF4bthYoE5TECFn93h7i/Kj\nMbdWVZmQLu11ripmT0ZHa490J/aTnDm0liylrzUO9AUEjS9JKkGNP3T9MzPd\nkfkrlGyxn6vu40/a+Tt65d1pYTClwjuPvz/AtZJLX2h06p/Xsd0z2xVgyudD\nTC0P\r\n=T2S+\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/FeedStore.js","gitHead":"14a2b315729a61a7780164896aed287993e1ff70","scripts":{"lint":"eslint .","lint:fix":"eslint . --fix"},"_npmUser":{"name":"cofresi","email":"cofresi@dash.org"},"_npmVersion":"6.4.1","description":"Feed store for dapi-db","directories":{},"_nodeVersion":"8.9.3","dependencies":{"@dashevo/dapi-db-eventstore":"~1.4.2"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^4.19.1","eslint-plugin-import":"^2.12.0","eslint-config-airbnb-base":"^12.1.0"},"_npmOperationalInternal":{"tmp":"tmp/dapi-db-feedstore_1.4.2_1541904558604_0.47697804508270036","host":"s3://npm-registry-packages"}}},"time":{"created":"2018-06-10T22:32:18.844Z","modified":"2026-01-20T16:36:18.576Z","1.4.0":"2018-06-10T22:32:19.100Z","1.4.1":"2018-06-10T22:32:33.935Z","1.4.2":"2018-11-11T02:49:18.849Z"},"author":{"name":"Haad"},"license":"MIT","description":"Feed store for dapi-db","maintainers":[{"email":"ivan@shumkov.ru","name":"shumkov"},{"email":"obusco@gmail.com","name":"alex-werner"},{"email":"nathan.marley@gmail.com","name":"nmarley"},{"email":"cofresi@dash.org","name":"cofresi"},{"email":"evodeploy@blackcarrot.be","name":"evodeploy"},{"email":"djavidoff@gmail.com","name":"jawid-h"}],"readme":"# orbit-db-feedstore\n\n[![npm version](https://badge.fury.io/js/orbit-db-feedstore.svg)](https://badge.fury.io/js/orbit-db-feedstore)\n\nA log database with traversable history. Entries can be added and removed. Useful for *\"shopping cart\"* type of use cases, or for example as a feed of blog posts or *\"tweets\"*.\n\nUsed in [orbit-db](https://github.com/haadcode/orbit-db).\n\n## Table of Contents\n\n- [Install](#install)\n- [Usage](#usage)\n- [API](#api)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Install\n```\nnpm install orbit-db ipfs\n```\n\n## Usage\n\nFirst, create an instance of OrbitDB:\n\n```javascript\nconst IPFS = require('ipfs')\nconst OrbitDB = require('orbit-db')\n\nconst ipfs = new IPFS()\nconst orbitdb = new OrbitDB(ipfs)\n```\n\nGet a feed database and add an entry to it:\n\n```javascript\nconst feed = orbitdb.feed('haad.posts')\nfeed.add({ title: 'Hello', content: 'World' })\n  .then(() => {\n    const posts = feed.iterator().collect()\n    posts.forEach((post) => {\n      let data = post.payload.value\n      console.log(data.title + '\\n', data.content)\n      // Hello\n      //  World\n    })\n  })\n```\n\nLater, when the database contains data, load the history and query when ready:\n\n```javascript\nconst feed = orbitdb.feed('haad.posts')\nfeed.events.on('ready', () => {\n  const posts = feed.iterator().collect()\n  posts.forEach((post) => console.log(post.title + '\\n', post.content))\n  // Hello\n  // World\n})\n```\n\n## API\n\nSee [orbit-db's API Documenations](https://github.com/haadcode/orbit-db/blob/master/API.md#feedname) for full details.\n\n## Contributing\n\nSee [orbit-db's contributing guideline](https://github.com/haadcode/orbit-db#contributing).\n\n## License\n\n[MIT](LICENSE) © 2016-2018 Protocol Labs Inc., Haja Networks Oy, 2018 Dash Core Group, Inc.\n","readmeFilename":"README.md"}