├── .editorconfig ├── .eslintignore ├── .eslintrc.js ├── .github └── workflows │ ├── test.yml │ └── update-benchmark.yml ├── .gitignore ├── .npmrc ├── .prettierrc.json ├── CHANGELOG.md ├── LICENSE ├── README.md ├── benchmarks.tar.gz ├── benchmarks ├── d-adreno.json ├── d-amd.json ├── d-apple.json ├── d-geforce.json ├── d-intel.json ├── d-nvidia.json ├── d-radeon.json ├── m-adreno.json ├── m-apple-ipad.json ├── m-apple.json ├── m-intel.json ├── m-mali-t.json ├── m-mali.json ├── m-nvidia.json ├── m-powervr.json └── m-samsung.json ├── data └── analytics.csv ├── example ├── index.html └── index.ts ├── index.html ├── package.json ├── rollup ├── config.dev.ts └── config.lib.ts ├── scripts ├── analytics_embed.js ├── analytics_parser.js ├── internalBenchmarkResults.ts ├── types.ts └── update_benchmarks.ts ├── src ├── index.ts └── internal │ ├── blocklistedGPUS.ts │ ├── cleanRenderer.ts │ ├── deobfuscateAppleGPU.ts │ ├── deobfuscateRenderer.ts │ ├── deviceInfo.ts │ ├── error.ts │ ├── getGPUVersion.ts │ ├── getLevenshteinDistance.ts │ ├── getWebGLContext.ts │ ├── ssr.ts │ └── util.ts ├── test ├── data.ts ├── index.test.ts ├── ssr.test.ts └── utils.ts ├── tsconfig.json └── yarn.lock /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmndrs/detect-gpu/HEAD/.editorconfig -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmndrs/detect-gpu/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmndrs/detect-gpu/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.github/workflows/update-benchmark.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmndrs/detect-gpu/HEAD/.github/workflows/update-benchmark.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmndrs/detect-gpu/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | package-lock=false 2 | -------------------------------------------------------------------------------- /.prettierrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmndrs/detect-gpu/HEAD/.prettierrc.json -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmndrs/detect-gpu/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmndrs/detect-gpu/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmndrs/detect-gpu/HEAD/README.md -------------------------------------------------------------------------------- /benchmarks.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmndrs/detect-gpu/HEAD/benchmarks.tar.gz -------------------------------------------------------------------------------- /benchmarks/d-adreno.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmndrs/detect-gpu/HEAD/benchmarks/d-adreno.json -------------------------------------------------------------------------------- /benchmarks/d-amd.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmndrs/detect-gpu/HEAD/benchmarks/d-amd.json -------------------------------------------------------------------------------- /benchmarks/d-apple.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmndrs/detect-gpu/HEAD/benchmarks/d-apple.json -------------------------------------------------------------------------------- /benchmarks/d-geforce.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmndrs/detect-gpu/HEAD/benchmarks/d-geforce.json -------------------------------------------------------------------------------- /benchmarks/d-intel.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmndrs/detect-gpu/HEAD/benchmarks/d-intel.json -------------------------------------------------------------------------------- /benchmarks/d-nvidia.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmndrs/detect-gpu/HEAD/benchmarks/d-nvidia.json -------------------------------------------------------------------------------- /benchmarks/d-radeon.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmndrs/detect-gpu/HEAD/benchmarks/d-radeon.json -------------------------------------------------------------------------------- /benchmarks/m-adreno.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmndrs/detect-gpu/HEAD/benchmarks/m-adreno.json -------------------------------------------------------------------------------- /benchmarks/m-apple-ipad.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmndrs/detect-gpu/HEAD/benchmarks/m-apple-ipad.json -------------------------------------------------------------------------------- /benchmarks/m-apple.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmndrs/detect-gpu/HEAD/benchmarks/m-apple.json -------------------------------------------------------------------------------- /benchmarks/m-intel.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmndrs/detect-gpu/HEAD/benchmarks/m-intel.json -------------------------------------------------------------------------------- /benchmarks/m-mali-t.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmndrs/detect-gpu/HEAD/benchmarks/m-mali-t.json -------------------------------------------------------------------------------- /benchmarks/m-mali.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmndrs/detect-gpu/HEAD/benchmarks/m-mali.json -------------------------------------------------------------------------------- /benchmarks/m-nvidia.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmndrs/detect-gpu/HEAD/benchmarks/m-nvidia.json -------------------------------------------------------------------------------- /benchmarks/m-powervr.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmndrs/detect-gpu/HEAD/benchmarks/m-powervr.json -------------------------------------------------------------------------------- /benchmarks/m-samsung.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmndrs/detect-gpu/HEAD/benchmarks/m-samsung.json -------------------------------------------------------------------------------- /data/analytics.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmndrs/detect-gpu/HEAD/data/analytics.csv -------------------------------------------------------------------------------- /example/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmndrs/detect-gpu/HEAD/example/index.html -------------------------------------------------------------------------------- /example/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmndrs/detect-gpu/HEAD/example/index.ts -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmndrs/detect-gpu/HEAD/index.html -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmndrs/detect-gpu/HEAD/package.json -------------------------------------------------------------------------------- /rollup/config.dev.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmndrs/detect-gpu/HEAD/rollup/config.dev.ts -------------------------------------------------------------------------------- /rollup/config.lib.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmndrs/detect-gpu/HEAD/rollup/config.lib.ts -------------------------------------------------------------------------------- /scripts/analytics_embed.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmndrs/detect-gpu/HEAD/scripts/analytics_embed.js -------------------------------------------------------------------------------- /scripts/analytics_parser.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmndrs/detect-gpu/HEAD/scripts/analytics_parser.js -------------------------------------------------------------------------------- /scripts/internalBenchmarkResults.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmndrs/detect-gpu/HEAD/scripts/internalBenchmarkResults.ts -------------------------------------------------------------------------------- /scripts/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmndrs/detect-gpu/HEAD/scripts/types.ts -------------------------------------------------------------------------------- /scripts/update_benchmarks.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmndrs/detect-gpu/HEAD/scripts/update_benchmarks.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmndrs/detect-gpu/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/internal/blocklistedGPUS.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmndrs/detect-gpu/HEAD/src/internal/blocklistedGPUS.ts -------------------------------------------------------------------------------- /src/internal/cleanRenderer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmndrs/detect-gpu/HEAD/src/internal/cleanRenderer.ts -------------------------------------------------------------------------------- /src/internal/deobfuscateAppleGPU.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmndrs/detect-gpu/HEAD/src/internal/deobfuscateAppleGPU.ts -------------------------------------------------------------------------------- /src/internal/deobfuscateRenderer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmndrs/detect-gpu/HEAD/src/internal/deobfuscateRenderer.ts -------------------------------------------------------------------------------- /src/internal/deviceInfo.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmndrs/detect-gpu/HEAD/src/internal/deviceInfo.ts -------------------------------------------------------------------------------- /src/internal/error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmndrs/detect-gpu/HEAD/src/internal/error.ts -------------------------------------------------------------------------------- /src/internal/getGPUVersion.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmndrs/detect-gpu/HEAD/src/internal/getGPUVersion.ts -------------------------------------------------------------------------------- /src/internal/getLevenshteinDistance.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmndrs/detect-gpu/HEAD/src/internal/getLevenshteinDistance.ts -------------------------------------------------------------------------------- /src/internal/getWebGLContext.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmndrs/detect-gpu/HEAD/src/internal/getWebGLContext.ts -------------------------------------------------------------------------------- /src/internal/ssr.ts: -------------------------------------------------------------------------------- 1 | export const isSSR = typeof window === 'undefined'; 2 | -------------------------------------------------------------------------------- /src/internal/util.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmndrs/detect-gpu/HEAD/src/internal/util.ts -------------------------------------------------------------------------------- /test/data.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmndrs/detect-gpu/HEAD/test/data.ts -------------------------------------------------------------------------------- /test/index.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmndrs/detect-gpu/HEAD/test/index.test.ts -------------------------------------------------------------------------------- /test/ssr.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmndrs/detect-gpu/HEAD/test/ssr.test.ts -------------------------------------------------------------------------------- /test/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmndrs/detect-gpu/HEAD/test/utils.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmndrs/detect-gpu/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmndrs/detect-gpu/HEAD/yarn.lock --------------------------------------------------------------------------------