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

@iran-utils/iranian-banks-icons-core

v1.0.1

Published

Framework-agnostic SVG icon data for Iranian banks and payment providers — 60+ logos with color and monochrome variants.

Downloads

310

Readme

@iran-utils/iranian-banks-icons-core

npm version npm downloads Bundle size License: MIT

Framework-agnostic SVG icon data for 60+ Iranian banks, PSPs, and payment providers — logos for Melli, Mellat, Saderat, Tejarat, Pasargad, Saman, Parsian, Zarrinpal, Shaparak, and more.

Each icon export is a plain object { viewBox: string, content: string }. Use this package to build adapters for any framework — Angular, Svelte, Solid, Web Components, vanilla JS, or a server-side renderer.

If you use React or Vue, prefer the ready-made wrappers:


Installation

npm install @iran-utils/iranian-banks-icons-core
# or
pnpm add @iran-utils/iranian-banks-icons-core
# or
yarn add @iran-utils/iranian-banks-icons-core

Data Format

Every export is a SvgIconData object:

interface SvgIconData {
  viewBox: string;  // e.g. "0 0 100 100"
  content: string;  // inner SVG markup — the children of <svg>
}

Usage Examples

Vanilla JS / Web Components

import { MelliColorIcon } from '@iran-utils/iranian-banks-icons-core';

// Render directly to a DOM element
const el = document.getElementById('logo');
el.innerHTML = `
  <svg viewBox="${MelliColorIcon.viewBox}" xmlns="http://www.w3.org/2000/svg" width="48" height="48">
    ${MelliColorIcon.content}
  </svg>
`;
// Web Component
class BankIcon extends HTMLElement {
  static observedAttributes = ['name', 'size'];

  connectedCallback() { this.#render(); }
  attributeChangedCallback() { this.#render(); }

  #render() {
    const icons = { melli: MelliColorIcon, mellat: MellatColorIcon };
    const data = icons[this.getAttribute('name')];
    const size = this.getAttribute('size') ?? 32;
    if (!data) return;
    this.innerHTML = `
      <svg viewBox="${data.viewBox}" xmlns="http://www.w3.org/2000/svg"
           width="${size}" height="${size}">
        ${data.content}
      </svg>
    `;
  }
}
customElements.define('bank-icon', BankIcon);
<bank-icon name="melli" size="64"></bank-icon>

Svelte

<script>
  import { PasargadColorIcon } from '@iran-utils/iranian-banks-icons-core';

  export let size = 48;
</script>

<svg
  viewBox={PasargadColorIcon.viewBox}
  xmlns="http://www.w3.org/2000/svg"
  width={size}
  height={size}
>
  <!-- eslint-disable-next-line svelte/no-at-html-tags -->
  {@html PasargadColorIcon.content}
</svg>

Angular

import { Component, Input } from '@angular/core';
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
import { MelliColorIcon, SvgIconData } from '@iran-utils/iranian-banks-icons-core';

@Component({
  selector: 'bank-icon',
  template: `
    <svg [attr.viewBox]="data.viewBox" xmlns="http://www.w3.org/2000/svg"
         [attr.width]="size" [attr.height]="size" [innerHTML]="safeContent">
    </svg>
  `,
})
export class BankIconComponent {
  @Input() data: SvgIconData = MelliColorIcon;
  @Input() size = 48;

  get safeContent(): SafeHtml {
    return this.sanitizer.bypassSecurityTrustHtml(this.data.content);
  }

