{"id":19122951,"url":"https://github.com/digitalbazaar/did-context","last_synced_at":"2025-05-05T18:29:12.799Z","repository":{"id":47069907,"uuid":"194704335","full_name":"digitalbazaar/did-context","owner":"digitalbazaar","description":"DID Context","archived":false,"fork":false,"pushed_at":"2021-09-14T21:48:32.000Z","size":33,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":13,"default_branch":"main","last_synced_at":"2025-04-14T15:49:49.738Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/digitalbazaar.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-07-01T16:03:11.000Z","updated_at":"2022-01-14T10:14:42.000Z","dependencies_parsed_at":"2022-09-24T22:23:03.734Z","dependency_job_id":null,"html_url":"https://github.com/digitalbazaar/did-context","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalbazaar%2Fdid-context","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalbazaar%2Fdid-context/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalbazaar%2Fdid-context/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalbazaar%2Fdid-context/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/digitalbazaar","download_url":"https://codeload.github.com/digitalbazaar/did-context/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252552605,"owners_count":21766730,"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-11-09T05:23:43.806Z","updated_at":"2025-05-05T18:29:12.776Z","avatar_url":"https://github.com/digitalbazaar.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DID Context _(did-context)_\n\n[![NPM Version](https://img.shields.io/npm/v/did-context.svg?style=flat-square)](https://npm.im/did-context)\n\u003c!--[![Build Status](https://travis-ci.org/digitalbazaar/did-context.png?branch=master)](https://travis-ci.org/digitalbazaar/did-context)--\u003e\n\n\u003e A [DID][did-spec] (Decentralized Identifier) context library for JavaScript\n\nThis project packages the DID Context from the [DID specification][did-spec]\nfor use with [Node.js][Node.js] and web apps.\n\n## Table of Contents\n\n- [Security](#security)\n- [Background](#background)\n- [Install](#install)\n- [Usage](#usage)\n- [Contribute](#contribute)\n- [Commercial Support](#commercial-support)\n- [License](#license)\n\n## Security\n\nTBD\n\n## Background\n\nSee also (related specs):\n\n* [Decentralized Identifiers (DIDs) - Data Model and Syntaxes][did-spec]\n* [Decentralized Identifier Resolution](https://w3c-ccg.github.io/did-resolution/)\n\n## Install\n\nRequires [Node.js][] 8.3+\n\nTo install via [NPM][]:\n\n```\nnpm install did-context\n```\n\n## Usage\n\n```js\nimport didContext from 'did-context';\n// or\nconst didContext = require('did-context');\n\n// use URL in a JSON-LD context\nconst obj = {\n  \"@context\": [\n    didContext.CONTEXT_URL_V1,\n    // ...\n  ],\n  // ...\n};\n\n// get context data for a specific context\nconst data = didContext.CONTEXT;\n// ...\n```\n\nThis package can be used with bundlers, such as [webpack][], in browser\napplications.\n\n## API\n\nThe library exports two properties:\n- `constants`: A Object that maps constants to well-known context URLs. The\n  main constant `DID_CONTEXT_URL` may be updated from time to time to the\n  latest context location.\n- `contexts`: A `Map` that maps URLs to full context data.\n\n## Contribute\n\nCode and packaging development is at the [did-context][] project. The contexts\nthemselves are developed in the [did-spec][] project.\n\nContexts in this package are updated manually from the [did-spec][] contexts.\nPlease file an issue if this package is not synced with [did-spec][] changes in\na timely manner.\n\nSmall note: If editing the Readme, please conform to the\n[standard-readme](https://github.com/RichardLitt/standard-readme) specification.\n\n## Commercial Support\n\nCommercial support for this library is available upon request from\nDigital Bazaar: support@digitalbazaar.com\n\n## License\n\n- Code: BSD 3-Clause © Digital Bazaar\n- Contexts: W3C Software and Document License\n- See the [LICENSE](./LICENSE.md) file for details.\n\n[did-context]: https://github.com/digitalbazaar/did-context\n[did-spec]: https://www.w3.org/TR/did-core/\n[NPM]: https://www.npmjs.com/\n[Node.js]: https://nodejs.org/\n[webpack]: https://webpack.js.org/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigitalbazaar%2Fdid-context","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdigitalbazaar%2Fdid-context","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigitalbazaar%2Fdid-context/lists"}