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

country-flag-kit

v1.0.1

Published

271 country flags (SVG, 4:3 + 1:1) plus flag emoji and international dial codes — a small ISO-3166 country dataset for phone inputs and country pickers.

Readme

country-flag-kit

license flags ratios data

Country flags plus lightweight country data — clean SVGs in 4:3 and 1:1, with each country's flag emoji and dial (calling) code, in an ISO-3166 manifest. Built for phone-number country pickers, locale selectors, and dropdowns.

  • 271 flags, named by lowercase ISO 3166-1 alpha-2 code (kw, us, sa, …).
  • Based on flag-icons — hand-drawn natively at each ratio, so emblems are never stretched or distorted.
  • index.json also carries emoji and dial_code for every country.

Install

npm install country-flag-kit
# or
git clone https://github.com/JasGH/country-flag-kit.git

Usage

<!-- rectangular 4:3 -->
<img src="4x3/kw.svg" width="24" alt="Kuwait">
<!-- square 1:1 -->
<img src="1x1/kw.svg" width="20" alt="Kuwait">

Build a phone-input country list from the manifest:

import flags from "country-flag-kit";   // index.json

flags
  .filter(f => f.iso && f.dial_code)
  .forEach(c => {
    // 🇰🇼  Kuwait  +965
    addOption(c.code, `${c.emoji} ${c.name} ${c.dial_code}`,
              `4x3/${c.code.toLowerCase()}.svg`);
  });

Data — index.json

{ "code":"KW", "name":"Kuwait", "emoji":"🇰🇼", "dial_code":"+965",
  "continent":"Asia", "iso":true,
  "file_4x3":"4x3/kw.svg", "file_1x1":"1x1/kw.svg" }

| field | notes | |-------|-------| | emoji | flag emoji — null for org/region codes without a standard emoji | | dial_code | international calling code — null for Antarctica / Heard Is. and non-countries | | iso | true for real ISO 3166-1 entries (filter out EU, UN, …) | | file_4x3 / file_1x1 | SVG paths for each ratio |

Round flags: in 1:1, add border-radius:50% in your CSS.

Demo

Open index.html for an interactive gallery — search by name/code/dial, 4:3 ⇄ 1:1 toggle, click-to-copy. Publish free via GitHub Pages (Settings → Pages → deploy from branch).

Structure

.
├── 4x3/            271 rectangular SVGs (4:3)
├── 1x1/            271 square SVGs (1:1)
├── index.json      ISO-3166 manifest (name, emoji, dial_code, …)
├── index.html      interactive gallery / demo
├── package.json    npm metadata
├── CHANGELOG.md
└── LICENSE         MIT (code) + flag-icons attribution

Colors

Flags keep flag-icons' undistorted shapes, with colors corrected to official specification (122 flags — e.g. Kuwait's official green #007a3d, not flag-icons' brighter default). Marshall Islands is recolored to its official deep blue (#003087) and orange (#E57200).

License

MIT — see LICENSE. Flag artwork is from flag-icons (MIT, © 2013 Panayiotis Lipiridis).