{"_id":"@aonawale/sanity-plugin-asset-source-remove-bg","name":"@aonawale/sanity-plugin-asset-source-remove-bg","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@aonawale/sanity-plugin-asset-source-remove-bg","version":"1.0.0","description":"Remove the background of your images with remove.bg API through the sanity studio","keywords":["sanity","sanity-plugin"],"homepage":"https://github.com/aonawale/sanity-plugin-asset-source-remove-bg#readme","bugs":{"url":"https://github.com/aonawale/sanity-plugin-asset-source-remove-bg/issues"},"repository":{"type":"git","url":"git+https://github.com/aonawale/sanity-plugin-asset-source-remove-bg.git"},"license":"MIT","author":{"name":"Ahmed Onawale","email":"ahmedonawale@gmail.com"},"sideEffects":false,"type":"commonjs","exports":{".":{"source":"./src/index.ts","import":"./dist/index.mjs","default":"./dist/index.js"},"./package.json":"./package.json"},"main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"clean":"rimraf lib","lint":"eslint .","prebuild":"yarn clean && plugin-kit verify-package --silent","build":"plugin-kit verify-package --silent && pkg-utils build --strict --check --clean","watch":"pkg-utils watch --strict","link-watch":"plugin-kit link-watch","prepublishOnly":"npm run build","semantic-release":"semantic-release","format":"prettier --write --cache --ignore-unknown ."},"dependencies":{"@sanity/incompatible-plugin":"^1.0.5","@sanity/ui":"^3.0.5","axios":"^0.27.2","react":"^19.1.0","sanity":"^4.0.1","styled-components":"^6.1.19"},"devDependencies":{"@parcel/packager-ts":"^2.6.0","@parcel/transformer-typescript-types":"^2.6.0","@sanity/pkg-utils":"^7.9.20","@sanity/plugin-kit":"^4.0.19","@semantic-release/changelog":"^6.0.1","@semantic-release/git":"^10.0.1","@types/react":"^19.1.9","@typescript-eslint/eslint-plugin":"^8.38.0","@typescript-eslint/parser":"^8.38.0","eslint":"^8.57.1","eslint-config-prettier":"^10.1.8","eslint-config-sanity":"^7.1.4","eslint-plugin-prettier":"^5.5.3","eslint-plugin-react":"^7.37.5","eslint-plugin-react-hooks":"^5.2.0","parcel":"^2.6.0","prettier":"^3.6.2","prettier-plugin-packagejson":"^2.5.19","react":"^19.1.1","react-dom":"^19.1.1","rimraf":"^3.0.2","sanity":"^4.2.0","semantic-release":"^19.0.3","styled-components":"^6.1.19","typescript":"^5.8.3"},"peerDependencies":{"react":"^18","react-dom":"^18","sanity":"^3"},"engines":{"node":">=18"},"browserslist":"extends @sanity/browserslist-config","module":"./dist/index.mjs","publishConfig":{"access":"public"},"sanityPlugin":{"verifyPackage":{"deprecatedDependencies":false}},"_id":"@aonawale/sanity-plugin-asset-source-remove-bg@1.0.0","gitHead":"8c294dd48ed6670806761a8aea629e738904ed32","_nodeVersion":"20.11.0","_npmVersion":"10.2.4","dist":{"integrity":"sha512-PdY/cOzVTasqvCeUt3debjGnTjOTOynF32TF0tMNzH0ud0VXSp7hxdgLoj6BQ197cA+3I2sN9a1gdpQ8AulPDA==","shasum":"b00cce6cdb8649bf11aa96b38390fa4c4cc21878","tarball":"https://registry.npmjs.org/@aonawale/sanity-plugin-asset-source-remove-bg/-/sanity-plugin-asset-source-remove-bg-1.0.0.tgz","fileCount":20,"unpackedSize":94241,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDQ+2bLLEPPWwDGxc3bDW3PvDyXehrXVoFzZFLFWSSGhgIhAOvCTLtngImrc/NlCa7VZTqfNT5Baxk2nq+lZ0DUJ73R"}]},"_npmUser":{"name":"aonawale","email":"ahmedonawale@gmail.com"},"directories":{},"maintainers":[{"name":"aonawale","email":"ahmedonawale@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sanity-plugin-asset-source-remove-bg_1.0.0_1754445992640_0.4475933138264041"},"_hasShrinkwrap":false}},"time":{"created":"2025-08-06T02:06:32.543Z","1.0.0":"2025-08-06T02:06:32.854Z","modified":"2025-08-06T02:06:33.159Z"},"maintainers":[{"name":"aonawale","email":"ahmedonawale@gmail.com"}],"description":"Remove the background of your images with remove.bg API through the sanity studio","homepage":"https://github.com/aonawale/sanity-plugin-asset-source-remove-bg#readme","keywords":["sanity","sanity-plugin"],"repository":{"type":"git","url":"git+https://github.com/aonawale/sanity-plugin-asset-source-remove-bg.git"},"author":{"name":"Ahmed Onawale","email":"ahmedonawale@gmail.com"},"bugs":{"url":"https://github.com/aonawale/sanity-plugin-asset-source-remove-bg/issues"},"license":"MIT","readme":"# sanity-plugin-asset-source-remove-bg\n\n> **NOTE**\n>\n> This is the **Sanity Studio v3 version** of sanity-plugin-asset-source-remove-bg.\n\n## What is it?\n\nPlugin for [Sanity Studio](https://www.sanity.io) providing asset source for removing the background of existing images with the [Remove.bg](https://www.remove.bg) API.\n_Caution: The service offers 50 free preview images each month, which are of a lower quality, but you are able to purchase credits at their website. (I am not affiliated by any means with Remove.bg)_\n\n**Features**\n\n- Remove the background of images.\n- Select the type and format of the images.\n- See remaining free previews and credits left in your account.\n- Select which Sanity user roles are allowed to use the API.\n\n**What might be added**\n\n- Set a custom background color or picture.\n- Batch conversion\n- Uploading an image directly to the plugin for bg removal without storing it in the sanity library\n- ??? any suggestions?\n\n  ![Remove BG Asset Source](assets/remove-bg.gif)\n\n## Installation\n\n```\nnpm install --save sanity-plugin-asset-source-remove-bg\n```\n\nor\n\n```\nyarn add sanity-plugin-asset-source-remove-bg\n```\n\n## Usage\n\nParameters:\n\n- apiKey: String | Can be created here: [Remove.bg](https://remove.bg/dashboard#api-key)\n- allowedUserRoles?: String[]\n\n  Add it as a plugin in sanity.config.ts (or .js):\n\n```\n import {createConfig} from 'sanity'\n import {removeBgAssetSourcePlugin} from 'sanity-plugin-remove-bg-converter'\n\n export const createConfig({\n     /...\n     plugins: [\n         removeBgAssetSourcePlugin({\n             apiKey: \"my-api-key\",\n             allowedUserRoles: [\"administrator\", \"editor\"]\n         })\n     ]\n })\n```\n\n## Develop & test\n\nMake sure to run `npm run build` once, then run\n\n```bash\nnpm run link-watch\n```\n\nIn another shell, `cd` to your test studio and run:\n\n```bash\nnpx yalc add sanity-plugin-asset-source-giphy --link && yarn install\n```\n\nNow, changes in this repo will be automatically built and pushed to the studio,\ntriggering hotreload. Yalc avoids issues with react-hooks that are typical when using yarn/npm link.\n\n### About build & watch\n\nThis plugin uses [@sanity/plugin-kit](https://github.com/sanity-io/plugin-kit)\nwith default configuration for build & watch scripts.\n\n## License\n\nMIT © Rein Undheim\nSee LICENSE\n","readmeFilename":"README.md","_rev":"1-7e480ee8c5cead6e317393442b402909"}