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

@designbasekorea/figma-license-core

v0.1.0

Published

Figma plugin license core and status manager for reusable license workflows

Downloads

27

Readme

@designbasekorea/figma-license-core

Figma 플러그인의 라이선스 검증/비활성화/상태 동기화를 공통으로 처리하는 패키지입니다.

핵심 포인트

  • LicenseCore: 순수 로직 (상태, 검증, 에러 매핑, 활성화 제한 판별)
  • FigmaStorageAdapter / FigmaNotifierAdapter: Figma 전용 어댑터
  • FigmaLicenseStatusManager: initialize, verify-license, deactivate-license 메시지 처리
  • LicenseConfig 주입 방식으로 플러그인별 하드코딩 제거

빠른 시작

import { createFigmaLicenseStatusManager } from '@designbasekorea/figma-license-core';

const statusManager = createFigmaLicenseStatusManager({
  config: {
    productId: 'my-plugin',
    endpoint: 'https://api.example.com/license/verify',
    deactivateEndpoint: 'https://api.example.com/license/deactivate',
    instanceName: figma.root?.name || 'figma-plugin',
    usageLimit: 20,
    storagePrefix: 'my-plugin-license',
  },
});

statusManager.bindToOnMessage(async (msg) => {
  if ((msg as { type?: string }).type === 'process') {
    // 기존 플러그인 로직
  }
});

await statusManager.initialize();

UI 이벤트 계약

UI -> Main

  • initialize
  • verify-license (licenseKey 포함)
  • deactivate-license

Main -> UI

  • update-plugin-status
  • license-verification-result
  • license-deactivation-result

에러는 errorCode 값으로 전달됩니다.

  • ACTIVATION_LIMIT_REACHED
  • INVALID_LICENSE
  • PRODUCT_MISMATCH
  • NETWORK_ERROR
  • STORAGE_ERROR
  • SERVER_ERROR
  • UNKNOWN_ERROR