RinNguyens/vnlogos
Developer ToolsVietnamese bank and merchant brand logos plus food and cultural line icons, with brand data and a statement matcher for React and Node.js developers.
What it covers
vnlogos packages the logos people see on Vietnamese card statements together with the metadata that makes them usable in software: brand colours, the spellings banks print, merchant category codes and a matcher that turns strings like POS GS25 HCM into the GS25 brand. The collection contains 39 banks, 180 merchant brands organised into 23 categories, 36 Vietnamese dishes with icons and seals, and 496 line icons covering 31 provinces after the 2025 merger.
It is aimed at developers building Vietnamese banking, payment, expense or travel interfaces who want correct brand assets and statement parsing without maintaining their own list. Everything ships as an npm package with TypeScript types, React components, an npx CLI and a shadcn registry; there are no runtime dependencies.
Quick start
Write a React component straight into your project without installing anything. The logo is embedded in the generated file:
npx vnlogos add vcb highlands pho-bo
Import the generated components from your alias path:
import { VcbLogo } from "@/components/logos/vcb";
import { HighlandsLogo } from "@/components/logos/highlands";
<VcbLogo height={24} />
<VcbLogo variant="mono" tint="#fff" />
<HighlandsLogo size={40} />
For data access and prebuilt components, install the package instead:
npm install vnlogos
import { getBrand, matchBrand } from "vnlogos";
import { BankLogo, LineIcon } from "vnlogos/react";
matchBrand("POS GS25 HCM")?.id; // "gs25"
getBrand("phuc-long").background; // "#0F5132"
<BankLogo bank="vcb" height={24} />
<LineIcon icon="khue-van-cac" />
Ids are lowercase without accents for brands and dishes, and short bank codes for banks. Use npx vnlogos list or the searchable site to find an id; npx vnlogos info <id> shows colours, MCCs and statement spellings.
Components and file loading
<BrandTile> draws a square tile with size and radius, while <BankLogo> renders a wordmark at a fixed height and supports variant="mono" with a tint. If you serve the files yourself, run npx vnlogos copy public/logos and wrap the app in <LogoProvider baseUrl="/logos">; components then fall back to the brand's letters or the bank's name if a file is missing. You can also pass an imported URL or data URI through src, or link files from jsDelivr pinned to a version. Line icons use a CSS mask so they take the text colour; a plain <img> would render them black.
Constraints
- Node.js 18 or newer is required; the package ships ESM, CommonJS and TypeScript types, and React is an optional peer dependency.
- Importing all inline modules together is about 5.5 MB, so prefer individual
vnlogos/inline/<kind>/<id>imports. matchBrand()requires whole-word matches and ignores accents and case; the earliest match wins, then the longest.- Line icon ids can collide with dish ids, so the CLI takes the dish unless
--linesis passed. - Bank and brand logos are trademarks of their owners and are excluded from the MIT licence, which covers code, data, dishes and line icons. The illustrated colour seals (vnlogos Pro) are paid and not included in the repository or npm package.
HotRepo's take
The project was tracked on the new-project board on 2026-11-29, showing 111 stars and 20 forks, with 10 stars added during the roughly one-hour growth window. That single snapshot is not enough to read a trend, but the scope is concrete: a curated Vietnamese brand and bank set with statement matching and multiple distribution paths (CLI, npm, shadcn, CDN) rather than just a folder of images. The useful decision for readers is whether they need this specific Vietnamese dataset; the package structure and data checks are in place, and the executable risk profile is small since nothing here downloads or runs binaries.
Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.