@codifyrlabs/transcriptlab-license
v1.0.2
Published
Closed-source license verification SDK for TranscriptLab Community Edition.
Readme
@codifyrlabs/transcriptlab-license
License verification SDK for TranscriptLab Community Edition.
A small, dependency-free TypeScript SDK that validates TranscriptLab license
certificates and gates paid features in self-hosted Community Edition
deployments. Closed-source — see the bundled LICENSE.md.
Installation
npm install @codifyrlabs/transcriptlab-license
# or
pnpm add @codifyrlabs/transcriptlab-licenseShips dual ESM + CJS builds with bundled TypeScript declarations.
Usage
import {
isLicensed,
getLicenseStatus,
getLicensedTier,
activateLicense,
deactivateLicense,
revalidateNow,
} from "@codifyrlabs/transcriptlab-license";
if (!isLicensed("pdf-export")) {
throw new FeatureNotAllowedError("pdf-export");
}| Function | Purpose |
|----------|---------|
| activateLicense(key) | Activate a license on this installation; returns the resulting status. |
| deactivateLicense() | Deactivate the local license. |
| revalidateNow() | Force an immediate re-validation; returns the resulting status. |
| isLicensed(feature) | true if the active license grants feature. |
| getLicenseStatus() | Current status — validity, reason, tier, expiry. |
| getLicensedTier() | The active tier, or null. |
All functions are fully typed; see the bundled .d.ts for signatures and
return types.
Feature identifiers
Gateable via isLicensed(...):
pdf-exportdocx-exportinvoicesviewer-doc-settingsai-model-choiceai-provider-choicebulk-import-large
Reserved (not yet active):
api-keyschrome-extensionmulti-ai-providerpriority-processing
License tiers
A valid Community license grants one of:
community-pro— entry tiercommunity-studio— top tier
Both grant the baseline features above.
License
Closed-source. See the bundled LICENSE.md.
