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

@konomi-app/k2

v5.1.0

Published

kintone sdk

Readme

k2 - 🍳 kintone kitchen 🍳

kintone SDK for Node.js

🥦 Installation

pnpm add -D @konomi-app/k2

🥚 Requirements

  • Node.js 18.17 以上

SSL証明書は node-forge を使用して自動生成されるため、mkcert などの外部ツールのインストールは不要です。 初回実行時にルートCA証明書をOSの信頼ストアへ登録するため、管理者権限を求められる場合があります。

Tailwind CSS (任意)

Tailwind CSSを使用する場合のみ、以下をインストールしてください。

pnpm add -D tailwindcss @tailwindcss/postcss

🥕 Usage (kintone Customization)

1. Generate a certificate

npx k2 genkey

.k2 ディレクトリにローカル開発用のSSL証明書を生成します。

2. Local Development

npx k2 dev

設定ファイルで指定したポート番号でローカルサーバーが起動します。kintoneアプリのカスタマイズにローカルサーバーのURLを指定することで、ローカル環境で開発できます。

3. Build

npx k2 build

src/apps/*/index.{ts,tsx,js,jsx,mjs} をエントリーポイントとして .k2/prod にビルドします。

Configuration

プロジェクトルートの k2.config.mjs で設定します。k2 dev / k2 build はこのファイルを自動で読み込みます (--config で別のパスを指定することもできます)。

// k2.config.mjs
export default {
  version: 1,
  server: {
    port: 32767,
  },
  tailwind: {
    css: 'src/styles/tailwind.css',
    fileName: 'tailwind.css',
  },
};

🥬 Usage (kintone Plugin)

1. Initialize

npx plugin init

.plugin ディレクトリに秘密鍵 (private.ppk) とプラグインZIPを生成します。秘密鍵が既に存在する場合は再利用されます。

2. Local Development

npx plugin dev

ローカルサーバーが起動し、src/contents の変更を検知してプラグインZIPをkintoneへ自動アップロードします。

アップロードには .env に以下の環境変数が必要です。

KINTONE_BASE_URL=https://example.cybozu.com
KINTONE_USERNAME=username
KINTONE_PASSWORD=password
# Basic認証を使用している場合のみ
KINTONE_BASIC_AUTH_USERNAME=
KINTONE_BASIC_AUTH_PASSWORD=

3. Build & Package

npx plugin build
npx plugin zip

plugin buildsrc/configsrc/desktop.plugin/contents へビルドし、plugin zip で署名済みのプラグインZIPを生成します。

Commands

| Command | Description | | --- | --- | | plugin init | private.ppk とプラグインZIPを生成します | | plugin dev | 開発サーバーを起動し、変更を検知して自動アップロードします | | plugin build | プラグインを本番ビルドします | | plugin manifest -e <env> | manifest.json のみを生成します | | plugin zip -e <env> | 署名済みプラグインZIPを生成します | | plugin genkey | ローカル開発用のSSL証明書を生成します |

-e, --env には dev / prod / standalone を指定できます (既定値は prod)。

Configuration

プロジェクトルートの plugin.config.mjs で設定します。

// plugin.config.mjs
export default {
  id: 'your-plugin-id',
  version: 1,
  manifest: {
    base: {
      /* manifest.json の共通設定 */
    },
    dev: {
      /* 開発環境で base に上書きマージされる設定 */
    },
  },
  server: {
    port: 32767,
  },
  tailwind: {
    // 単一のCSSを共有する場合
    css: 'src/styles/tailwind.css',
    // 設定画面とデスクトップでCSSを分ける場合
    // css: { config: 'src/styles/config.css', desktop: 'src/styles/desktop.css' },
  },
};