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

@luohuax/seal-kit

v0.0.2

Published

Generate Japanese electronic seals (はんこ/印鑑) — React, Vue, vanilla JS

Readme

@luohuax/seal-kit

Generate Japanese electronic seals (はんこ / 印鑑) in the browser. Built on Konva Canvas for high-quality PNG export.

Currently supports React. Vue & vanilla JS coming soon.

👉 Live demo: sealkit.app — 無料で電子印鑑を作成・ダウンロード

Features

  • 🎨 4 seal types: 認印 (mitomein), 日付印 (date stamp), 角印 (kakuin), 篆刻 (tenkoku)
  • 🖼️ High-res export: PNG up to 2048px, transparent background
  • 🔤 Flexible fonts: Google Fonts + custom local fonts — just call registerFont()
  • 📐 Easy API: <SealCanvas preset="mitome" text="佐藤" />
  • 🎯 Preset-driven: 4 ready-to-use presets with full customization

Install

npm install @luohuax/seal-kit konva react-konva

konva and react-konva are peer dependencies (for React. Vanilla JS support coming soon).

Quick Start

import { SealCanvas, registerFont } from "@luohuax/seal-kit";

// Optional: register custom fonts
registerFont({ family: "Noto Serif JP", google: true });

function App() {
  return (
    <SealCanvas
      preset="mitome"       // Seal type
      text="佐藤"             // Name / text content
      color="#C41E3A"        // Ink color (default: vermilion)
      fontFamily="Noto Serif JP"
      size={500}
    />
  );
}

Export as PNG

import { useRef } from "react";
import { SealCanvas, type SealCanvasRef } from "@luohuax/seal-kit";

function App() {
  const ref = useRef<SealCanvasRef>(null);

  const handleExport = async () => {
    const dataUrl = await ref.current?.exportPng({
      width: 1024,
      transparent: true,
    });
    // Download or process the dataUrl...
  };

  return <SealCanvas ref={ref} preset="mitome" text="佐藤" />;
}

Presets

| Preset | Type | Shape | Description | |--------|------|-------|-------------| | "mitome" | 認印 | Circle | Daily use, surname only. E.g. text="佐藤" | | "date-stamp" | 日付印 | Circle | Date + name stamp. Use dateStamp prop | | "kakuin" | 角印 | Square (rounded) | Company seal. Auto-grid layout | | "tenkoku" | 篆刻 | Square | Artistic seal with shubun (朱文) effect |

Date Stamp

<SealCanvas
  preset="date-stamp"
  dateStamp={{ year: "2026", month: "6", day: "30", topText: "承認", bottomText: "伊藤" }}
/>

Array text (multi-row)

<SealCanvas preset="tenkoku" text={["印", "公司", "之印"]} />

API

<SealCanvas />

| Prop | Type | Default | Description | |------|------|---------|-------------| | preset | "mitome" \| "date-stamp" \| "kakuin" \| "tenkoku" | "mitome" | Preset template | | text | string \| string[] | — | Seal text. String = vertical; Array = grid rows | | color | string | "#C41E3A" | Ink color | | fontFamily | string | "Noto Serif JP" | Font name (must be registered or a Google Font) | | size | number \| { width, height } | 500 | Canvas render size in pixels | | borderThickness | number | preset default | Border width | | shape | "circle" \| "square" | preset default | Shape override | | border | "single" \| "double" \| "none" | preset default | Border style | | invert | boolean | preset default | Shubun (朱文) — white text on colored background | | bleed | boolean | preset default | Ink bleed effect (にじみ) | | previewScale | number | 1 | Display scale factor | | dateStamp | { year, month, day, topText, bottomText } | — | Date stamp fields |

SealCanvasRef

interface SealCanvasRef {
  exportPng: (options?: {
    width?: number;      // default: 1024
    height?: number;     // default: same as width
    transparent?: boolean; // default: true
  }) => Promise<string>;  // returns dataURL
}

Font Management

import { registerFont, loadFont } from "@luohuax/seal-kit";

// Google Fonts (built-in map includes 30+ Japanese fonts)
registerFont({ family: "Noto Serif JP", google: true });

// Local font file
registerFont({ family: "My Font", src: "/fonts/myfont.woff2", format: "woff2" });

// Remote CDN font
registerFont({ family: "Custom Font", src: "https://cdn.example.com/font.woff2" });

// Load font on demand (checks registered → Google Fonts → system)
await loadFont("Noto Serif JP");

Japanese Font Support

Built-in Google Fonts map with 30+ Japanese fonts:

| Category | Fonts | |----------|-------| | Mincho (明朝体) | Noto Serif JP, Shippori Mincho, Zen Old Mincho, Hina Mincho, Sawarabi Mincho | | Gothic (ゴシック) | Noto Sans JP, Zen Kaku Gothic New, M PLUS 1p, BIZ UDPGothic | | Handwriting | Potta One, Klee One, Yusei Magic, Zen Kurenaido | | Display | Dela Gothic One, DotGothic16, Kaisei Decol, RocknRoll One | | Maru Gothic | Zen Maru Gothic, M PLUS Rounded 1c, Kiwi Maru, Kosugi Maru |

Roadmap

  • [x] React component (<SealCanvas />)
  • [ ] Vanilla JS API (sealKit.render(element, options))
  • [ ] Vue component (<SealCanvas />)
  • [ ] SVG export
  • [ ] PDF export

Related

  • sealkit.app — Free online Japanese seal generator. 認印・日付印・角印・篆刻を無料作成。
  • Built with Konva for HTML5 Canvas rendering

License

MIT