  constructor(private sanitizer: DomSanitizer) {}
}

Solid.js

import { MelliColorIcon } from '@iran-utils/iranian-banks-icons-core';

function BankIcon({ data, size = 48 }) {
  return (
    <svg
      viewBox={data.viewBox}
      xmlns="http://www.w3.org/2000/svg"
      width={size}
      height={size}
      innerHTML={data.content}
    />
  );
}

<BankIcon data={MelliColorIcon} size={64} />

Node.js / SSR (string rendering)

import { MelliColorIcon, ZarrinpalColorIcon } from '@iran-utils/iranian-banks-icons-core';

function renderIcon(data, { width = 32, height = 32 } = {}) {
  return `<svg viewBox="${data.viewBox}" xmlns="http://www.w3.org/2000/svg" width="${width}" height="${height}">${data.content}</svg>`;
}

const html = renderIcon(MelliColorIcon, { width: 64, height: 64 });
// → <svg viewBox="0 0 100 100" xmlns="..." width="64" height="64"><path .../></svg>

TypeScript

import type { SvgIconData } from '@iran-utils/iranian-banks-icons-core';
import { MelliColorIcon } from '@iran-utils/iranian-banks-icons-core';

function renderIcon(data: SvgIconData, size: number): string {
  return `<svg viewBox="${data.viewBox}" width="${size}" height="${size}"
               xmlns="http://www.w3.org/2000/svg">${data.content}</svg>`;
}

renderIcon(MelliColorIcon, 48);

Icon Variants

Every bank has two exports:

| Variant | Name pattern | Description | |---|---|---| | Color | [Bank]ColorIcon | Full-color official logo | | Mono | [Bank]Icon | Paths use currentColor / single fill — tintable |


Available Icons

Browse all 60+ icons: Playground →

MelliColorIcon / MelliIcon · MellatColorIcon / MellatIcon · SaderatColorIcon / SaderatIcon · TejaratColorIcon / TejaratIcon · SepahColorIcon / SepahIcon · KeshavarziColorIcon / KeshavarziIcon · MaskanColorIcon / MaskanIcon · RefahColorIcon / RefahIcon · PostColorIcon / PostIcon · SanatMadanColorIcon / SanatMadanIcon · TaavonEslamiColorIcon / TaavonEslamiIcon · PasargadColorIcon / PasargadIcon · SamanColorIcon / SamanIcon · ParsianColorIcon / ParsianIcon · AyandehColorIcon / AyandehIcon · KarafarinColorIcon / KarafarinIcon · EghtesadNovinColorIcon / EghtesadNovinIcon · SinaColorIcon / SinaIcon · ShahrColorIcon / ShahrIcon · GardeshgariColorIcon / GardeshgariIcon · KhavarMianehColorIcon / KhavarMianehIcon · DeyColorIcon / DeyIcon · CaspianColorIcon / CaspianIcon · SarmayehColorIcon / SarmayehIcon · ResalatColorIcon / ResalatIcon · IranZaminColorIcon / IranZaminIcon · IranEuropeColorIcon / IranEuropeIcon · IranVenezuelaColorIcon / IranVenezuelaIcon · NoorColorIcon / NoorIcon · MehrIranColorIcon / MehrIranIcon · MelallColorIcon / MelallIcon · ToseeColorIcon / ToseeIcon · ToseeSaderatColorIcon / ToseeSaderatIcon · ToseeTaavonColorIcon / ToseeTaavonIcon · StandardCharteredColorIcon / StandardCharteredIcon · BluBankColorIcon / BluBankIcon · BankinoColorIcon / BankinoIcon · FuturebankColorIcon / FuturebankIcon

ZarrinpalColorIcon / ZarrinpalIcon · PayIrColorIcon / PayIrIcon · PaypingColorIcon / PaypingIcon · NextPayColorIcon / NextPayIcon · IdpayColorIcon / IdpayIcon · VandarColorIcon / VandarIcon · DigipayColorIcon / DigipayIcon · ZibalColorIcon / ZibalIcon · HesabitColorIcon / HesabitIcon · AsanPardakhtColorIcon / AsanPardakhtIcon · SnappPayColorIcon

SamanKishColorIcon / SamanKishIcon · PasargadPepColorIcon / PasargadPepIcon · SadadColorIcon / SadadIcon

ShaparakColorIcon / ShaparakIcon · BankMarkaziColorIcon / BankMarkaziIcon

SepahMergedAnsarColorIcon / SepahMergedAnsarIcon · SepahMergedGhavaminColorIcon / SepahMergedGhavaminIcon · SepahMergedHekmatColorIcon / SepahMergedHekmatIcon · SepahMergedKosarColorIcon / SepahMergedKosarIcon · SepahMergedMehrEghtesadColorIcon / SepahMergedMehrEghtesadIcon


Related Packages

| Package | Description | |---|---| | @iran-utils/iranian-banks-react-icons | Ready-made React components | | @iran-utils/iranian-banks-vue-icons | Ready-made Vue 3 components |


License

MIT © Houtan Rocky