{"id":19122858,"url":"https://github.com/digitalbazaar/credentials-context","last_synced_at":"2025-05-05T18:26:32.636Z","repository":{"id":46948839,"uuid":"199683278","full_name":"digitalbazaar/credentials-context","owner":"digitalbazaar","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-27T21:38:59.000Z","size":55,"stargazers_count":2,"open_issues_count":1,"forks_count":2,"subscribers_count":12,"default_branch":"main","last_synced_at":"2025-04-17T07:50:40.986Z","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-30T15:53:17.000Z","updated_at":"2025-02-27T21:39:02.000Z","dependencies_parsed_at":"2024-06-18T21:26:38.604Z","dependency_job_id":"84217745-e4f1-4903-b855-c84ce4259df4","html_url":"https://github.com/digitalbazaar/credentials-context","commit_stats":{"total_commits":18,"total_committers":4,"mean_commits":4.5,"dds":"0.38888888888888884","last_synced_commit":"db03e7dd49405bd947b9a4afcc4ccee0f016aebb"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalbazaar%2Fcredentials-context","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalbazaar%2Fcredentials-context/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalbazaar%2Fcredentials-context/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalbazaar%2Fcredentials-context/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/digitalbazaar","download_url":"https://codeload.github.com/digitalbazaar/credentials-context/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252552099,"owners_count":21766638,"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:18.030Z","updated_at":"2025-05-05T18:26:32.612Z","avatar_url":"https://github.com/digitalbazaar.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Verifiable Credentials Contexts _(@digitalbazaar/credentials-context)_\n\n\n[![Node.js CI](https://github.com/digitalbazaar/credentials-context/workflows/Main%20CI/badge.svg)](https://github.com/digitalbazaar/credentials-context/actions?query=workflow%3A%22Main+CI%22)\n[![NPM Version](https://img.shields.io/npm/v/@digitalbazaar/credentials-context)](https://www.npmjs.com/package/@digitalbazaar/credentials-context)\n\n\u003e A [Verifiable Credentials Data Model](https://github.com/w3c/vc-data-model)\n\u003e contexts library for JavaScript\n\nThis project packages the contexts for the [Verifiable Credentials Data\nModel][] specs for use with [Node.js][] and web apps.\n\n## Table of Contents\n\n- [Background](#background)\n- [Security](#security)\n- [Install](#install)\n- [Usage](#usage)\n- [API](#api)\n- [Status](#status)\n- [Developing](#developing)\n- [Commercial Support](#commercial-support)\n- [License](#license)\n\n## Background\n\nSee related specs:\n\n- [Verifiable Credentials Data Model](https://github.com/w3c/vc-data-model)\n- [VCDM v1.1](https://www.w3.org/TR/vc-data-model/)\n- [VCDM v2.0](https://www.w3.org/TR/vc-data-model-2.0/)\n\n## Security\n\nTBD\n\n## Install\n\nRequires [Node.js][] 18+\n\nTo install via [NPM][]:\n\n```\nnpm install @digitalbazaar/credentials-context\n```\n\n## Usage\n\n```js\nimport {contexts, metadata, named} from '@digitalbazaar/credentials-context';\n// or\nconst {contexts, metadata, named} = require('@digitalbazaar/credentials-context');\n```\n\nThe `contexts` [Map][] can be used to access individual contexts by id or load\nthem into a JSON-LD document loader. The `metadata` [Map][] contains\nextra information about each context.\n\nThis package can be used with bundlers, such as [webpack][], in browser\napplications.\n\n## API\n\nThe library exports the following properties:\n- `contexts`: A [Map][] associating context URLs to context data.\n- `metadata`: A [Map][] associating context URLs to context metadata.\n- `named`: A [Map][] associating short package specific names to context\n  metadata.\n\nNote that the `metadata` format is experimental and subject to change. The `id`\nfield is expected to stay stable and can be used with the `named` Map to get a\ncontext URL for a short name such as `v2`.\n\nThe context files are available in the published `contexts/` directory. The\nmetadata has a URL for each context. Note that these files are semantically\nequivalent to published spec contexts but the formatting may differ such that\nstrict file digests are not equivalent.\n\n## Status\n\nThe following contexts are available as of mid-2024. They track the published\nspec contexts.\n\n- Verifiable Credentials v1.1 context\n  - URL: `https://www.w3.org/2018/credentials/v1`\n  - Short name: `v1`\n  - Status: stable\n- Verifiable Credentials v2.0 context\n  - URL: `https://www.w3.org/ns/credentials/v2`\n  - Short name: `v2`\n  - Status: under development\n- Verifiable Credentials v2.0 undefined terms context\n  - URL: `https://www.w3.org/ns/credentials/undefined-terms/v2`\n  - Short name: `undefined-terms-v2`\n  - Status: under development\n\n## Developing\n\nSource is available at:\n- https://github.com/digitalbazaar/credentials-context\n\n**WARNING**: The `.jsonld` files in `contexts/` are auto-generated by the `npm\nrun build` script each time the test suite is run.\n\nDO NOT edit them directly since changes will be overwritten.\n\nMake all context changes to `lib/*.js`.\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[Map]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map\n[NPM]: https://www.npmjs.com/\n[Node.js]: https://nodejs.org/\n[Verifiable Credentials Data Model]: https://github.com/w3c/vc-data-model\n[credentials-context]: https://github.com/digitalbazaar/credentials-context\n[webpack]: https://webpack.js.org/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigitalbazaar%2Fcredentials-context","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdigitalbazaar%2Fcredentials-context","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigitalbazaar%2Fcredentials-context/lists"}