@humanmark/sdk-js
Version:
Browser-native JavaScript SDK for Humanmark human verification challenges
63 lines (42 loc) • 2.13 kB
Markdown
# Subresource Integrity (SRI) Hashes
Generated: 2025-07-30T03:45:57.976Z
Version: 1.0.1
## What is SRI?
Subresource Integrity (SRI) is a security feature that enables browsers to verify that resources they fetch haven't been tampered with. Use these hashes when loading the Humanmark SDK from a CDN.
## Usage Examples
### Browser Bundle (IIFE)
```html
<script src="https://cdn.jsdelivr.net/npm/@humanmark/sdk-js@1.0.1/dist/browser/index.js" integrity="sha384-mysw5+aX4bvSFaHpoASX5uIByx2UWBd5AdEdu9l9IW+/YwX89y1JU6g8TRLKIigV" crossorigin="anonymous"></script>
```
### UMD Bundle
```html
<script src="https://cdn.jsdelivr.net/npm/@humanmark/sdk-js@1.0.1/dist/umd/index.js" integrity="sha384-JCX9KMVmMXEZw2ckSuEEp6vtB1IlPsspCdyInEbw9oF530+uONfpnZR1ecKfKzvi" crossorigin="anonymous"></script>
```
### ES Module
For ES modules, use with `<script type="module">`:
```html
<script type="module">
import { HumanmarkSdk } from 'https://cdn.jsdelivr.net/npm/@humanmark/sdk-js@1.0.1/dist/esm/index.js';
// Your code here
</script>
```
## Hash Values
| File | SRI Hash |
|------|----------|
| `dist/browser/index.js` | `sha384-mysw5+aX4bvSFaHpoASX5uIByx2UWBd5AdEdu9l9IW+/YwX89y1JU6g8TRLKIigV` |
| `dist/esm/index.js` | `sha384-EZb5DF4cXfeyqwcOIkaipCF2CC5eSZqlpSspDAZTqgXgmQ3QPsitwliMV7l/DtC2` |
| `dist/umd/index.js` | `sha384-JCX9KMVmMXEZw2ckSuEEp6vtB1IlPsspCdyInEbw9oF530+uONfpnZR1ecKfKzvi` |
## Security Notes
1. Always use HTTPS when loading resources
2. Include the `crossorigin="anonymous"` attribute
3. Verify the integrity hash matches the version you intend to use
4. These hashes are specific to version 1.0.1
## CDN URLs
### jsDelivr
- Browser: `https://cdn.jsdelivr.net/npm/@humanmark/sdk-js@1.0.1/dist/browser/index.js`
- UMD: `https://cdn.jsdelivr.net/npm/@humanmark/sdk-js@1.0.1/dist/umd/index.js`
- ESM: `https://cdn.jsdelivr.net/npm/@humanmark/sdk-js@1.0.1/dist/esm/index.js`
### unpkg
- Browser: `https://unpkg.com/@humanmark/sdk-js@1.0.1/dist/browser/index.js`
- UMD: `https://unpkg.com/@humanmark/sdk-js@1.0.1/dist/umd/index.js`
- ESM: `https://unpkg.com/@humanmark/sdk-js@1.0.1/dist/esm/index.js`