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

@richhtmleditor/enterprise

v1.2.9

Published

Licence and feature-gate helpers for Rich HTML Editor enterprise deployments.

Readme

@richhtmleditor/enterprise

Licence verification and feature gating for self-hosted Rich HTML Editor deployments. Resolves signed DE1.* tokens and predefined demo keys into @richhtmleditor/core EditorFeatureFlags for AI, comments, workflows, and the full toolbar preset.

Current release: 1.2.9 — Depends on @richhtmleditor/core ^1.2.9.

Repository: github.com/rajkishorsahu89/richhtmleditor

Demo: richhtmleditor.stackkitlabs.comdemo · guide · API. Doc Preview joint demo: doc-preview-app.vercel.app/demo/enterprise

What's in 1.2.9

  • resolveEnterpriseFeatures — verify signed tokens or predefined demo keys; returns EditorFeatureFlags
  • Predefined demo keysRHE-ENT-DEMO-2026-FULL, RHE-ENT-DEMO-2026-COMMENTS (see predefined-licenses.json)
  • Signed tokensDE1.<base64url(payload)>.<hmac-sha256> minted with createEnterpriseLicenceToken
  • @richhtmleditor/enterprise/browser — browser-safe entry (predefined keys only, no process.env)
  • Online verificationresolveEnterpriseFeaturesOnline for remote licence checks

Use the main export on your server (Node) with DE_LICENCE_SECRET. Use /browser in client bundles for demo keys only.

Keywords: richhtmleditor enterprise licence feature-flags licensing

Install

npm install @richhtmleditor/enterprise
# Requires @richhtmleditor/core (pulled in by framework wrappers).

Usage — server-side verification

import { createEditor } from "@richhtmleditor/core";
import { resolveEnterpriseFeatures } from "@richhtmleditor/enterprise";

const gate = resolveEnterpriseFeatures(
  { token: process.env.DE_LICENCE! },
  { secret: process.env.DE_LICENCE_SECRET! }
);

const editor = createEditor({
  element: host,
  features: gate.features,
  toolbar: gate.features.toolbarFull ? { preset: "full" } : { preset: "standard" }
});

Usage — browser (demo keys)

import { resolveEnterpriseFeatures } from "@richhtmleditor/enterprise/browser";

const gate = resolveEnterpriseFeatures({ token: "RHE-ENT-DEMO-2026-FULL" });
// gate.valid === true
// gate.features — { ai: true, comments: true, workflows: true, toolbarFull: true, … }

Usage — mint signed tokens

import { createEnterpriseLicenceToken } from "@richhtmleditor/enterprise";

const token = createEnterpriseLicenceToken(
  {
    sub: "acme-corp",
    exp: Math.floor(Date.now() / 1000) + 86400,
    features: { ai: true, comments: true, workflows: true, toolbarFull: true }
  },
  process.env.DE_LICENCE_SECRET!
);
// Returns "DE1.<payload>.<signature>"

Set DE_LICENCE_SECRET in your deployment environment. Payload exp is a Unix timestamp (seconds).

Token formats

| Format | Example | Where verified | | --- | --- | --- | | Predefined demo key | RHE-ENT-DEMO-2026-FULL | Server or /browser | | Signed token | DE1.eyJ…}.a1b2c3… | Server with DE_LICENCE_SECRET |

Demo keys (documentation only)

| Key | Features | | --- | --- | | RHE-ENT-DEMO-2026-FULL | AI, comments, workflows, toolbarFull | | RHE-ENT-DEMO-2026-COMMENTS | Comments only |

API

| Export | Description | | --- | --- | | resolveEnterpriseFeatures(licence?, options?) | Verify token; merge into EditorFeatureFlags. | | createEnterpriseLicenceToken(payload, secret) | Mint a signed DE1.* token (server-side). | | verifySignedLicenceToken(token, secret, now?) | Low-level token verification. | | DEFAULT_ENTERPRISE_FEATURES | Base flags when no licence is valid. | | PREDEFINED_ENTERPRISE_LICENSES | Built-in demo key catalogue. | | mergeEnterpriseFeatures(base, overrides?) | Merge partial feature overrides. | | resolveEnterpriseFeaturesOnline(options) | Remote licence verification. |

EnterpriseGateResult

| Field | Type | Description | | --- | --- | --- | | valid | boolean | Whether the licence was accepted. | | features | EditorFeatureFlags | Resolved feature flags for createEditor. | | message | string? | Human-readable status. | | subject | string? | Licence subject / owner. |

Default feature flags

| Flag | Default (no licence) | | --- | --- | | tables | true | | media | true | | collapsible | true | | comments | false | | ai | false | | workflows | false | | toolbarFull | false |

Related packages

License

MIT