{"_id":"@hugomrdias/filsnap-adapter","name":"@hugomrdias/filsnap-adapter","dist-tags":{"latest":"3.3.9"},"versions":{"3.3.9":{"name":"@hugomrdias/filsnap-adapter","type":"module","version":"3.3.9","description":"Adapter for installing Filsnap","author":{"name":"Protocol Labs"},"license":"(Apache-2.0 AND MIT)","homepage":"https://github.com/filecoin-project/filsnap/tree/master/packages/adapter","repository":{"type":"git","url":"git+https://github.com/filecoin-project/filsnap.git","directory":"packages/adapter"},"bugs":{"url":"https://github.com/filecoin-project/filsnap/issues"},"keywords":["filecoin","metamask","snap","dapp"],"main":"./dist/src/index.js","module":"./dist/src/index.js","types":"./dist/src/index.d.ts","exports":{".":{"types":"./dist/src/index.d.ts","default":"./dist/src/index.js"},"./install":{"types":"./dist/src/install.d.ts","default":"./dist/src/install.js"}},"typesVersions":{"*":{"install":["./dist/src/install"]}},"wireit":{"build":{"command":"tsc --build --pretty","clean":"if-file-deleted","files":["src/**/*.ts","tsconfig.json"],"output":["dist/**"]}},"dependencies":{"iso-base":"^4.2.1","semver":"^7.7.3"},"devDependencies":{"@metamask/snaps-sdk":"10.0.0","@playwright/test":"^1.56.1","@types/node":"^24.10.1","@types/semver":"^7.7.1","metamask-testing-tools":"^2.2.9","type-fest":"^5.2.0","typescript":"5.9.3","filsnap":"^1.10.2"},"peerDependencies":{"iso-filecoin":"7.x"},"publishConfig":{"provenance":false},"depcheck":{"specials":["bin"],"ignorePatterns":["dist",".wireit"],"ignores":["@types/*","assert","playwright-test"]},"scripts":{"lint":"tsc --build && biome check --no-errors-on-unmatched --files-ignore-unknown=true","build":"wireit","test":"pnpm run build && playwright test"},"_id":"@hugomrdias/filsnap-adapter@3.3.9","_integrity":"sha512-iEXXrstHZ8M5y2Zd3Mh84YFuUKYhUTRa+ZHhd69nc/tp7zmo+kwQCYQNEgkrh9HCmVV0A4EL6wZdVukROKf+vg==","_resolved":"/private/var/folders/nl/tgwx66y15fgg4ycptcql5vhm0000gn/T/dc0730354baa872c49f3bbe3e77e4ae2/hugomrdias-filsnap-adapter-3.3.9.tgz","_from":"file:hugomrdias-filsnap-adapter-3.3.9.tgz","_nodeVersion":"24.8.0","_npmVersion":"11.6.0","dist":{"integrity":"sha512-iEXXrstHZ8M5y2Zd3Mh84YFuUKYhUTRa+ZHhd69nc/tp7zmo+kwQCYQNEgkrh9HCmVV0A4EL6wZdVukROKf+vg==","shasum":"54e7a4c761c51ac9a360b0b7e6d950e1283d9c0d","tarball":"https://registry.npmjs.org/@hugomrdias/filsnap-adapter/-/filsnap-adapter-3.3.9.tgz","fileCount":30,"unpackedSize":93362,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCDvdvaXMf4NoLkoedFc1YUB0NEMihG1oQMgEzYg2lMgQIhAIwzR/yEY7OhLsTbvxt1AJBIJWEPRydd7wZAtvOmTUbQ"}]},"_npmUser":{"name":"hugomrdias","email":"hugomrdias@gmail.com"},"directories":{},"maintainers":[{"name":"hugomrdias","email":"hugomrdias@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/filsnap-adapter_3.3.9_1762997414333_0.5327244398603574"},"_hasShrinkwrap":false}},"time":{"created":"2025-11-13T01:30:14.212Z","3.3.9":"2025-11-13T01:30:14.536Z","modified":"2025-11-13T01:30:14.795Z"},"maintainers":[{"name":"hugomrdias","email":"hugomrdias@gmail.com"}],"description":"Adapter for installing Filsnap","homepage":"https://github.com/filecoin-project/filsnap/tree/master/packages/adapter","keywords":["filecoin","metamask","snap","dapp"],"repository":{"type":"git","url":"git+https://github.com/filecoin-project/filsnap.git","directory":"packages/adapter"},"author":{"name":"Protocol Labs"},"bugs":{"url":"https://github.com/filecoin-project/filsnap/issues"},"license":"(Apache-2.0 AND MIT)","readme":"# Filsnap adapter\n\n[![NPM Version](https://img.shields.io/npm/v/filsnap-adapter.svg)](https://www.npmjs.com/package/filsnap-adapter)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n[![Adapter](https://github.com/filecoin-project/filsnap/actions/workflows/adapter.yml/badge.svg)](https://github.com/filecoin-project/filsnap/actions/workflows/adapter.yml)\n\n> Adapter for [Filsnap](../snap/)\n\n## Installation\n\n```bash\npnpm install filsnap-adapter\n```\n\n## Usage\n\nThis adapter interacts directly with the snap, so Metamask with support for Snaps needs to be installed and unlocked in the browser.\n\n```js\nimport { FilsnapAdapter } from 'filsnap-adapter'\n\nconst snap = await FilsnapAdapter.connect({ network: 'testnet' }, 'npm:filsnap')\n\nconst { error, result } = await snap.getAddress()\n\nif (error) {\n  console.error(error)\n} else {\n  console.log(result)\n  // t1d2xrzcslx7xlbbylc5c3d5lvandqw4iwl6epxba\n}\n\n```\n\nCheck out the [demo](../../examples/demo) for a working example and the [API](https://filecoin-project.github.io/filsnap/modules/filsnap-adapter.html) for more details.\n\n## Contributing\n\nRead contributing [guidelines](../../.github/CONTRIBUTING.md).\n\n[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/filecoin-project/filsnap)\n\n## License\n\nDual-licensed: [MIT](../../LICENSE-MIT), [Apache Software License v2](../../LICENSE-APACHE), by way of the\n[Permissive License Stack](https://protocol.ai/blog/announcing-the-permissive-license-stack/).\n","readmeFilename":"README.md","_rev":"1-dc12997b9310df55d0c0bc609cd0f467"}