Catalog npm
Back to packageRELEASE DETAILS

1.1.1

npm

100kb-sdk

Official B2B WebAssembly Client-Side Image & PDF Optimization SDK. 100% Zero-Upload, Browser GPU/RAM Execution, 0ms Backend Latency.

100kbb2b-sdkbackground-removerclient-sideimage-compressionjpeg-compressorpassport-photopdf-compressionpdf-optpng-compressorwasmwebassembly
Published13 Aug 2026
Direct dependencies1
Transitive dependenciesNot calculated

README

Current package documentation

100kb-sdk ⚡

npm version License: MIT TypeScript Zero Server Uploads

Official B2B WebAssembly Client-Side Image, PDF & Biometric Media Optimization SDK

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.


📦 Installation

npm install 100kb-sdk
# or
yarn add 100kb-sdk
# or
pnpm add 100kb-sdk

🚀 Complete 18-Tool SDK Function Exports

Every tool on 100kb.in has a dedicated, tree-shakeable named export function:

import { 
  // Image Optimization
  compressImage,       // 1. Compress Image to Target KB (JPEG, PNG, WebP)
  compressSignature,   // 2. Signature & Thumb Impression Optimizer (<20KB Limit)
  increaseImageSize,   // 3. Inflate Image File Size in KB
  convertPngToJpg,     // 4. Convert PNG to JPG Format
  convertJpgToPng,     // 5. Convert JPG to PNG Format
  resizeImage,         // 6. Crop & Resize Dimensions (Circle, Square, Scale)

  // PDF Document Engines
  compressPDF,         // 7. Vector Stream PDF Compression
  mergePDFs,           // 8. Combine Multiple PDFs
  splitPDF,            // 9. Extract & Split PDF Pages
  jpgToPdf,            // 10. Convert Image Scans to PDF Document
  pdfToWord,           // 11. Extract PDF Document to Word (.docx)
  pdfToJpg,            // 12. Export PDF Pages as JPEGs
  unlockPDF,           // 13. Remove PDF Password Restrictions

  // AI & Biometrics
  removeBackground,    // 14. Studio Neural AI Background Removal
  createPassportPhoto, // 15. Biometric Passport & Visa Photo (ICAO 70% Head Ratio)
  removeWatermark,     // 16. Digital Stamp & Date Artifact Cleaner
  joinPhotoSignature,  // 17. Passport Photo & Signature Joiner
  convertHeicToJpg,    // 18. Apple HEIC to Standard JPG Converter

  // Multi-Worker Batching
  compressBatch        // 19. Multi-Worker Parallel Queue
} from '100kb-sdk';

💡 Quick Start Example (React / Next.js)

import { compressImage, compressPDF, createPassportPhoto, removeBackground } from '100kb-sdk';

// 1. Compress Image to 100KB ceiling in <20ms
const { blob: imageBlob, sizeBytes } = await compressImage(file, { 
  targetKB: 100, 
  mimeType: 'image/jpeg' 
});

// 2. Vector-Preserving PDF Compression
const { blob: pdfBlob } = await compressPDF(pdfFile, { targetKB: 200 });

// 3. ICAO Biometric Passport Photo Cropper (70% Head Ratio)
const { blob: passportBlob } = await createPassportPhoto(photoFile, { 
  country: 'us-visa', 
  targetKB: 50 
});

// 4. Studio AI Background Removal
const { blob: transparentPng } = await removeBackground(photoFile);

⚡ 1-Line AWS S3 / Cloudflare R2 Pre-Upload Hook

Save 85%+ on your cloud storage and bandwidth bills by compressing images on the user's device before upload:

import { createS3UploadHandler } from '100kb-sdk';

// Wrap your upload handler: Automatically compresses files to <100KB
const preCompress = createS3UploadHandler({ targetKB: 100 });

async function handleFileUpload(file: File) {
  const optimizedBlob = await preCompress(file);
  
  // Upload optimizedBlob to AWS S3 / Cloudflare R2 / Supabase
  await uploadToS3(optimizedBlob);
}

🌐 Direct HTML Script / Web Component (<100kb-uploader>)

For WordPress, Shopify, Webflow, or static HTML forms with zero npm setup:

<!-- 1-Line Script Insertion -->
<script src="https://www.100kb.in/widget.js" defer></script>

<!-- Drop-in Web Component Tag -->
<100kb-uploader 
  target-kb="100" 
  format="jpeg" 
  auto-compress="true" 
  label="Upload ID Document (Max 100KB)">
</100kb-uploader>

🛡️ Key Enterprise Benefits

  • 0ms Cloud Server Latency: Runs 100% in browser WebAssembly & HTML5 Canvas GPU.
  • Saves 85% on AWS S3 & Cloudflare R2: Shrinks 15MB raw photos down to 100KB before hitting cloud storage.
  • 100% GDPR & HIPAA Compliant: Confidential user documents and photos never touch third-party servers.
  • Zero-Config Developer Free Tier: Unlimited local WASM operations free for open-source & community projects.
  • Automated Commercial Licensing: Pass apiKey: 'YOUR_KEY' to unlock 100% unbranded white-label mode.

📖 Documentation & Developer Portal

Visit the full interactive documentation, live WASM sandbox, and multi-framework guides at:
👉 https://www.100kb.in/en/developer


📄 License

MIT © 100KB Tools

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 1

Native requirements
1 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
pdf-lib
Environment
{
  "local_name": "pdf-lib",
  "alias": false,
  "peer_metadata": null
}
^1.17.1runtime

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "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
}

Repository

PENDING
abhishek2212000/100kb

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 17:59 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:62976f3b837475644aa508ff63bb0949e58be6ac27ea011dae138dac96ddf86c

Other collected versions

1.1.55 Oct1.1.45 Oct1.1.35 Oct1.1.214 Aug1.1.013 Aug1.0.213 AugView all collected versions →