{"id":26343585,"url":"https://github.com/eclipse-biscuit/biscuit-wasm","last_synced_at":"2025-05-14T08:14:22.204Z","repository":{"id":42364489,"uuid":"440995067","full_name":"eclipse-biscuit/biscuit-wasm","owner":"eclipse-biscuit","description":"WebAssembly wrapper for Biscuit authorization tokens","archived":false,"fork":false,"pushed_at":"2025-04-08T12:47:14.000Z","size":623,"stargazers_count":28,"open_issues_count":8,"forks_count":10,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-05-10T06:45:51.423Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eclipse-biscuit.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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":"2021-12-22T22:03:44.000Z","updated_at":"2025-04-08T12:47:14.000Z","dependencies_parsed_at":"2023-12-07T10:25:43.876Z","dependency_job_id":"ad9144e3-8b22-46ff-b6f4-d774411ba016","html_url":"https://github.com/eclipse-biscuit/biscuit-wasm","commit_stats":{"total_commits":103,"total_committers":7,"mean_commits":"14.714285714285714","dds":0.5436893203883495,"last_synced_commit":"ef6a5a8fc48e11ce3c3826c5d5b87634a780cce3"},"previous_names":["eclipse-biscuit/biscuit-wasm","biscuit-auth/biscuit-wasm"],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eclipse-biscuit%2Fbiscuit-wasm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eclipse-biscuit%2Fbiscuit-wasm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eclipse-biscuit%2Fbiscuit-wasm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eclipse-biscuit%2Fbiscuit-wasm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eclipse-biscuit","download_url":"https://codeload.github.com/eclipse-biscuit/biscuit-wasm/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254101543,"owners_count":22014909,"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":"2025-03-16T05:02:10.878Z","updated_at":"2025-05-14T08:14:17.187Z","avatar_url":"https://github.com/eclipse-biscuit.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"# Biscuit-wasm\n\nThis library wraps the [Rust implementation](https://github.com/biscuit-auth) of [Biscuit tokens](https://www.biscuitsec.org) in WebAssembly, for usage in NodeJS and browsers.\n\nIt provides both EcmaScript and CommonJS modules, along with TypeScript type definitions.\n\n## Usage\n\nAdd this dependency to your `package.json`:\n\n```json\n{\n  \"dependencies\": {\n    \"@biscuit-auth/biscuit-wasm\": \"0.6.0-beta.1\"\n  }\n}\n```\n\nUsage examples are available [here](https://doc.biscuitsec.org/usage/nodejs).\n\n### Node\n\n_see the example code in examples/node_\n\nThe `node` executable must be started with the [`--experimental-wasm-modules` flag](https://nodejs.org/api/esm.html#wasm-modules).\n\n#### Node 18\n\nDue to some wasm-side dependencies, to work in Node, biscuit-wasm requires that this be added to the application:\n\n```javascript\nimport { webcrypto } from \"node:crypto\";\nglobalThis.crypto = webcrypto;\n```\n\nThis is no longer necessary starting with node 19.\n\n### In browser\n\n_see the example code in examples/frontend_\n\nImporting a WebAssembly library with a bundler can take a bit of configuration. We have a working example with\nWebpack, and would welcome example configuration for other bundlers:\n\n```javascript\nconst path = require(\"path\");\n\nmodule.exports = {\n  entry: \"./index.js\",\n  output: {\n    filename: \"index.js\",\n    path: path.resolve(__dirname, \"dist\"),\n  },\n  experiments: {\n    asyncWebAssembly: true,\n  },\n};\n```\n\n## License\n\nLicensed under the Apache 2.0 License.\n\nCopyright 2021 Geoffroy Couprie\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feclipse-biscuit%2Fbiscuit-wasm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feclipse-biscuit%2Fbiscuit-wasm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feclipse-biscuit%2Fbiscuit-wasm/lists"}