proofx
v1.0.0
Published
Protect and verify digital content with cryptographic watermarks and signatures. WASM-powered invisible watermarking + ProofX API signing.
Maintainers
Readme
ProofX
Protect and verify digital content with cryptographic watermarks and signatures.
WASM-powered invisible watermarking + ProofX API signing. One package, full content protection pipeline.
Install
npm install proofxQuick Start
const ProofX = require('proofx');
const px = new ProofX({
creatorId: 'YOUR_CREATOR_ID', // Get free at proofx.co.uk
apiKey: 'pk_live_...', // Optional — get at proofx.co.uk/developer
});
// Protect an image (watermark + sign + embed signature)
const result = await px.protect('my-photo.png', { title: 'My Photo' });
// → result.image (protected Buffer), result.contentId, result.verifyUrl
// Protect text (hash + sign)
const doc = await px.protectText('My original article...', { title: 'My Article' });
// → doc.contentId, doc.verifyUrl
// Verify content
const check = await px.verify('sha256_hash_here');
// → { verified: true, creator_id: '...', timestamp: '...' }
// Verify an image file
const valid = await px.verifyImage('downloaded-image.png');API
new ProofX(options)
| Option | Type | Required | Description |
|--------|------|----------|-------------|
| creatorId | string | Yes | Your 8-char creator ID from proofx.co.uk |
| apiKey | string | No | API key for higher rate limits (pk_live_...) |
| apiUrl | string | No | Custom API URL (default: api.proofx.co.uk) |
Methods
| Method | Description |
|--------|-------------|
| protect(image, opts) | Full protection: WASM watermark + hash + sign + embed signature |
| protectText(text, opts) | Hash + sign text content |
| verify(hash) | Verify content by SHA-256 hash |
| verifyImage(image) | Hash an image and verify it |
| hash(input) | Compute SHA-256 hash |
| getCreator(id) | Look up a creator profile |
| extractSignature(image) | Extract embedded signature from protected PNG |
| perceptualHash(image) | Compute perceptual hash for fuzzy matching |
Rate Limits
| Plan | Daily Limit | Price | |------|------------|-------| | Free | 10 | $0 | | Creator | 100 | $9/mo | | Pro | 1,000 | $19/mo | | Studio | 10,000 | $49/mo |
Get API keys at proofx.co.uk/developer
Use Cases
- AI image pipelines — auto-protect every generated image
- CI/CD — sign assets on build
- Publishing — protect articles before they go live
- Music/audio — register tracks on creation
- Legal — timestamp documents for evidence
How It Works
- WASM watermark — invisible marks in image pixels (survives screenshots, compression)
- SHA-256 hash — computed locally, never uploads your content
- Cryptographic signature — signed by ProofX KMS infrastructure
- Embedded proof — signature stored inside the PNG file
The protected image is self-verifying. Anyone can extract the signature and check it.
Links
- ProofX — Web app
- Developer Portal — API keys
- MCP Server — AI integration (Gemini, Claude, Cursor)
License
MIT
