{"_id":"100kb-sdk","_rev":"6-c5cfb2b4fc701371ee719309831b00a9","name":"100kb-sdk","dist-tags":{"latest":"1.1.2"},"versions":{"1.0.0":{"name":"100kb-sdk","version":"1.0.0","keywords":["100kb","wasm","webassembly","image-compression","pdf-compression","client-side","jpeg-compressor","png-compressor","pdf-opt","passport-photo","background-remover","b2b-sdk"],"author":{"url":"info@100kb.in","name":"100KB Tools"},"license":"MIT","_id":"100kb-sdk@1.0.0","maintainers":[{"name":"kriva","email":"abhishekadhikari197@gmail.com"}],"homepage":"https://www.100kb.in/en/developer","bugs":{"url":"https://github.com/Abhishek2212000/100kb/issues"},"dist":{"shasum":"478bcb369a717ff5ac8e38c3312a1a6133469ca3","tarball":"https://registry.npmjs.org/100kb-sdk/-/100kb-sdk-1.0.0.tgz","fileCount":3,"integrity":"sha512-UuHydk3MRzBfQG5e9uWcEAXYKLe0TkCg50m3fQpEKBtXjVznul4DJgOMCQOOSpFt+o9MpY8dDlgQD3vtVSfs2w==","signatures":[{"sig":"MEQCID/idx2wmSjEssJA9F77Sayy9TFCRuKfHIHd6/Udf0H4AiBt2dGg1SgnHysFGMJnPxQHvpOsM9JkmNOfHgqbtMPGGQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9758},"main":"index.ts","types":"index.ts","module":"index.ts","gitHead":"5b18a012fe03dda37635029b4544de2530997e20","_npmUser":{"name":"kriva","email":"abhishekadhikari197@gmail.com"},"repository":{"url":"git+https://github.com/Abhishek2212000/100kb.git","type":"git"},"_npmVersion":"11.9.0","description":"Official B2B WebAssembly Client-Side Image & PDF Optimization SDK. 100% Zero-Upload, Browser GPU/RAM Execution, 0ms Backend Latency.","directories":{},"_nodeVersion":"24.14.0","dependencies":{"pdf-lib":"^1.17.1"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/100kb-sdk_1.0.0_1786565915131_0.9418432258783132","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"100kb-sdk","version":"1.0.1","keywords":["100kb","wasm","webassembly","image-compression","pdf-compression","client-side","jpeg-compressor","png-compressor","pdf-opt","passport-photo","background-remover","b2b-sdk"],"author":{"url":"info@100kb.in","name":"100KB Tools"},"license":"MIT","_id":"100kb-sdk@1.0.1","maintainers":[{"name":"kriva","email":"abhishekadhikari197@gmail.com"}],"homepage":"https://www.100kb.in/en/developer","bugs":{"url":"https://github.com/Abhishek2212000/100kb/issues"},"dist":{"shasum":"b3c724b80c22eb9b9152553b701f2fe01747b29c","tarball":"https://registry.npmjs.org/100kb-sdk/-/100kb-sdk-1.0.1.tgz","fileCount":3,"integrity":"sha512-2qPsuYzD1ujBmSfPajf2Tvx4OXh60meJnwYhK6TRzMPFOmXxkcPHqIMd/zymy6P9+TLV5nDjksIgLlKZvBJSgQ==","signatures":[{"sig":"MEYCIQCosaOZCRi74nFnwvbTZ7skl0FcRUN0UrPO/ZoZ7LseewIhAOVhid7XD5yiwBaxU0NuLUKxIGRlq8Aej55BRDzVVki0","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9758},"main":"index.ts","types":"index.ts","module":"index.ts","gitHead":"d2a434148d3abf778ad1b0d4bd3b76f4fd902444","_npmUser":{"name":"kriva","email":"abhishekadhikari197@gmail.com"},"repository":{"url":"git+https://github.com/Abhishek2212000/100kb.git","type":"git"},"_npmVersion":"10.9.8","description":"Official B2B WebAssembly Client-Side Image & PDF Optimization SDK. 100% Zero-Upload, Browser GPU/RAM Execution, 0ms Backend Latency.","directories":{},"_nodeVersion":"22.23.2","dependencies":{"pdf-lib":"^1.17.1"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/100kb-sdk_1.0.1_1786592500277_0.19326921764013605","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"100kb-sdk","version":"1.0.2","keywords":["100kb","wasm","webassembly","image-compression","pdf-compression","client-side","jpeg-compressor","png-compressor","pdf-opt","passport-photo","background-remover","b2b-sdk"],"author":{"url":"info@100kb.in","name":"100KB Tools"},"license":"MIT","_id":"100kb-sdk@1.0.2","maintainers":[{"name":"kriva","email":"abhishekadhikari197@gmail.com"}],"homepage":"https://www.100kb.in/en/developer","bugs":{"url":"https://github.com/Abhishek2212000/100kb/issues"},"dist":{"shasum":"d189160c5eeab01344a2e89b5012f688b49aa9c3","tarball":"https://registry.npmjs.org/100kb-sdk/-/100kb-sdk-1.0.2.tgz","fileCount":3,"integrity":"sha512-ho3QV8LEK69yLbGYvpKa7XXpjwWKMIwiBHZHRKCIKfTqjPfqaQfr56H3N5HGjg9L4gF3odDlUQjT2eZf+ZQCVw==","signatures":[{"sig":"MEUCIHV+NN99BmMQO/FhqCZXFNWfsiKmkm+Wfsgn63dKzT5BAiEA2Ox4LFkyhHiN+un7dxbb8X7mksippaWX/yIJzwpE8yk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9401},"main":"index.ts","types":"index.ts","module":"index.ts","gitHead":"83bf1bfb8ad9b076ad07faa3d0e5b0c0420cac48","_npmUser":{"name":"kriva","email":"abhishekadhikari197@gmail.com"},"repository":{"url":"git+https://github.com/Abhishek2212000/100kb.git","type":"git"},"_npmVersion":"10.9.8","description":"Official B2B WebAssembly Client-Side Image & PDF Optimization SDK. 100% Zero-Upload, Browser GPU/RAM Execution, 0ms Backend Latency.","directories":{},"_nodeVersion":"22.23.1","dependencies":{"pdf-lib":"^1.17.1"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/100kb-sdk_1.0.2_1786603700588_0.016266263274585357","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"100kb-sdk","version":"1.1.0","keywords":["100kb","wasm","webassembly","image-compression","pdf-compression","client-side","jpeg-compressor","png-compressor","pdf-opt","passport-photo","background-remover","b2b-sdk"],"author":{"url":"info@100kb.in","name":"100KB Tools"},"license":"MIT","_id":"100kb-sdk@1.1.0","maintainers":[{"name":"kriva","email":"abhishekadhikari197@gmail.com"}],"homepage":"https://www.100kb.in/en/developer","bugs":{"url":"https://github.com/Abhishek2212000/100kb/issues"},"dist":{"shasum":"e0848e2011947b6d9c88b28877bd025af83ccd31","tarball":"https://registry.npmjs.org/100kb-sdk/-/100kb-sdk-1.1.0.tgz","fileCount":3,"integrity":"sha512-ZuQHh9lVYliMe0e+jbOdVkyU7gVALo1Pn/teiwj5ZcAa8oBORqObO0yGLpWoihqhXlMmQPUa4osJhOmikTBtpw==","signatures":[{"sig":"MEUCIQDRFN0HKv9rx+VfUfsQNqwwwtJ6DISW+GnTwEZhv/MjmAIgN3dS+TXl2srnPcrXB7zJdaKwXFZDXaICZKmBdhSDsHI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":16452},"main":"index.ts","types":"index.ts","module":"index.ts","gitHead":"7a0b072cee9c98f166fa5d135353c4f82aad7a22","_npmUser":{"name":"kriva","email":"abhishekadhikari197@gmail.com"},"repository":{"url":"git+https://github.com/Abhishek2212000/100kb.git","type":"git"},"_npmVersion":"10.9.8","description":"Official B2B WebAssembly Client-Side Image & PDF Optimization SDK. 100% Zero-Upload, Browser GPU/RAM Execution, 0ms Backend Latency.","directories":{},"_nodeVersion":"22.23.2","dependencies":{"pdf-lib":"^1.17.1"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/100kb-sdk_1.1.0_1786623396237_0.25550385853673196","host":"s3://npm-registry-packages-npm-production"}},"1.1.1":{"name":"100kb-sdk","version":"1.1.1","keywords":["100kb","wasm","webassembly","image-compression","pdf-compression","client-side","jpeg-compressor","png-compressor","pdf-opt","passport-photo","background-remover","b2b-sdk"],"author":{"url":"info@100kb.in","name":"100KB Tools"},"license":"MIT","_id":"100kb-sdk@1.1.1","maintainers":[{"name":"kriva","email":"abhishekadhikari197@gmail.com"}],"homepage":"https://www.100kb.in/en/developer","bugs":{"url":"https://github.com/Abhishek2212000/100kb/issues"},"dist":{"shasum":"4c0ccbe13c7b9c1fb2b6ebed915a96fd2313fa1e","tarball":"https://registry.npmjs.org/100kb-sdk/-/100kb-sdk-1.1.1.tgz","fileCount":3,"integrity":"sha512-9f+Y0YH47obwZJ4eKtRuk1Eix5yEj3iZY1E1nA99hiTMDsXI/snqXKbqPN2Fgvas/ovNdHfS8dZj+ZRtRtZpJA==","signatures":[{"sig":"MEUCIEdI6Qyp31FZCINybnsPt3//B5I0Jnjcq4FiAfyXeniHAiEA28V03VIa5eMsC0HoNSEkcBgCwbTRj7v6zgR2CNDGMr0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":20201},"main":"index.ts","types":"index.ts","module":"index.ts","gitHead":"b0bc25f048221dd9816bf52a72ff4a4f93aa9f19","_npmUser":{"name":"kriva","email":"abhishekadhikari197@gmail.com"},"repository":{"url":"git+https://github.com/Abhishek2212000/100kb.git","type":"git"},"_npmVersion":"10.9.8","description":"Official B2B WebAssembly Client-Side Image & PDF Optimization SDK. 100% Zero-Upload, Browser GPU/RAM Execution, 0ms Backend Latency.","directories":{},"_nodeVersion":"22.23.1","dependencies":{"pdf-lib":"^1.17.1"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/100kb-sdk_1.1.1_1786623550781_0.592979170785042","host":"s3://npm-registry-packages-npm-production"}},"1.1.2":{"name":"100kb-sdk","version":"1.1.2","description":"Official B2B WebAssembly Client-Side Image & PDF Optimization SDK. 100% Zero-Upload, Browser GPU/RAM Execution, 0ms Backend Latency.","main":"index.ts","module":"index.ts","types":"index.ts","repository":{"type":"git","url":"git+https://github.com/Abhishek2212000/100kb.git"},"keywords":["100kb","wasm","webassembly","image-compression","pdf-compression","client-side","jpeg-compressor","png-compressor","pdf-opt","passport-photo","background-remover","b2b-sdk"],"author":{"name":"100KB Tools","url":"info@100kb.in"},"license":"MIT","homepage":"https://www.100kb.in/en/developer","dependencies":{"pdf-lib":"^1.17.1"},"_id":"100kb-sdk@1.1.2","gitHead":"d24d3ff704c68edb98b37d9cf1f5911c8ca0d06d","bugs":{"url":"https://github.com/Abhishek2212000/100kb/issues"},"_nodeVersion":"22.23.2","_npmVersion":"10.9.8","dist":{"integrity":"sha512-9hyfwi1fcHNO+6gSgm5E/DxMlcDIB1z+MkdHwRnibMWtb6WtI5K0UDX2E4cJ2MJ6fq8/Rk7iN9rLh7isTABgXQ==","shasum":"b30d878658227acf3778576adb27808e1e677405","tarball":"https://registry.npmjs.org/100kb-sdk/-/100kb-sdk-1.1.2.tgz","fileCount":3,"unpackedSize":20360,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDuA8vkfFGLe0cC9asg5FO2Wdo3XBc+5UIU/45PQ4kZOAIgY0my7FC8KzNQ4J66Uc8tXSWpCKQia5Geqy7PG/tB8As="}]},"_npmUser":{"name":"kriva","email":"abhishekadhikari197@gmail.com"},"directories":{},"maintainers":[{"name":"kriva","email":"abhishekadhikari197@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/100kb-sdk_1.1.2_1786733286270_0.7625727188228577"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-12T20:18:35.051Z","modified":"2026-08-14T18:48:06.559Z","1.0.0":"2026-08-12T20:18:35.270Z","1.0.1":"2026-08-13T03:41:40.425Z","1.0.2":"2026-08-13T06:48:20.735Z","1.1.0":"2026-08-13T12:16:36.383Z","1.1.1":"2026-08-13T12:19:10.922Z","1.1.2":"2026-08-14T18:48:06.416Z"},"bugs":{"url":"https://github.com/Abhishek2212000/100kb/issues"},"author":{"name":"100KB Tools","url":"info@100kb.in"},"license":"MIT","homepage":"https://www.100kb.in/en/developer","keywords":["100kb","wasm","webassembly","image-compression","pdf-compression","client-side","jpeg-compressor","png-compressor","pdf-opt","passport-photo","background-remover","b2b-sdk"],"repository":{"type":"git","url":"git+https://github.com/Abhishek2212000/100kb.git"},"description":"Official B2B WebAssembly Client-Side Image & PDF Optimization SDK. 100% Zero-Upload, Browser GPU/RAM Execution, 0ms Backend Latency.","maintainers":[{"name":"kriva","email":"abhishekadhikari197@gmail.com"}],"readme":"# 100kb-sdk ⚡\n> **Official B2B WebAssembly Client-Side Image, PDF & Biometric Media Optimization SDK**\n\n`100kb-sdk` is a zero-latency, client-side WebAssembly library for React, Next.js, Vue, Angular, Svelte, and TypeScript applications. It compresses user-uploaded images (JPEG, PNG, WebP, HEIC) and PDF documents to exact target file sizes (e.g. 50KB, 100KB, 200KB) 100% inside the user's browser GPU/RAM **before** uploading to AWS S3, Cloudflare R2, or Supabase Storage.\n\n---\n\n## Installation\n\n```bash\nnpm install 100kb-sdk\n```\n\n---\n\n## Complete 18-Tool SDK Function Exports\n\nEvery tool on 100kb.in has a dedicated, tree-shakeable named export function:\n\n```typescript\nimport { \n  // Image Optimization\n  compressImage,       // 1. Compress Image to Target KB (JPEG, PNG, WebP)\n  compressSignature,   // 2. Signature & Thumb Impression Optimizer (<20KB Limit)\n  increaseImageSize,   // 3. Inflate Image File Size in KB\n  convertPngToJpg,     // 4. Convert PNG to JPG Format\n  convertJpgToPng,     // 5. Convert JPG to PNG Format\n  resizeImage,         // 6. Crop & Resize Dimensions (Circle, Square, Scale)\n\n  // PDF Document Engines\n  compressPDF,         // 7. Vector Stream PDF Compression\n  mergePDFs,           // 8. Combine Multiple PDFs\n  splitPDF,            // 9. Extract & Split PDF Pages\n  jpgToPdf,            // 10. Convert Image Scans to PDF Document\n  pdfToWord,           // 11. Extract PDF Document to Word (.docx)\n  pdfToJpg,            // 12. Export PDF Pages as JPEGs\n  unlockPDF,           // 13. Remove PDF Password Restrictions\n\n  // AI & Biometrics\n  removeBackground,    // 14. Studio Neural AI Background Removal\n  createPassportPhoto, // 15. Biometric Passport & Visa Photo (ICAO 70% Head Ratio)\n  removeWatermark,     // 16. Digital Stamp & Date Artifact Cleaner\n  joinPhotoSignature,  // 17. Passport Photo & Signature Joiner\n  convertHeicToJpg,    // 18. Apple HEIC to Standard JPG Converter\n\n  // Multi-Worker Batching\n  compressBatch        // 19. Multi-Worker Parallel Queue\n} from '100kb-sdk';\n```\n\n---\n\n## Quick Start Example\n\n```typescript\nimport { compressImage, compressPDF, createPassportPhoto, removeBackground } from '100kb-sdk';\n\n// 1. Compress Image to 100KB ceiling in 20ms\nconst { blob: imageBlob } = await compressImage(file, { targetKB: 100, mimeType: 'image/jpeg' });\n\n// 2. Vector-Preserving PDF Compression\nconst { blob: pdfBlob } = await compressPDF(pdfFile, { targetKB: 200 });\n\n// 3. ICAO Biometric Passport Photo Cropper (70% Head Ratio)\nconst { blob: passportBlob } = await createPassportPhoto(photoFile, { country: 'us-visa', targetKB: 50 });\n\n// 4. Studio AI Background Removal\nconst { blob: transparentPng } = await removeBackground(photoFile);\n```\n\n---\n\n## Direct HTML Script / Web Component (`<100kb-uploader>`)\n\n```html\n<!-- 1-Line Script Insertion -->\n<script src=\"https://www.100kb.in/widget.js\" defer></script>\n\n<!-- Drop-in Web Component -->\n<100kb-uploader \n  target-kb=\"100\" \n  format=\"jpeg\" \n  auto-compress=\"true\" \n  label=\"Upload ID Document (Max 100KB)\">\n</100kb-uploader>\n```\n\n---\n\n## Key Benefits\n\n- **0ms Cloud Server Latency**: Runs 100% in browser WebAssembly & HTML5 Canvas GPU.\n- **Saves 85% on AWS S3 & Cloudflare R2**: Shrinks 15MB raw photos down to 100KB before hitting cloud storage.\n- **100% GDPR & HIPAA Compliant**: Confidential user documents and photos never touch third-party servers.\n- **Zero-Config Developer Free Tier**: Unlimited local WASM operations free for open-source & community projects.\n- **Automated Commercial Licensing**: Pass `apiKey: 'YOUR_KEY'` to unlock 100% unbranded white-label mode.\n\n---\n\n## Documentation & Developer Portal\n\nVisit the full interactive documentation, live WASM sandbox, and multi-framework guides at:\n👉 **[https://www.100kb.in/en/developer](https://www.100kb.in/en/developer)**\n\n---\n\n## License\n\nMIT © [100KB Tools](https://www.100kb.in)\n","readmeFilename":"README.md"}