160 lines
5.8 KiB
JSON
160 lines
5.8 KiB
JSON
{
|
|
"name": "@suaveplan/react-audio-fingerprint",
|
|
"version": "0.1.0",
|
|
"type": "module",
|
|
"sideEffects": false,
|
|
"browser": "./dist/index.js",
|
|
"description": "React 19 surface for client-side audio fingerprinting (Shazam-style constellation algorithm) and identity matching. Consumes FFT/spectrogram primitives from @suaveplan/audio-analysis-spectrum so the audio family has a single FFT implementation. Universal fingerprint + matcher cores; React hook + accessible component on top.",
|
|
"license": "MIT",
|
|
"author": "Suaveplan Team",
|
|
"main": "./dist/index.js",
|
|
"module": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"exports": {
|
|
"./package.json": "./package.json",
|
|
".": {
|
|
"import": {
|
|
"types": "./dist/index.d.ts",
|
|
"default": "./dist/index.js"
|
|
}
|
|
},
|
|
"./error-codes": {
|
|
"import": {
|
|
"types": "./dist/error-codes/index.d.ts",
|
|
"default": "./dist/error-codes/index.js"
|
|
}
|
|
},
|
|
"./fingerprint": {
|
|
"import": {
|
|
"types": "./dist/fingerprint/index.d.ts",
|
|
"default": "./dist/fingerprint/index.js"
|
|
}
|
|
},
|
|
"./fingerprint/peak-detector": {
|
|
"import": {
|
|
"types": "./dist/fingerprint/peak-detector/index.d.ts",
|
|
"default": "./dist/fingerprint/peak-detector/index.js"
|
|
}
|
|
},
|
|
"./fingerprint/constellation": {
|
|
"import": {
|
|
"types": "./dist/fingerprint/constellation/index.d.ts",
|
|
"default": "./dist/fingerprint/constellation/index.js"
|
|
}
|
|
},
|
|
"./fingerprint/audio-fingerprinter": {
|
|
"import": {
|
|
"types": "./dist/fingerprint/audio-fingerprinter/index.d.ts",
|
|
"default": "./dist/fingerprint/audio-fingerprinter/index.js"
|
|
}
|
|
},
|
|
"./fingerprint/fingerprint-matcher": {
|
|
"import": {
|
|
"types": "./dist/fingerprint/fingerprint-matcher/index.d.ts",
|
|
"default": "./dist/fingerprint/fingerprint-matcher/index.js"
|
|
}
|
|
},
|
|
"./corpus": {
|
|
"import": {
|
|
"types": "./dist/corpus/index.d.ts",
|
|
"default": "./dist/corpus/index.js"
|
|
}
|
|
},
|
|
"./corpus/memory-corpus": {
|
|
"import": {
|
|
"types": "./dist/corpus/memory-corpus/index.d.ts",
|
|
"default": "./dist/corpus/memory-corpus/index.js"
|
|
}
|
|
},
|
|
"./backends": {
|
|
"import": {
|
|
"types": "./dist/backends/index.d.ts",
|
|
"default": "./dist/backends/index.js"
|
|
}
|
|
},
|
|
"./backends/local-backend": {
|
|
"import": {
|
|
"types": "./dist/backends/local-backend/index.d.ts",
|
|
"default": "./dist/backends/local-backend/index.js"
|
|
}
|
|
},
|
|
"./hooks": {
|
|
"import": {
|
|
"types": "./dist/hooks/index.d.ts",
|
|
"default": "./dist/hooks/index.js"
|
|
}
|
|
},
|
|
"./hooks/use-audio-fingerprint": {
|
|
"import": {
|
|
"types": "./dist/hooks/use-audio-fingerprint/index.d.ts",
|
|
"default": "./dist/hooks/use-audio-fingerprint/index.js"
|
|
}
|
|
},
|
|
"./components": {
|
|
"import": {
|
|
"types": "./dist/components/index.d.ts",
|
|
"default": "./dist/components/index.js"
|
|
}
|
|
},
|
|
"./components/fingerprint-match-display": {
|
|
"import": {
|
|
"types": "./dist/components/fingerprint-match-display/index.d.ts",
|
|
"default": "./dist/components/fingerprint-match-display/index.js"
|
|
}
|
|
}
|
|
},
|
|
"scripts": {
|
|
"build": "vite build",
|
|
"test": "vitest run --passWithNoTests",
|
|
"test:watch": "vitest",
|
|
"test:coverage": "vitest run --coverage --passWithNoTests",
|
|
"lint": "bunx biome check src/ tests/",
|
|
"lint:fix": "bunx biome lint --fix --unsafe --max-diagnostics 500 src/ tests/",
|
|
"format": "bunx biome format --write --max-diagnostics 500 src/ tests/",
|
|
"check": "bunx biome check --write --unsafe --max-diagnostics 500 src/ tests/",
|
|
"typecheck": "bunx tsc --noEmit --composite false -p tsconfig.lib.json",
|
|
"docs:check": "bun run ../../../../scripts/docs-check.ts ."
|
|
},
|
|
"dependencies": {
|
|
"@suaveplan/audio-analysis-spectrum": "workspace:^",
|
|
"@suaveplan/audio-core": "workspace:^",
|
|
"@suaveplan/audio-engine-browser": "workspace:^",
|
|
"@suaveplan/error": "workspace:^",
|
|
"@suaveplan/types": "workspace:^",
|
|
"tslib": "catalog:build",
|
|
"zod": "catalog:forms"
|
|
},
|
|
"peerDependencies": {
|
|
"react": "^19.0.0",
|
|
"react-dom": "^19.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@suaveplan/testing": "workspace:^",
|
|
"@types/node": "catalog:",
|
|
"@types/react": "catalog:testing",
|
|
"@types/react-dom": "catalog:testing",
|
|
"@testing-library/jest-dom": "catalog:testing",
|
|
"@testing-library/react": "catalog:testing",
|
|
"@testing-library/user-event": "catalog:testing",
|
|
"@vitejs/plugin-react": "catalog:testing",
|
|
"@vitest/coverage-istanbul": "catalog:testing",
|
|
"fast-check": "catalog:testing",
|
|
"happy-dom": "catalog:testing",
|
|
"react": "catalog:testing",
|
|
"react-dom": "catalog:testing",
|
|
"typescript": "catalog:",
|
|
"vite": "catalog:build",
|
|
"vite-plugin-dts": "catalog:build",
|
|
"vitest": "catalog:testing"
|
|
},
|
|
"publishConfig": {
|
|
"registry": "https://npmjs.fq.io/",
|
|
"access": "public"
|
|
},
|
|
"files": [
|
|
"dist",
|
|
"src",
|
|
"README.md"
|
|
]
|
|
}
|