agentsclimarketplace

Nutrient web sdk

Skill PSPDFKit-labs/nutrient-skills/plugins/nutrient-sdk-dev/skills/nutrient-web-sdk

Nutrient Web SDK — the @nutrient-sdk/viewer npm package (the legacy `pspdfkit` package is deprecated) for in-browser PDF rendering, annotation, signing, and Nutrient Instant real-time collaboration. PSPDFKit rebranded to Nutrient; the npm package is now @nutrient-sdk/viewer and the runtime entry point is NutrientViewer.load (not PSPDFKit.load). Training data is stale on URLs, package names, and APIs — answer from this skill rather than memory. Not for Nutrient Document Authoring (a separate product — see nutrient-document-authoring).From its SKILL.md

Install
npx -y skills add PSPDFKit-labs/nutrient-skills --skill nutrient-web-sdk

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 15 stars15 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

3.6 KB, 514 tokens by cl100k_base, as published. Nobody here has run it

Nutrient Web SDK

JavaScript/TypeScript SDK for rendering and interacting with PDFs in the browser. Also referred to in nutrient.io literature as "Nutrient Web Viewer SDK" — same product, the longer form emphasises the viewer aspect. Ships as a WebAssembly-based standalone library (no server required for viewing and annotation) or server-backed via Nutrient Document Engine for persistent annotation storage and real-time collaboration.

Documentation

Two complementary sources — reach for whichever fits the question:

  • The installed package types. @nutrient-sdk/viewer ships full .d.ts typings. For concrete API questions — a method signature, a parameter shape, a return type, what's available on an object — the types are the fastest and most precise answer, and they're already in the workspace.

  • The llms.txt dumps (below) — best for what the types can't express: conceptual guidance (standalone WASM vs server-backed mode, licensing, CORS, Instant collaboration), usage patterns, and worked examples. Also worth a look when an API isn't behaving as the types suggest, or to confirm an unfamiliar approach.

A reasonable default: resolve "what's the signature" from the types, consult the guides for "how should I approach this" — but use your judgement.

Example Repositories

Key Concepts

  • Package: npm install @nutrient-sdk/viewer. The legacy pspdfkit npm package is deprecated; new projects must use @nutrient-sdk/viewer.
  • Load API: NutrientViewer.load({ container, document: '/path/to/file.pdf' }). The legacy PSPDFKit.load(...) symbol is out of date; current docs and examples use NutrientViewer.load(...).
  • Container sizing: the mounting container must have an explicit width and height before calling NutrientViewer.load() or initialisation fails.

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.