npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@doc-preview/enterprise

v1.1.2

Published

Enterprise licensing and gated preview features for Doc Preview.

Readme

@doc-preview/enterprise

Enterprise licensing and gated preview features for Doc Preview. JSON licence keys unlock annotations, watermark, split view, password PDF, print, in-document search, redaction, and document diff.

Current release: 1.1.2 — Depends on @doc-preview/core ^1.1.2. See CHANGELOG.

Repository: github.com/rajkishorsahu89/doc-preview

Demo: doc-preview-app.vercel.apptool · demo · Enterprise guide

Keywords: doc-preview enterprise licensing annotations watermark split-view redaction

Install

npm install @doc-preview/enterprise

Requires @doc-preview/core and a framework adapter (react, angular, or js).

Supported file types

Enterprise modules apply on top of Community + Office previews (same file types as @doc-preview/core and optional @doc-preview/office):

| Category | Extensions | | --- | --- | | PDF | .pdf — annotations, search, redaction, password, print, native split diff | | Images | .png, .jpg, .jpeg, .gif, .webp, .bmp, .svg, .tif, .tiff — signatures, rotate | | Word | .docx, .docm, .dotx, .odt — search; native split diff (DOCX/ODT pairs) | | Excel | .xlsx, .xlsm, .xltx, .xls, .ods — search; native split diff (cell highlights) | | PowerPoint | .pptx, .pptm, .potx, .ppt, .odp — search; native split diff (PPTX pairs) | | CSV / TSV, text, HTML, JSON, XML | .csv, .tsv, .txt, .md, .html, .htm, .json, .xml, .log — compare / line diff | | Legacy Word / PowerPoint | .doc, .ppt — compare (text extraction) | | Video / audio | .mp4, .webm, .mov, .mp3, .wav, .m4a — metadata compare |

Full extension list: see @doc-preview/core README.

Usage — licence key on host

<DocPreview
  documents={docs}
  enterpriseLicenseKey="YOUR-LICENSE-KEY"
  config={{
    enterprise: {
      watermarkText: "CONFIDENTIAL",
      enableAnnotations: true,
      enablePrint: true,
      enableSearch: true,
      enableRedaction: true,
      splitView: true,
      splitDiffView: true,
      diffView: true
    }
  }}
/>

Usage — programmatic registration

import {
  registerEnterpriseLicenseFromPredefinedKey,
  getEnterpriseFeatureFlags,
  clearEnterpriseLicense
} from "@doc-preview/enterprise";

registerEnterpriseLicenseFromPredefinedKey("YOUR-LICENSE-KEY");
const flags = getEnterpriseFeatureFlags();
// flags.canAnnotations, canWatermark, canSplitView, …

Angular helpers (re-exported from @doc-preview/angular):

import { syncEnterpriseLicenseFromKey, toPreviewEnterpriseFlags } from "@doc-preview/angular";

Licence modules

| Module key | Feature | | --- | --- | | annotations | PDF highlight, note, draw, signature; image signatures | | watermark | Diagonal document watermark | | split-view | Side-by-side synced scroll | | password-pdf | Password unlock modal | | print-with-watermark | Print with optional watermark | | search-in-document | PDF and DOCX search | | redaction | PDF black-box redaction | | document-diff | Compare modal + inline split diff |

Demo key

Documentation and local testing only:

DP-ENT-DEMO-0001-ANNOTATIONS-SPLIT

Related packages

License

MIT — licence keys are commercial; demo keys ship for documentation only.