{"id":13482483,"url":"https://github.com/libp2p/js-iprs-record","last_synced_at":"2025-03-27T13:31:57.100Z","repository":{"id":35330600,"uuid":"39592621","full_name":"libp2p/js-iprs-record","owner":"libp2p","description":"JavaScript IPFS record class implementation","archived":true,"fork":false,"pushed_at":"2018-03-19T05:23:46.000Z","size":41,"stargazers_count":7,"open_issues_count":0,"forks_count":5,"subscribers_count":20,"default_branch":"master","last_synced_at":"2024-04-14T12:09:50.330Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/libp2p.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-07-23T21:01:31.000Z","updated_at":"2023-01-28T20:44:42.000Z","dependencies_parsed_at":"2022-09-17T06:31:11.479Z","dependency_job_id":null,"html_url":"https://github.com/libp2p/js-iprs-record","commit_stats":null,"previous_names":["diasdavid/node-ipfs-record"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libp2p%2Fjs-iprs-record","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libp2p%2Fjs-iprs-record/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libp2p%2Fjs-iprs-record/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libp2p%2Fjs-iprs-record/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/libp2p","download_url":"https://codeload.github.com/libp2p/js-iprs-record/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":211877473,"owners_count":15361003,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T17:01:02.439Z","updated_at":"2024-07-31T17:08:48.909Z","avatar_url":"https://github.com/libp2p.png","language":"JavaScript","funding_links":[],"categories":["Modules"],"sub_categories":[],"readme":"iprs-record JavaScript implementation\n=======================================\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://ipn.io) [[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs) \n![Build Status](https://travis-ci.org/diasdavid/js-iprs-record.svg?style=flat-square)](https://travis-ci.org/diasdavid/js-iprs-record) \n![](https://img.shields.io/badge/coverage-%3F-yellow.svg?style=flat-square) \n[![Dependency Status](https://david-dm.org/diasdavid/js-iprs-record.svg?style=flat-square)](https://david-dm.org/diasdavid/js-iprs-record)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)\n\n\u003e JavaScript IPRS Record implementations follows specification([IPRS](https://github.com/ipfs/specs/tree/master/iprs/README.md)) implementation\n\n**Disclaimer:** This module is way out of date there will be 🐉🐉\n \n# Description\n\n# Usage\n\n## Example record\n\n```\n// Record is a IPLD object\n{\n  '@context': {\n    mlink: 'http://merkle-link'\n  },\n  scheme: {\n    mlink: \u003chash to validity scheme or identifier for hard coded validity scheme\u003e\n  },\n  expires: \u003cdata\u003e, // datetime at which record expires\n  value: \u003cdata\u003e, // the data that this Record Stores\n}\n```\n\n\n# Record types\n\nA record type should be identified by its validity scheme and a record validity scheme should be a MerkleDAG object containing its validity checking rules, however, for simplicity, we have developed 4 types of records, in which their validity schemes are hardcoded in this module. To identify which validity scheme to use, we use a enum:\n\n- a - signed, valid within a datetime range\n- b - signed, expiring after a Time-To-Live\n- c - signed, based on ancestry (chain)\n- d - signed, with cryptographic freshness\n\nReference: https://github.com/ipfs/specs/tree/master/iprs/README.md#example-record-types\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibp2p%2Fjs-iprs-record","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flibp2p%2Fjs-iprs-record","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibp2p%2Fjs-iprs-record/lists"}