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

@mynameiskazim/storebadge

v1.0.1

Published

App Store, Google Play, and Microsoft Store badges in multiple languages — SVG & PNG assets with a typed JavaScript API

Readme

Storebadge

App Store, Google Play, and Microsoft Store badges in multiple languages — available as raw SVG/PNG files and as an npm package with a fully-typed JavaScript API.

npm


Installation

npm install storebadge
# or
yarn add storebadge
# or
pnpm add storebadge

JavaScript / TypeScript API

Get a badge URL (CDN)

import { appStoreBadgeUrl, googlePlayBadgeUrl, microsoftBadgeUrl } from 'storebadge';

appStoreBadgeUrl('en', 'black');
// → 'https://cdn.jsdelivr.net/gh/mynameiskazim/storebadge/badges/appstore/appstore-black-en.svg'

googlePlayBadgeUrl('tr');
// → 'https://cdn.jsdelivr.net/gh/mynameiskazim/storebadge/badges/googleplay/googleplay-tr.svg'

googlePlayBadgeUrl('tr', 'png');
// → 'https://cdn.jsdelivr.net/gh/mynameiskazim/storebadge/badges/googleplay/googleplay-tr.png'

microsoftBadgeUrl('en-us', 'dark');
// → 'https://cdn.jsdelivr.net/gh/mynameiskazim/storebadge/badges/microsoft/en-us-dark.svg'

Get a local file path (relative to package root)

import { appStoreBadgePath, googlePlayBadgePath, microsoftBadgePath } from 'storebadge';

appStoreBadgePath('de', 'white');
// → 'badges/appstore/appstore-white-de.svg'

googlePlayBadgePath('de');
// → 'badges/googleplay/googleplay-de.svg'

microsoftBadgePath('de', 'light');
// → 'badges/microsoft/de-light.svg'

Grouped API

import { badges } from 'storebadge';

badges.appStore.url('fr', 'black');
badges.googlePlay.url('fr');
badges.microsoft.url('fr', 'dark');

Custom CDN / self-hosted

import { setBaseUrl, appStoreBadgeUrl } from 'storebadge';

setBaseUrl('https://cdn.example.com/storebadge');
appStoreBadgeUrl('en', 'black');
// → 'https://cdn.example.com/storebadge/appstore/appstore-black-en.svg'

React example

import { appStoreBadgeUrl, googlePlayBadgeUrl } from 'storebadge';

export function AppBadges({ locale = 'en' }) {
  return (
    <div style={{ display: 'flex', gap: 12 }}>
      <a href="https://apps.apple.com/app/your-app">
        <img src={appStoreBadgeUrl(locale, 'black')} alt="Download on the App Store" height={40} />
      </a>
      <a href="https://play.google.com/store/apps/details?id=com.your.app">
        <img src={googlePlayBadgeUrl(locale)} alt="Get it on Google Play" height={40} />
      </a>
    </div>
  );
}

Notes

  • Sources:
    • Google Play: https://play.google.com/intl/en_us/badges/
    • Apple App Store: https://developer.apple.com/app-store/marketing/guidelines/
    • Microsoft Store: https://docs.microsoft.com/en-us/windows/apps/publish/publish-your-app-in-the-microsoft-store
  • App Store: SVG with 2 color variants (black, white)
  • Google Play: SVG & PNG formats available
  • Microsoft Store: SVG with 2 theme variants (dark, light)
  • SVG files are optimized for web use

Download

App Store Badges

SVG only — Available in both black and white variants

| Language | Language Code | Preview (Black) | Preview (White) | |---|---|---|---| | Arabic | ar | Black | White | | Azerbaijani | az | Black | White | | Bulgarian | bg | Black | White | | Bengali | bn | Black | White | | Czech | cs | Black | White | | Danish | da | Black | White | | German | de | Black | White | | Greek | el | Black | White | | English | en | Black | White | | Spanish | es | Black | White | | Spanish (CA) | es-ca | Black | White | | Spanish (MX) | es-mx | Black | White | | Estonian | et | Black | White | | Finnish | fi | Black | White | | Filipino | fil | Black | White | | French | fr | Black | White | | French (CA) | fr-ca | Black | White | | Gujarati | gu | Black | White | | Hebrew | he | Black | White | | Hindi | hi | Black | White | | Croatian | hr | Black | White | | Hungarian | hu | Black | White | | Indonesian | id | Black | White | | Italian | it | Black | White | | Japanese | ja | Black | White | | Kannada | kn | Black | White | | Korean | ko | Black | White | | Lithuanian | lt | Black | White | | Latvian | lv | Black | White | | Malayalam | ml | Black | White | | Marathi | mr | Black | White | | Malay | ms | Black | White | | Maltese | mt | Black | White | | Norwegian | nb | Black | White | | Dutch | nl | Black | White | | Odia | or | Black | White | | Punjabi | pa | Black | White | | Polish | pl | Black | White | | Portuguese (BR) | pt-br | Black | White | | Portuguese (PT) | pt-pt | Black | White | | Romanian | ro | Black | White | | Russian | ru | Black | White | | Slovak | sk | Black | White | | Slovenian | sl | Black | White | | Swedish | sv | Black | White | | Tamil | ta | Black | White | | Telugu | te | Black | White | | Thai | th | Black | White | | Turkish | tr | Black | White | | Ukrainian | uk | Black | White | | Urdu | ur | Black | White | | Vietnamese | vi | Black | White | | Chinese (CN) | zh-cn | Black | White | | Chinese (TW) | zh-tw | Black | White |


