{"id":20261909,"url":"https://github.com/nodesolidserver/jose","last_synced_at":"2025-04-11T01:50:59.108Z","repository":{"id":32927355,"uuid":"136369168","full_name":"nodeSolidServer/jose","owner":"nodeSolidServer","description":"JSON Object Signing and Encryption for Node.js and the browser","archived":false,"fork":false,"pushed_at":"2023-03-15T05:18:24.000Z","size":836,"stargazers_count":4,"open_issues_count":5,"forks_count":2,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-04-02T22:17:19.957Z","etag":null,"topics":["running-code"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"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/nodeSolidServer.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":"2018-06-06T18:19:17.000Z","updated_at":"2022-04-26T15:07:53.000Z","dependencies_parsed_at":"2024-06-18T21:40:17.609Z","dependency_job_id":null,"html_url":"https://github.com/nodeSolidServer/jose","commit_stats":null,"previous_names":["solid/jose"],"tags_count":36,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodeSolidServer%2Fjose","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodeSolidServer%2Fjose/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodeSolidServer%2Fjose/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodeSolidServer%2Fjose/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nodeSolidServer","download_url":"https://codeload.github.com/nodeSolidServer/jose/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248328104,"owners_count":21085258,"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":["running-code"],"created_at":"2024-11-14T11:27:36.878Z","updated_at":"2025-04-11T01:50:59.091Z","avatar_url":"https://github.com/nodeSolidServer.png","language":"JavaScript","readme":"# JSON Object Signing and Encryption (JOSE) _(@solid/jose)_\n\n\u003e Lightweight isomorphic JSON Object Signing and Encryption (JOSE) library for browser and Node.js\n\n## Table of Contents\n\n- [Security](#security)\n- [Background](#background)\n- [Install](#install)\n- [Usage](#usage)\n- [License](#license)\n\n## Security\n\nTBD\n\n## Background\n\n- Based on Webcrypto API\n- Isomorphic (Node.js and Browser)\n\n## Install\n\nRequires Node.js 8+.\n\n```\nnpm install @solid/jose\n```\n\n## Usage\n\n### Building with Webpack\n\n**Important:**\nIf you're using this library as a dependency and you plan to use Webpack, don't\nforget to add the following lines to your `webpack.config.js` `externals:` \nsection:\n\n```js\n  externals: {\n    '@sinonjs/text-encoding': 'TextEncoder',\n    'isomorphic-webcrypto': 'crypto'\n  }\n```\n\n### In Node\n\n```js\nconst { JWT } = require('@solid/jose')\n\nconst decoded = JWT.decode(data) // throws an error if invalid\n```\n\n### In Browser\n\nIf you `npm install @solid/jose` as a dependency, the Webpack'd minified bundle will be\navailable in the `dist/` directory as `jose.min.js`.\n\nIf you're actively developing/testing this lib, you can `npm run dist`, and the\nbundle will be rebuilt.\n\nTo use in the browser, simply import the bundle in a `\u003cscript\u003e` tag, and the lib\nwill be loaded into the `window.JOSE` global variable.\n\nExample `test.html` file, to illustrate:\n\n```html\n\u003chtml\u003e\n\u003chead\u003e\n  \u003cscript src=\"dist/jose.min.js\"\u003e\u003c/script\u003e\n  \u003cscript\u003e\n    // You can now start using the library\n    let jwt = new JOSE.JWT({\n      header: { alg: 'HS256' },\n      payload: { iss: 'https://forge.anvil.io' }\n    })\n  \u003c/script\u003e\n\u003c/head\u003e\n\u003cbody\u003e\nSample usage of JOSE lib in a browser.\n\u003c/body\u003e\n\u003c/html\u003e\n```\n\n## Testing\n\n### Nodejs\n\n```bash\n$ npm test\n```\n\n## License\n\n[The MIT License](LICENSE.md)\n\nCopyright (c) 2016 Anvil Research, Inc.\nCopyright (c) 2017-2019 The Solid Project\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnodesolidserver%2Fjose","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnodesolidserver%2Fjose","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnodesolidserver%2Fjose/lists"}