@paperlet/web 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ <img src="https://paperlet.ikolvi.com/brand/paperlet-mark.png" alt="Paperlet" width="64">
2
+
1
3
  # @paperlet/web
2
4
 
3
5
  Paperlet's PDF SDK for the browser (and Node). The compiled Paperlet core (Rust) and PDFium run
@@ -40,6 +42,29 @@ Page numbers start at 1; rectangles are in PDF points from the bottom-left corne
40
42
  with `doc.close()`. Calls run on the calling thread; render big documents in a Worker if the page
41
43
  must stay responsive.
42
44
 
45
+ ## Set up with an AI assistant
46
+
47
+ Paste this into Claude Code, Cursor, Copilot or any coding assistant:
48
+
49
+ ```text
50
+ Add Paperlet to this web app: PDF viewer, redaction, stamps, password protection and signing, running in WebAssembly in the browser.
51
+
52
+ 1. Run: npm install @paperlet/web
53
+ 2. Load it once: const paperlet = await loadPaperlet(); then paperlet.initialize(licenseKey, location.hostname). An empty key works and adds a "Paperlet Pro trial" watermark to paid features.
54
+ 3. Let the user pick a PDF file, open it with paperlet.open(new Uint8Array(await file.arrayBuffer())) and render it into a container element with showDocument(element, doc); call view.refresh() after changing the document and doc.close() when done.
55
+ 4. If the bundler does not copy paperlet.wasm automatically (Vite, webpack 5 and Rollup do), serve it and pass locateFile to loadPaperlet.
56
+ 5. API reference: https://www.npmjs.com/package/@paperlet/web
57
+ 6. Build the app and fix any errors.
58
+ ```
59
+
60
+ ## Licence
61
+
62
+ Commercial ([LICENSE](LICENSE)). Buy a key at [paperlet.ikolvi.com](https://paperlet.ikolvi.com/#pricing); keys are checked offline and bound to your app ID. Without a key the paid features work and adds a "Paperlet Pro trial" watermark, so you can build and test before buying.
63
+
64
+ ## Links
65
+
66
+ [Website and pricing](https://paperlet.ikolvi.com) · [Licence key](https://paperlet.ikolvi.com/license) · [Issues](https://github.com/Ikolvi/paperlet-sdk/issues)
67
+
43
68
  ## Develop
44
69
 
45
70
  `npm run build` compiles the TypeScript and copies the WebAssembly core from
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paperlet/web",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Paperlet PDF SDK for the web: viewer, redaction, stamps, compression, encryption, signing, MRZ (WebAssembly).",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",