{"_id":"@allseeingeyes/sdk","name":"@allseeingeyes/sdk","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"@allseeingeyes/sdk","version":"0.0.1","private":false,"description":"The All Seeing Eyes - AI-Powered Fraud Detection SDK. See Everything. Trust No One.","keywords":["fraud-detection","fingerprinting","bot-detection","device-fingerprint","browser-fingerprint","security","anti-fraud","risk-assessment"],"homepage":"https://theallseeingeyes.org","bugs":{"url":"https://github.com/moltpill/fraudshield/issues"},"repository":{"type":"git","url":"git+https://github.com/moltpill/fraudshield.git","directory":"packages/sdk"},"license":"MIT","author":{"name":"The All Seeing Eyes","email":"support@theallseeingeyes.org"},"type":"module","main":"./dist/sdk.umd.js","module":"./dist/sdk.esm.js","browser":"./dist/sdk.min.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","browser":"./dist/sdk.min.js","import":"./dist/sdk.esm.js","require":"./dist/sdk.umd.js"}},"scripts":{"build":"rollup -c && tsc --emitDeclarationOnly","clean":"rm -rf dist","test":"vitest run","test:watch":"vitest","prepublishOnly":"pnpm run build"},"dependencies":{"@eyes/shared":"workspace:*"},"devDependencies":{"@rollup/plugin-terser":"^0.4.4","@rollup/plugin-typescript":"^11.1.6","rollup":"^4.24.0","tslib":"^2.6.3","typescript":"^5.6.3","vitest":"^3.0.5"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"engines":{"node":">=18.0.0"},"gitHead":"e003964611d1e804f67a6d3325e54da4fa303480","_id":"@allseeingeyes/sdk@0.0.1","_nodeVersion":"25.6.1","_npmVersion":"11.9.0","dist":{"integrity":"sha512-K/O4svnEsTJzR0LWYJDnvCiw6mMilLhpCwBYi4uQ6JuoWdX+hpV64dO183NtDX00z1XXIF9b3YCWWJ77X+k4VA==","shasum":"d1a0c50fc576e7bfe3616124fa8f77cae5ef707e","tarball":"https://registry.npmjs.org/@allseeingeyes/sdk/-/sdk-0.0.1.tgz","fileCount":14,"unpackedSize":80307,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIB8Obegnq8QLEijQUyxWWN1Q7oZQNsTTXl+e8aIakrOgAiB3i6z7E3AJ1SES0xHLzQ3lGuMOAmaLca/Hd8i+4XkdLg=="}]},"_npmUser":{"name":"moltymolt","email":"moltpill.mac@gmail.com"},"directories":{},"maintainers":[{"name":"moltymolt","email":"moltpill.mac@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sdk_0.0.1_1771656706744_0.643047839203712"},"_hasShrinkwrap":false}},"time":{"created":"2026-02-21T06:51:46.588Z","0.0.1":"2026-02-21T06:51:46.892Z","modified":"2026-02-21T06:51:47.174Z"},"maintainers":[{"name":"moltymolt","email":"moltpill.mac@gmail.com"}],"description":"The All Seeing Eyes - AI-Powered Fraud Detection SDK. See Everything. Trust No One.","homepage":"https://theallseeingeyes.org","keywords":["fraud-detection","fingerprinting","bot-detection","device-fingerprint","browser-fingerprint","security","anti-fraud","risk-assessment"],"repository":{"type":"git","url":"git+https://github.com/moltpill/fraudshield.git","directory":"packages/sdk"},"author":{"name":"The All Seeing Eyes","email":"support@theallseeingeyes.org"},"bugs":{"url":"https://github.com/moltpill/fraudshield/issues"},"license":"MIT","readme":"# @allseeingeyes/sdk\n\n**The All Seeing Eyes** - AI-Powered Fraud Detection SDK\n\n*See Everything. Trust No One.*\n\n[![npm version](https://img.shields.io/npm/v/@allseeingeyes/sdk.svg)](https://www.npmjs.com/package/@allseeingeyes/sdk)\n[![npm downloads](https://img.shields.io/npm/dm/@allseeingeyes/sdk.svg)](https://www.npmjs.com/package/@allseeingeyes/sdk)\n\n## Installation\n\n```bash\nnpm install @allseeingeyes/sdk\n# or\npnpm add @allseeingeyes/sdk\n# or\nyarn add @allseeingeyes/sdk\n```\n\n## Quick Start\n\n```typescript\nimport { Eyes } from '@allseeingeyes/sdk'\n\n// Initialize the SDK with your API key\nconst eyes = new Eyes({ \n  apiKey: 'eye_live_your_api_key' \n})\n\n// Analyze the current visitor\nconst result = await eyes.analyze()\n\nconsole.log('Visitor ID:', result.visitorId)\nconsole.log('Risk Score:', result.riskScore)\nconsole.log('Flags:', result.flags)\n```\n\n## CDN Usage\n\n```html\n<script src=\"https://unpkg.com/@allseeingeyes/sdk@latest/dist/sdk.min.js\"></script>\n<script>\n  const eyes = new Eyes.Eyes({ apiKey: 'eye_live_your_api_key' })\n  eyes.analyze().then(result => {\n    console.log('Visitor ID:', result.visitorId)\n  })\n</script>\n```\n\n## API Reference\n\n### `new Eyes(options)`\n\nCreates a new Eyes SDK instance.\n\n| Option | Type | Required | Description |\n|--------|------|----------|-------------|\n| `apiKey` | `string` | Yes | Your API key (starts with `eye_live_` or `eye_test_`) |\n| `endpoint` | `string` | No | Custom API endpoint (defaults to `https://api.theallseeingeyes.org`) |\n\n### `eyes.analyze()`\n\nCollects device fingerprint signals and sends them to the Eyes API for analysis.\n\n**Returns:** `Promise<AnalyzeResponse>`\n\n```typescript\ninterface AnalyzeResponse {\n  visitorId: string      // Unique visitor identifier\n  riskScore?: number     // Risk score (0-100)\n  flags?: Record<string, boolean>  // Detection flags\n  requestId?: string     // Request ID for debugging\n}\n```\n\n### Signal Collectors\n\nThe SDK also exports individual signal collectors for advanced use cases:\n\n```typescript\nimport { \n  getCanvasFingerprint,\n  getBotSignals \n} from '@allseeingeyes/sdk'\n\nconst canvas = await getCanvasFingerprint()\nconst bot = getBotSignals()\n```\n\n### Error Handling\n\n```typescript\nimport { Eyes, EyesError, ErrorCode } from '@allseeingeyes/sdk'\n\nconst eyes = new Eyes({ apiKey: 'eye_live_xxx' })\n\ntry {\n  const result = await eyes.analyze()\n} catch (error) {\n  if (error instanceof EyesError) {\n    switch (error.code) {\n      case ErrorCode.INVALID_KEY:\n        console.error('Invalid API key')\n        break\n      case ErrorCode.QUOTA_EXCEEDED:\n        console.error('Monthly quota exceeded')\n        break\n      case ErrorCode.NETWORK_ERROR:\n        console.error('Network error:', error.message)\n        break\n      case ErrorCode.SUSPENDED:\n        console.error('Account suspended')\n        break\n    }\n  }\n}\n```\n\n## Signals Collected\n\nThe SDK collects the following signals for fingerprinting and fraud detection:\n\n- **Canvas** - HTML5 canvas fingerprint\n- **WebGL** - GPU and rendering information\n- **Audio** - AudioContext fingerprint\n- **Navigator** - Browser and device information\n- **Screen** - Display characteristics\n- **Timezone** - Time zone and locale data\n- **WebRTC** - Local IP detection (with permission)\n- **Bot Detection** - Automated browser detection\n\n## Browser Support\n\n| Browser | Minimum Version |\n|---------|-----------------|\n| Chrome | 80+ |\n| Firefox | 75+ |\n| Safari | 13+ |\n| Edge | 80+ |\n\n## License\n\nMIT © [The All Seeing Eyes](https://theallseeingeyes.org)\n\n## Links\n\n- [Documentation](https://docs.theallseeingeyes.org)\n- [Dashboard](https://dashboard.theallseeingeyes.org)\n- [API Reference](https://api.theallseeingeyes.org/docs)\n- [GitHub](https://github.com/moltpill/fraudshield)\n","readmeFilename":"README.md","_rev":"1-477f4b2d5892be0378690049d9fa4078"}