Title: Replace jose dependency with Web Crypto API · Issue #5 · JavaScriptSolidServer/solid-oidc · GitHub
Open Graph Title: Replace jose dependency with Web Crypto API · Issue #5 · JavaScriptSolidServer/solid-oidc
X Title: Replace jose dependency with Web Crypto API · Issue #5 · JavaScriptSolidServer/solid-oidc
Description: Summary Replace the jose npm dependency with the native Web Crypto API to achieve a truly zero-dependency library. Motivation The library advertises itself as "minimal, zero-build" but still pulls in jose (~45kb) Modern browsers ship Web...
Open Graph Description: Summary Replace the jose npm dependency with the native Web Crypto API to achieve a truly zero-dependency library. Motivation The library advertises itself as "minimal, zero-build" but still pulls ...
X Description: Summary Replace the jose npm dependency with the native Web Crypto API to achieve a truly zero-dependency library. Motivation The library advertises itself as "minimal, zero-build" but st...
Opengraph URL: https://github.com/JavaScriptSolidServer/solid-oidc/issues/5
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Replace jose dependency with Web Crypto API","articleBody":"## Summary\n\nReplace the `jose` npm dependency with the native Web Crypto API to achieve a truly zero-dependency library.\n\n## Motivation\n\n- The library advertises itself as \"minimal, zero-build\" but still pulls in `jose` (~45kb)\n- Modern browsers ship Web Crypto API with full support for JWT signing, verification, and key generation\n- Removing `jose` means zero dependencies, smaller bundle, no supply chain risk\n\n## Web Crypto equivalents\n\n| jose function | Web Crypto replacement |\n|---|---|\n| `generateKeyPair` | `crypto.subtle.generateKey` |\n| `SignJWT` | `crypto.subtle.sign` + manual JWT construction |\n| `jwtVerify` | `crypto.subtle.verify` |\n| `exportJWK` | `crypto.subtle.exportKey('jwk', ...)` |\n| `calculateJwkThumbprint` | `crypto.subtle.digest('SHA-256', ...)` |\n| `createRemoteJWKSet` | `fetch` + `crypto.subtle.importKey` |\n| `decodeJwt` | `JSON.parse(atob(token.split('.')[1]))` |\n\n## Acceptance criteria\n\n- [ ] All `jose` imports replaced with Web Crypto API calls\n- [ ] `jose` removed from package.json dependencies\n- [ ] Zero npm dependencies\n- [ ] Existing tests still pass","author":{"url":"https://github.com/melvincarvalho","@type":"Person","name":"melvincarvalho"},"datePublished":"2026-03-05T06:14:37Z","url":"https://github.com/JavaScriptSolidServer/solid-oidc/issues/5"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:4507f993-de78-3e1e-86b5-2436f70c5ec3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C1D8:1DA36E:A6E154:D3DD12:6B03A686 |
| html-safe-nonce | bac25baf5d8d290830f9ed10457af6e94ce444e5635b308daf1f29005af7d117 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMUQ4OjFEQTM2RTpBNkUxNTQ6RDNERDEyOjZCMDNBNjg2IiwidmlzaXRvcl9pZCI6IjI1Nzk4MzQ4ODMzNzk3OTk2ODYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 784cc80aa13d0360700140284b000cbc4c2150695d37858043f4d2d0423d3317 |
| hovercard-subject-tag | issue:4026072598 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/JavaScriptSolidServer/solid-oidc/5/issue_layout |
| twitter:image | https://opengraph.githubassets.com/59da27073a01240894448eb5517fcdc839d7b1b872133945a529e7b24584e166/JavaScriptSolidServer/solid-oidc/issues/5 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/59da27073a01240894448eb5517fcdc839d7b1b872133945a529e7b24584e166/JavaScriptSolidServer/solid-oidc/issues/5 |
| og:image:alt | Summary Replace the jose npm dependency with the native Web Crypto API to achieve a truly zero-dependency library. Motivation The library advertises itself as "minimal, zero-build" but still pulls ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | melvincarvalho |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/JavaScriptSolidServer/solid-oidc git https://github.com/JavaScriptSolidServer/solid-oidc.git |
| octolytics-dimension-user_id | 205442424 |
| octolytics-dimension-user_login | JavaScriptSolidServer |
| octolytics-dimension-repository_id | 1125114140 |
| octolytics-dimension-repository_nwo | JavaScriptSolidServer/solid-oidc |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1125114140 |
| octolytics-dimension-repository_network_root_nwo | JavaScriptSolidServer/solid-oidc |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width