{"_id":"@andy_tfh/idkit","_rev":"2-4769397a2238ba1992f050cecc5d8d4e","name":"@andy_tfh/idkit","dist-tags":{"dev":"2.4.3-dev.0","latest":"2.4.4-dev.0"},"versions":{"2.4.3-dev.0":{"name":"@andy_tfh/idkit","version":"2.4.3-dev.0","keywords":["identity","ID","web3","proof-of-personhood","sybil resistance"],"license":"MIT","_id":"@andy_tfh/idkit@2.4.3-dev.0","maintainers":[{"name":"andy_tfh","email":"andy.wang@toolsforhumanity.com"}],"homepage":"https://docs.worldcoin.org/id/idkit","bugs":{"url":"https://github.com/worldcoin/idkit-js/issues"},"dist":{"shasum":"79feae8a1a2037d06857c473d14cd89a888e4a30","tarball":"https://registry.npmjs.org/@andy_tfh/idkit/-/idkit-2.4.3-dev.0.tgz","fileCount":14,"integrity":"sha512-HR67CXhDm6W8vxIXs/xf/OUWPdB24ROEkBqGfj+QyH3cpztUCxV/hA3AGmFeCz3Yv71ha038Lk61pfXmBol7ng==","signatures":[{"sig":"MEQCICIj9IO8I9NWK7h2+fxRjx1ObaviNSFDuVrCIFHKkBYGAiA7rOtsKlMScyXI3HcIlprCtmSjFaZ2RCExls52BOPKBA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":241991},"main":"src/index.ts","type":"module","types":"src/index.ts","engines":{"node":">=12.4"},"exports":{".":{"import":{"types":"./build/index.d.ts","default":"./build/index.js"},"require":{"types":"./build/index.d.cts","default":"./build/index.cjs"}},"./internal":{"import":{"types":"./build/internal.d.ts","default":"./build/internal.js"},"require":{"types":"./build/internal.d.cts","default":"./build/internal.cjs"}}},"gitHead":"448968b00b0bbbda487e5f4b1279d173cfeea25c","private":false,"scripts":{"dev":"tsup --watch","lint":"eslint src --ext .ts","build":"npm run build:css && tsup","build:css":"npx tailwindcss -i ./src/styles/styles.css -o ./build/index.css --minify","prepublishOnly":"npm run build"},"_npmUser":{"name":"andy_tfh","email":"andy.wang@toolsforhumanity.com"},"overrides":{"rollup":"^4.22.4"},"repository":{"url":"git+https://github.com/worldcoin/idkit-js.git","type":"git","directory":"packages/react"},"_npmVersion":"10.8.2","description":"The identity SDK. Privacy-preserving identity and proof of personhood with World ID.","directories":{},"_nodeVersion":"20.19.4","dependencies":{"qrcode":"^1.5.3","zustand":"^4.5.4","framer-motion":"^11.2.14","copy-to-clipboard":"^3.3.3","@tailwindcss/forms":"^0.5.7","@radix-ui/react-toast":"^1.2.1","@worldcoin/idkit-core":"workspace:*","@radix-ui/react-dialog":"^1.1.1"},"publishConfig":{"access":"public"},"typesVersions":{"*":{"*":["./build/*/index.d.ts","./build/index.d.ts"],"internal":["./build/internal.d.ts"]}},"_hasShrinkwrap":false,"devDependencies":{"clsx":"^2.1.1","tsup":"^8.1.0","react":"18.2.0","eslint":"8.54.0","postcss":"^8.4.39","prettier":"^3.3.2","react-dom":"18.2.0","typescript":"^5.5.3","@types/node":"18.11.9","tailwindcss":"^3.4.4","@types/react":"18.0.25","autoprefixer":"^10.4.19","@types/qrcode":"^1.5.5","@types/react-dom":"18.0.9","eslint-plugin-react":"^7.34.3","eslint-plugin-compat":"^4.2.0","eslint-plugin-import":"2.26.0","eslint-config-prettier":"^8.10.0","eslint-plugin-jsx-a11y":"^6.9.0","eslint-plugin-prettier":"^4.2.1","@typescript-eslint/parser":"^6.21.0","eslint-plugin-react-hooks":"^4.6.2","eslint-plugin-tailwindcss":"^3.17.4","@typescript-eslint/eslint-plugin":"^6.21.0","prettier-plugin-sort-imports-desc":"^1.0.0"},"peerDependencies":{"react":">18.0.0","react-dom":">18.0.0"},"_npmOperationalInternal":{"tmp":"tmp/idkit_2.4.3-dev.0_1769904068421_0.2951495627700158","host":"s3://npm-registry-packages-npm-production"}},"2.4.4-dev.0":{"dependencies":{"@radix-ui/react-dialog":"^1.1.1","@radix-ui/react-toast":"^1.2.1","@tailwindcss/forms":"^0.5.7","@andy_tfh/idkit-core":"2.1.1-dev.0","copy-to-clipboard":"^3.3.3","framer-motion":"^11.2.14","qrcode":"^1.5.3","zustand":"^4.5.4"},"description":"The identity SDK. Privacy-preserving identity and proof of personhood with World ID.","devDependencies":{"@types/node":"18.11.9","@types/qrcode":"^1.5.5","@types/react":"18.0.25","@types/react-dom":"18.0.9","@typescript-eslint/eslint-plugin":"^6.21.0","@typescript-eslint/parser":"^6.21.0","autoprefixer":"^10.4.19","clsx":"^2.1.1","eslint":"8.54.0","eslint-config-prettier":"^8.10.0","eslint-plugin-compat":"^4.2.0","eslint-plugin-import":"2.26.0","eslint-plugin-jsx-a11y":"^6.9.0","eslint-plugin-prettier":"^4.2.1","eslint-plugin-react":"^7.34.3","eslint-plugin-react-hooks":"^4.6.2","eslint-plugin-tailwindcss":"^3.17.4","postcss":"^8.4.39","prettier":"^3.3.2","prettier-plugin-sort-imports-desc":"^1.0.0","react":"18.2.0","react-dom":"18.2.0","tailwindcss":"^3.4.4","tsup":"^8.1.0","typescript":"^5.5.3"},"overrides":{"rollup":"^4.22.4"},"engines":{"node":">=12.4"},"exports":{".":{"import":{"types":"./build/index.d.ts","default":"./build/index.js"},"require":{"types":"./build/index.d.cts","default":"./build/index.cjs"}},"./internal":{"import":{"types":"./build/internal.d.ts","default":"./build/internal.js"},"require":{"types":"./build/internal.d.cts","default":"./build/internal.cjs"}}},"homepage":"https://docs.worldcoin.org/id/idkit","keywords":["identity","ID","web3","proof-of-personhood","sybil resistance"],"license":"MIT","main":"src/index.ts","name":"@andy_tfh/idkit","peerDependencies":{"react":">18.0.0","react-dom":">18.0.0"},"private":false,"publishConfig":{"access":"public"},"repository":{"directory":"packages/react","type":"git","url":"git+https://github.com/worldcoin/idkit-js.git"},"scripts":{"build":"npm run build:css && tsup","build:css":"npx tailwindcss -i ./src/styles/styles.css -o ./build/index.css --minify","dev":"tsup --watch","lint":"eslint src --ext .ts","prepublishOnly":"npm run build"},"type":"module","types":"src/index.ts","typesVersions":{"*":{"*":["./build/*/index.d.ts","./build/index.d.ts"],"internal":["./build/internal.d.ts"]}},"version":"2.4.4-dev.0","_id":"@andy_tfh/idkit@2.4.4-dev.0","gitHead":"448968b00b0bbbda487e5f4b1279d173cfeea25c","bugs":{"url":"https://github.com/worldcoin/idkit-js/issues"},"_nodeVersion":"20.19.4","_npmVersion":"10.8.2","dist":{"integrity":"sha512-WM5XqstIk9bz0bQX1fle6rQVfPvXEjjCi3zE2axIPjFgMlN2ut4oVPxiwNG/mAkD99WhqzORHljKm/iV9Aw4AQ==","shasum":"263a12f702e329e6f85f3441dc9b78735bf2fd64","tarball":"https://registry.npmjs.org/@andy_tfh/idkit/-/idkit-2.4.4-dev.0.tgz","fileCount":14,"unpackedSize":241906,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCICfqQNt3+sdfOOO4M4iTcmheycrEnOEO8YjWt2+NfYFbAiBodyYEv8wXqBuT9eOVA7krpue8Xk+WaBsMQWMKUGTbow=="}]},"_npmUser":{"name":"andy_tfh","email":"andy.wang@toolsforhumanity.com"},"directories":{},"maintainers":[{"name":"andy_tfh","email":"andy.wang@toolsforhumanity.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/idkit_2.4.4-dev.0_1769904454389_0.08765752061812182"},"_hasShrinkwrap":false}},"time":{"created":"2026-02-01T00:01:08.219Z","modified":"2026-02-01T00:07:34.655Z","2.4.3-dev.0":"2026-02-01T00:01:08.586Z","2.4.4-dev.0":"2026-02-01T00:07:34.544Z"},"bugs":{"url":"https://github.com/worldcoin/idkit-js/issues"},"license":"MIT","homepage":"https://docs.worldcoin.org/id/idkit","keywords":["identity","ID","web3","proof-of-personhood","sybil resistance"],"repository":{"directory":"packages/react","type":"git","url":"git+https://github.com/worldcoin/idkit-js.git"},"description":"The identity SDK. Privacy-preserving identity and proof of personhood with World ID.","maintainers":[{"name":"andy_tfh","email":"andy.wang@toolsforhumanity.com"}],"readme":"# IDKit JS Widget\n\nThis folder (`/idkit`) contains the main code for the widget. For instructions on **how to use the widget**, please refer to the repository's main [README](/README.md).\n\n## ℹ️ About the Codebase\n\n-   The widget is made to work mainly with vanilla JS code (no framework required). The starting point can be found in `src/vanilla.tsx`.\n-   The React wrapper is found on `src/components/IDKitWidget/index.ts`.\n\n## 🧑‍💻 Development & Testing\n\nTo develop locally and contribute to this package, you can simply follow these instructions after cloning the repo.\n\n-   Install dependencies\n    ```bash\n    # be sure to run this in the root folder of the repo\n    yarn install\n    ```\n-   Run tests\n    ```bash\n    # runs in the /idkit folder\n    cd idkit/\n    yarn test\n    ```\n-   Run local test project\n    ```bash\n    # runs in the /idkit folder\n    yarn dev\n    ```\n-   Open browser at `http://localhost:3000`\n-   To build the production bundle you can simply run.\n    ```bash\n    # runs in the /idkit folder\n    yarn build\n    ```\n\n## Usage\n\n### Set Language Explicitly\n```tsx\n  <IDKitWidget\n    app_id=\"your_app_id\"\n    action=\"your_action\"\n    onSuccess={handleSuccess}\n    language=\"es\" // Spanish\n  >\n    {({ open }) => <button onClick={open}>Verify with World ID</button>}\n  </IDKitWidget>\n  ```\n \n  ### Automatic Language Detection (Default)\n  ```tsx\n  <IDKitWidget\n    app_id=\"your_app_id\"\n    action=\"your_action\"\n    onSuccess={handleSuccess}\n    // No language prop needed - will auto-detect\n  >\n    {({ open }) => <button onClick={open}>Verify with World ID</button>}\n  </IDKitWidget>\n  ```\n\n## Supported Languages\n\nCurrently supported languages:\n- `en` - English (default)\n- `es` - Spanish\n- `th` - Thai","readmeFilename":"README.md"}