{"adoption": {"forks": 156, "observed_at": "2026-08-28T04:03:19.711589+00:00", "stars": 1038}, "canonical_url": "https://ross.abutalabs.com/products/credit-card-type", "card": {"archived": false, "artifact_type": "library", "description": "A library for determining credit card type", "domain": ["fintech", "web-development", "frontend"], "enriched": true, "function": ["parser", "developer-tools"], "health_score": 86, "homepage": null, "language": "TypeScript", "license": "MIT", "license_family": "permissive", "maturity": "stable", "member_repos": ["braintree/credit-card-type"], "name": "braintree/credit-card-type", "platform": ["browser", "cross-platform"], "pushed_at": "2026-07-04T23:02:48+00:00", "repo": "braintree/credit-card-type", "stars": 1038, "tags": ["credit-cards", "card-detection", "payments", "typescript", "validation-helper", "nodejs"], "topics": ["js-sdk"], "urls": [], "use_cases": ["detect credit card type from partial number as user types", "show correct card brand icon in a payment form", "identify card brand from a full card number", "build custom credit card validation logic", "handle ambiguous BIN prefixes like UnionPay vs Discover", "normalize card brand codes for CSS class names"], "what_it_is": "A small JavaScript/TypeScript utility library that identifies credit card brand types from full or partial card numbers, supporting type-as-you-go detection. It is not a validation library but a building block for payment forms and validation UIs.", "when_to_avoid": ["you need full card number validation (Luhn, expiry, CVV)", "you need payment processing itself rather than card type detection", "you need server-side BIN database lookups with issuer details"], "when_to_choose": ["you need lightweight, dependency-free card brand detection in Node or the browser", "you want type-as-you-go detection supporting partial numbers", "you need broad brand coverage including regional cards like Elo, Mir, Troy, Verve"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/credit-card-type", "repo": "braintree/credit-card-type", "role": "main", "score": 74}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:03:19.711589+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T07:04:14.591830+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "d2841028f91d82c1175293aed5c8a0190bce225734420b0f33f9f5d92a943f36", "fetched_at": "2026-08-28T04:03:19.711589+00:00", "kind": "readme", "missing": false, "url": "https://github.com/braintree/credit-card-type"}, {"content_hash": "da9c0848eabfddd4944600f58cab03dabc48fd23b5b0cb4547a9b02327277d2f", "fetched_at": "2026-08-29T13:04:52.519609+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/credit-card-type"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:03:19.711589+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T07:04:14.591830+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "d2841028f91d82c1175293aed5c8a0190bce225734420b0f33f9f5d92a943f36", "fetched_at": "2026-08-28T04:03:19.711589+00:00", "kind": "readme", "missing": false, "url": "https://github.com/braintree/credit-card-type"}, {"content_hash": "da9c0848eabfddd4944600f58cab03dabc48fd23b5b0cb4547a9b02327277d2f", "fetched_at": "2026-08-29T13:04:52.519609+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/credit-card-type"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T07:04:14.591830+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "d2841028f91d82c1175293aed5c8a0190bce225734420b0f33f9f5d92a943f36", "fetched_at": "2026-08-28T04:03:19.711589+00:00", "kind": "readme", "missing": false, "url": "https://github.com/braintree/credit-card-type"}, {"content_hash": "da9c0848eabfddd4944600f58cab03dabc48fd23b5b0cb4547a9b02327277d2f", "fetched_at": "2026-08-29T13:04:52.519609+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/credit-card-type"}], "taxonomy_version": 1}, "health_score": {"inputs": ["days_since_push", "days_since_release", "archived"], "kind": "computed", "method": "health_v1"}, "homepage": {"kind": "observed", "observed_at": "2026-08-28T04:03:19.711589+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:03:19.711589+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:03:19.711589+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T07:04:14.591830+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "d2841028f91d82c1175293aed5c8a0190bce225734420b0f33f9f5d92a943f36", "fetched_at": "2026-08-28T04:03:19.711589+00:00", "kind": "readme", "missing": false, "url": "https://github.com/braintree/credit-card-type"}, {"content_hash": "da9c0848eabfddd4944600f58cab03dabc48fd23b5b0cb4547a9b02327277d2f", "fetched_at": "2026-08-29T13:04:52.519609+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/credit-card-type"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:03:19.711589+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:03:19.711589+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T07:04:14.591830+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "d2841028f91d82c1175293aed5c8a0190bce225734420b0f33f9f5d92a943f36", "fetched_at": "2026-08-28T04:03:19.711589+00:00", "kind": "readme", "missing": false, "url": "https://github.com/braintree/credit-card-type"}, {"content_hash": "da9c0848eabfddd4944600f58cab03dabc48fd23b5b0cb4547a9b02327277d2f", "fetched_at": "2026-08-29T13:04:52.519609+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/credit-card-type"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:03:19.711589+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:03:19.711589+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:03:19.711589+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T07:04:14.591830+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "d2841028f91d82c1175293aed5c8a0190bce225734420b0f33f9f5d92a943f36", "fetched_at": "2026-08-28T04:03:19.711589+00:00", "kind": "readme", "missing": false, "url": "https://github.com/braintree/credit-card-type"}, {"content_hash": "da9c0848eabfddd4944600f58cab03dabc48fd23b5b0cb4547a9b02327277d2f", "fetched_at": "2026-08-29T13:04:52.519609+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/credit-card-type"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:03:19.711589+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:03:19.711589+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T07:04:14.591830+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "d2841028f91d82c1175293aed5c8a0190bce225734420b0f33f9f5d92a943f36", "fetched_at": "2026-08-28T04:03:19.711589+00:00", "kind": "readme", "missing": false, "url": "https://github.com/braintree/credit-card-type"}, {"content_hash": "da9c0848eabfddd4944600f58cab03dabc48fd23b5b0cb4547a9b02327277d2f", "fetched_at": "2026-08-29T13:04:52.519609+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/credit-card-type"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T07:04:14.591830+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "d2841028f91d82c1175293aed5c8a0190bce225734420b0f33f9f5d92a943f36", "fetched_at": "2026-08-28T04:03:19.711589+00:00", "kind": "readme", "missing": false, "url": "https://github.com/braintree/credit-card-type"}, {"content_hash": "da9c0848eabfddd4944600f58cab03dabc48fd23b5b0cb4547a9b02327277d2f", "fetched_at": "2026-08-29T13:04:52.519609+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/credit-card-type"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T07:04:14.591830+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "d2841028f91d82c1175293aed5c8a0190bce225734420b0f33f9f5d92a943f36", "fetched_at": "2026-08-28T04:03:19.711589+00:00", "kind": "readme", "missing": false, "url": "https://github.com/braintree/credit-card-type"}, {"content_hash": "da9c0848eabfddd4944600f58cab03dabc48fd23b5b0cb4547a9b02327277d2f", "fetched_at": "2026-08-29T13:04:52.519609+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/credit-card-type"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T07:04:14.591830+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "d2841028f91d82c1175293aed5c8a0190bce225734420b0f33f9f5d92a943f36", "fetched_at": "2026-08-28T04:03:19.711589+00:00", "kind": "readme", "missing": false, "url": "https://github.com/braintree/credit-card-type"}, {"content_hash": "da9c0848eabfddd4944600f58cab03dabc48fd23b5b0cb4547a9b02327277d2f", "fetched_at": "2026-08-29T13:04:52.519609+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/credit-card-type"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 90, "longevity": 100, "rhythm": 40}, "computed_at": "2026-09-03T02:20:16.233290+00:00", "flags": [], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 4157, "days_push": 60, "days_rel": 490, "gap_med": 0.0, "n_releases_24m": 3}, "score": 74, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}