Gathering detailed insights and metrics for @digitalbazaar/http-signature-header
Gathering detailed insights and metrics for @digitalbazaar/http-signature-header
Gathering detailed insights and metrics for @digitalbazaar/http-signature-header
Gathering detailed insights and metrics for @digitalbazaar/http-signature-header
npm install @digitalbazaar/http-signature-header
Typescript
Module System
Min. Node Version
Node Version
NPM Version
79.3
Supply Chain
91.4
Quality
81.9
Maintenance
100
Vulnerability
100
License
JavaScript (99.66%)
Shell (0.34%)
Total Downloads
131,399
Last Day
1,016
Last Week
3,087
Last Month
10,133
Last Year
65,975
8 Stars
269 Commits
2 Forks
12 Watching
7 Branches
14 Contributors
Latest Version
5.0.1
Package Id
@digitalbazaar/http-signature-header@5.0.1
Unpacked Size
23.54 kB
Size
7.69 kB
File Count
7
NPM Version
10.8.2
Node Version
20.13.0
Publised On
08 Aug 2024
Cumulative downloads
Total Downloads
Last day
42.1%
1,016
Compared to previous day
Last week
35.7%
3,087
Compared to previous week
Last month
38.5%
10,133
Compared to previous month
Last year
55.8%
65,975
Compared to previous year
A JavaScript library for creating and verifying HTTP Signature headers
To install locally (for development):
git clone https://github.com/digitalbazaar/http-signature-header.git
cd http-signature-header
npm install
1import { 2 createAuthzHeader, createSignatureString 3} from '@digitalbazaar/http-signature-header'; 4 5const requestOptions = { 6 url, 7 method: 'POST', 8 headers 9} 10const includeHeaders = ['expires', 'host', '(request-target)']; 11const plaintext = createSignatureString({includeHeaders, requestOptions}); 12 13const data = new TextEncoder().encode(plaintext); 14const signature = base64url.encode(await signer.sign({data})); 15 16const Authorization = createAuthzHeader({ 17 includeHeaders, 18 keyId: signer.id, 19 signature 20});
Please follow the existing code style.
PRs accepted.
If editing the Readme, please conform to the standard-readme specification.
Commercial support for this library is available upon request from Digital Bazaar: support@digitalbazaar.com
BSD-3-Clause © Digital Bazaar
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 2/17 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-01-27
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More