Skip to content

Commit 77603e7

Browse files
committed
Add env data
1 parent 653ab6d commit 77603e7

38 files changed

Lines changed: 5878 additions & 1041 deletions

README.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ npm run verify
1313
### ESM
1414

1515
```js
16-
import { createClient } from '@fingerprint-framework/core';
16+
import { loadClient } from '@fingerprint-framework/core';
1717

18-
const client = createClient({
18+
const client = await loadClient({
1919
namespace: 'my-product',
2020
profile: 'balanced'
2121
});
2222

23-
const result = await client.identify({
23+
const result = await client.get({
2424
consent: { granted: true, purpose: 'fraud-prevention' }
2525
});
2626

@@ -39,7 +39,7 @@ After building, include the generated file directly:
3939
profile: 'balanced'
4040
});
4141
42-
client.identify({ consent: { granted: true } }).then((result) => {
42+
client.prepare().then(() => client.get({ consent: { granted: true } })).then((result) => {
4343
console.log(result.visitorId, result.confidence);
4444
});
4545
</script>
@@ -56,9 +56,13 @@ After building, include the generated file directly:
5656
- Collector API for custom signals.
5757
- Policy layer with allow/deny collectors, categories, sensitivity limits, and consent gates.
5858
- Deterministic canonical normalization before hashing.
59+
- Browser quirk detection for known unstable Safari, Firefox, iOS, Chromium, and Samsung Internet paths.
60+
- Expanded built-in collectors for client hints, screen frame, media preferences, touch, architecture, plugins, vendor flavors, PDF viewer, Apple Pay, Private Click Measurement, DOM blockers, fonts, audio, WebGL extensions, canvas, and math behavior.
5961
- SHA-256 via Web Crypto or Node Crypto, with fallback support for constrained runtimes.
6062
- Confidence scoring and collector error metadata.
6163
- Optional visit state storage through `localStorage` or a custom adapter.
64+
- `loadClient()` / `prepare()` / `get()` flow for startup warmup and faster later identification.
65+
- `componentsToDebugString()` and `client.debug()` for human-readable diagnostics.
6266
- Script-tag global API: `FingerprintFramework`.
6367

6468
## Package Subpaths
@@ -76,6 +80,6 @@ import { createMemoryStorage } from '@fingerprint-framework/core/storage';
7680
- `npm run typecheck` validates published declaration files through package imports.
7781
- `npm run test:coverage` enforces 100% line, branch, and function coverage for `src/**/*.js`.
7882
- `npm run test:browser` runs the standalone browser build in Chromium, Firefox, and WebKit.
79-
- `npm run check:size` enforces the browser minified bundle size budget.
83+
- `npm run check:size` enforces the browser minified bundle size budget, currently 45 KB for the expanded collector pack.
8084

81-
The technical specification is available in [docs/TECHNICAL_SPEC.md](docs/TECHNICAL_SPEC.md). The current implementation audit is available in [docs/AUDIT_REPORT.md](docs/AUDIT_REPORT.md).
85+
The technical specification is available in [docs/TECHNICAL_SPEC.md](docs/TECHNICAL_SPEC.md). The identifier version policy is available in [docs/VERSION_POLICY.md](docs/VERSION_POLICY.md). The current implementation audit is available in [docs/AUDIT_REPORT.md](docs/AUDIT_REPORT.md).

0 commit comments

Comments
 (0)