Luhn (mod 10) checksum, the check digit rule every major card number follows.
npx shadcn@latest add @minidev/credit-card-input
credit-card-input