Google Play Badges

SVG & PNG available — Use .svg or .png extension

| Language | Language Code | Preview (SVG) | |---|---|---| | Afrikaans | af | Afrikaans | | Arabic | ar | Arabic | | Azerbaijani | az | Azerbaijani | | Belarusian | be | Belarusian | | Bulgarian | bg | Bulgarian | | Bengali | bn | Bengali | | Bosnian | bs | Bosnian | | Catalan | ca | Catalan | | Czech | cs | Czech | | Danish | da | Danish | | German | de | German | | Greek | el | Greek | | English | en | English | | Spanish | es | Spanish | | Spanish (Latin America) | es-latam | Spanish (LATAM) | | Estonian | et | Estonian | | Basque | eu | Basque | | Persian | fa | Persian | | Finnish | fi | Finnish | | Filipino | fil | Filipino | | French | fr | French | | French (Canada) | fr-ca | French (CA) | | Irish | ga | Irish | | Galician | gl | Galician | | Gujarati | gu | Gujarati | | Hebrew | he | Hebrew | | Hindi | hi | Hindi | | Croatian | hr | Croatian | | Hungarian | hu | Hungarian | | Armenian | hy | Armenian | | Indonesian | id | Indonesian | | Icelandic | is | Icelandic | | Italian | it | Italian | | Japanese | ja | Japanese | | Georgian | ka | Georgian | | Kazakh | kk | Kazakh | | Khmer | km | Khmer | | Kannada | kn | Kannada | | Korean | ko | Korean | | Kyrgyz | ky | Kyrgyz | | Lao | lo | Lao | | Lithuanian | lt | Lithuanian | | Latvian | lv | Latvian | | Macedonian | mk | Macedonian | | Malayalam | ml | Malayalam | | Mongolian | mn | Mongolian | | Marathi | mr | Marathi | | Malay | ms | Malay | | Burmese | my | Burmese | | Norwegian | nb | Norwegian | | Nepali | ne | Nepali | | Dutch | nl | Dutch | | Punjabi | pa | Punjabi | | Polish | pl | Polish | | Portuguese (Brazil) | pt-br | Portuguese (BR) | | Portuguese (Portugal) | pt-pt | Portuguese (PT) | | Romanian | ro | Romanian | | Russian | ru | Russian | | Sinhala | si | Sinhala | | Slovak | sk | Slovak | | Slovenian | sl | Slovenian | | Albanian | sq | Albanian | | Serbian | sr | Serbian | | Swedish | sv | Swedish | | Swahili | sw | Swahili | | Tamil | ta | Tamil | | Telugu | te | Telugu | | Thai | th | Thai | | Turkish | tr | Turkish | | Ukrainian | uk | Ukrainian | | Urdu | ur | Urdu | | Uzbek | uz | Uzbek | | Vietnamese | vi | Vietnamese | | Chinese (Simplified) | zh-cn | Chinese (CN) | | Chinese (Traditional) | zh-tw | Chinese (TW) | | Zulu | zu | Zulu |


Microsoft Store Badges

SVG only — Available in both dark and light variants

