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

@ynetlabo/ui-data

v0.1.4

Published

ui-labo が 4 プラットフォームで共有するマスタデータ(都道府県・日本地図)

Readme

@ynetlabo/ui-data

ui-labo が 4 プラットフォームで共有するマスタデータ。 都道府県 47 件と、日本地図の形状を持ちます。

npm install @ynetlabo/ui-data
import { PREFECTURES } from "@ynetlabo/ui-data";
import { VIEW_BOX, PATHS } from "@ynetlabo/ui-data/outline";
import { normalize, match } from "@ynetlabo/ui-data/normalize";

PREFECTURES[12];
// { code: "13", name: "東京都", shortName: "東京", kana: "とうきょうと", ... }

中身

| 入口 | 内容 | |---|---| | @ynetlabo/ui-data | 都道府県 47 件。コード・表記・読み・検索キー・エリア所属 | | @ynetlabo/ui-data/outline | 日本地図の SVG パスと viewBox(沖縄は別枠) | | @ynetlabo/ui-data/normalize | 表記ゆれを吸収する照合。4 実装が同じ規則を使う |

dist/prefectures.g.dartdist/Prefectures.g.swift に、同じ順序・同じ件数の 生成物が入っています。3 つが一致していることはテストで保証しています。

「とうきょう」「トーキョー」「tokyo」「toukyou」「東京」はいずれも同じ県に届きます。

出典

  • 都道府県マスタ: ynetlabo API の応答を固定値として同梱
  • 地図の形状: Natural Earth(パブリックドメイン)を 簡略化・平滑化して生成

配布条件の原文と加工の内容は、同梱の NOTICE にまとめています。 利用にあたって追加の義務はありません。

MIT © Yuuki.U (ynetlabo)