| Language | Language Code | Preview (Dark) | Preview (Light) | |---|---|---|---| | Afrikaans | af | Dark | Light | | Amharic | am | Dark | Light | | Arabic | ar | Dark | Light | | Assamese | as | Dark | Light | | Azerbaijani | az | Dark | Light | | Bulgarian | bg | Dark | Light | | Bengali | bn | Dark | Light | | Bosnian | bs | Dark | Light | | Catalan | ca | Dark | Light | | Welsh | cy | Dark | Light | | Czech | cs | Dark | Light | | Danish | da | Dark | Light | | German | de | Dark | Light | | Greek | el | Dark | Light | | English (US) | en-us | Dark | Light | | Spanish | es | Dark | Light | | Estonian | et | Dark | Light | | Persian | fa | Dark | Light | | Finnish | fi | Dark | Light | | Filipino | fil | Dark | Light | | French | fr | Dark | Light | | Irish | ga | Dark | Light | | Scottish Gaelic | gd | Dark | Light | | Galician | gl | Dark | Light | | Gujarati | gu | Dark | Light | | Hebrew | he | Dark | Light | | Hindi | hi | Dark | Light | | Croatian | hr | Dark | Light | | Hungarian | hu | Dark | Light | | Armenian | hy | Dark | Light | | Indonesian | id | Dark | Light | | Icelandic | is | Dark | Light | | Italian | it | Dark | Light | | Japanese | ja | Dark | Light | | Georgian | ka | Dark | Light | | Kazakh | kk | Dark | Light | | Khmer | km | Dark | Light | | Kannada | kn | Dark | Light | | Korean | ko | Dark | Light | | Konkani | kok | Dark | Light | | Luxembourgish | lb | Dark | Light | | Lao | lo | Dark | Light | | Lithuanian | lt | Dark | Light | | Latvian | lv | Dark | Light | | Maori | mi | Dark | Light | | Macedonian | mk | Dark | Light | | Malayalam | ml | Dark | Light | | Marathi | mr | Dark | Light | | Malay | ms | Dark | Light | | Maltese | mt | Dark | Light | | Nepali | ne | Dark | Light | | Dutch | nl | Dark | Light | | Norwegian Nynorsk | nn | Dark | Light | | Odia | or | Dark | Light | | Punjabi | pa | Dark | Light | | Polish | pl | Dark | Light | | Portuguese (Brazil) | pt-br | Dark | Light | | Portuguese (Portugal) | pt-pt | Dark | Light | | Quechua | quz | Dark | Light | | Romanian | ro | Dark | Light | | Russian | ru | Dark | Light | | Slovak | sk | Dark | Light | | Slovenian | sl | Dark | Light | | Albanian | sq | Dark | Light | | Serbian | sr | Dark | Light | | Swedish | sv | Dark | Light | | Tamil | ta | Dark | Light | | Telugu | te | Dark | Light | | Thai | th | Dark | Light | | Turkish | tr | Dark | Light | | Uyghur | ug | Dark | Light | | Ukrainian | uk | Dark | Light | | Urdu | ur | Dark | Light | | Uzbek | uz | Dark | Light | | Vietnamese | vi | Dark | Light | | Chinese (Simplified) | zh-cn | Dark | Light | | Chinese (Traditional) | zh-tw | Dark | Light |


📝 Complete Example

Embed all three app store badges in your website:

<div style="display: flex; gap: 10px; margin: 20px 0;">
  <!-- App Store -->
  <a href="https://apps.apple.com/app/your-app">
    <img 
      src=https://github.com/mynameiskazim/storebadge/raw/master/badges/appstore/appstore-black-en.svg" 
      alt="Download on the App Store" 
      height="40" 
    />
  </a>

  <!-- Google Play -->
  <a href="https://play.google.com/store/apps/details?id=com.your.app">
    <img 
      src="https://github.com/mynameiskazim/storebadge/raw/master/badges/googleplay/googleplay-en.svg" 
      alt="Get it on Google Play" 
      height="40" 
    />
  </a>

  <!-- Microsoft Store -->
  <a href="https://www.microsoft.com/store/apps/YOUR_APP_ID">
    <img 
      src="https://github.com/mynameiskazim/storebadge/raw/master/badges/microsoft/en-us-dark.svg" 
      alt="Get from Microsoft Store" 
      height="40" 
    />
  </a>
</div>

📌 Tips & Best Practices

  • Always pin to a version tag (@v1.0.0) in production for stability
  • Color variants: Choose black for light backgrounds, white for dark backgrounds (App Store)
  • Theme variants: Choose dark for light backgrounds, light for dark backgrounds (Microsoft)
  • Fallback PNG: Google Play badges available in both SVG and PNG formats
  • Height: Recommended height is 40px for web display
  • Locale support: Use language codes from the tables above (e.g., tr for Turkish, en for English)

📚 Sources

  • Google Play Badges: https://play.google.com/intl/en_us/badges/
  • Apple App Store Badges: https://developer.apple.com/app-store/marketing/guidelines/
  • Microsoft Store Badges: https://docs.microsoft.com/en-us/windows/apps/publish/publish-your-app-in-the-microsoft-store

📄 License

These badges are provided by their respective companies. Please review their usage guidelines before using them commercially.