{"adoption": {"forks": 92, "observed_at": "2026-08-28T04:04:18.754913+00:00", "stars": 1305}, "canonical_url": "https://ross.abutalabs.com/products/pretty-bytes", "card": {"archived": false, "artifact_type": "library", "description": "Convert bytes to a human readable string: 1337 → 1.34 kB", "domain": ["developer-tools", "web-development", "files"], "enriched": true, "function": ["serialization", "internationalization"], "health_score": 96, "homepage": null, "language": "JavaScript", "license": "MIT", "license_family": "permissive", "maturity": "stable", "member_repos": ["sindresorhus/pretty-bytes"], "name": "sindresorhus/pretty-bytes", "platform": ["browser"], "pushed_at": "2026-07-15T16:58:15+00:00", "repo": "sindresorhus/pretty-bytes", "stars": 1305, "tags": ["file-size", "human-readable", "bytes", "formatting", "npm-package", "utility", "nodejs", "javascript"], "topics": [], "urls": [], "use_cases": ["format file sizes for display in a UI", "convert bytes to human readable string in JavaScript", "show download progress sizes in a progress bar", "display localized file sizes", "format bit rates for network speeds", "display memory sizes with KiB/MiB binary units"], "what_it_is": "A tiny JavaScript library that converts byte counts into human-readable strings like '1.34 kB'. It supports bits, binary prefixes, signed output, locale-aware formatting, and fixed-width alignment.", "when_to_avoid": ["you need base-2 formatting by default rather than base-10", "you need to parse human-readable sizes back into bytes", "you're not working in a JavaScript/Node.js environment"], "when_to_choose": ["you need a small, dependency-free utility for formatting byte sizes", "you want locale-aware or fixed-width number formatting", "you need both SI (kB) and binary (KiB) prefix support"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/pretty-bytes", "repo": "sindresorhus/pretty-bytes", "role": "main", "score": 86}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:04:18.754913+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T04:51:04.881822+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "b14afda52b7c03f4c47f7fb477353ba72ae54fb74bbbf1e52ea2c0d75224d0ac", "fetched_at": "2026-08-28T04:04:18.754913+00:00", "kind": "readme", "missing": false, "url": "https://github.com/sindresorhus/pretty-bytes"}, {"content_hash": "7ad2b5a1891e80e1118c9bc62fd3d87ab1ed2369b6e20bed51bb22a00cf06402", "fetched_at": "2026-08-29T12:09:16.759642+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/pretty-bytes"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:04:18.754913+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T04:51:04.881822+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "b14afda52b7c03f4c47f7fb477353ba72ae54fb74bbbf1e52ea2c0d75224d0ac", "fetched_at": "2026-08-28T04:04:18.754913+00:00", "kind": "readme", "missing": false, "url": "https://github.com/sindresorhus/pretty-bytes"}, {"content_hash": "7ad2b5a1891e80e1118c9bc62fd3d87ab1ed2369b6e20bed51bb22a00cf06402", "fetched_at": "2026-08-29T12:09:16.759642+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/pretty-bytes"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T04:51:04.881822+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "b14afda52b7c03f4c47f7fb477353ba72ae54fb74bbbf1e52ea2c0d75224d0ac", "fetched_at": "2026-08-28T04:04:18.754913+00:00", "kind": "readme", "missing": false, "url": "https://github.com/sindresorhus/pretty-bytes"}, {"content_hash": "7ad2b5a1891e80e1118c9bc62fd3d87ab1ed2369b6e20bed51bb22a00cf06402", "fetched_at": "2026-08-29T12:09:16.759642+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/pretty-bytes"}], "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:04:18.754913+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:04:18.754913+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:04:18.754913+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T04:51:04.881822+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "b14afda52b7c03f4c47f7fb477353ba72ae54fb74bbbf1e52ea2c0d75224d0ac", "fetched_at": "2026-08-28T04:04:18.754913+00:00", "kind": "readme", "missing": false, "url": "https://github.com/sindresorhus/pretty-bytes"}, {"content_hash": "7ad2b5a1891e80e1118c9bc62fd3d87ab1ed2369b6e20bed51bb22a00cf06402", "fetched_at": "2026-08-29T12:09:16.759642+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/pretty-bytes"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:04:18.754913+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:04:18.754913+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T04:51:04.881822+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "b14afda52b7c03f4c47f7fb477353ba72ae54fb74bbbf1e52ea2c0d75224d0ac", "fetched_at": "2026-08-28T04:04:18.754913+00:00", "kind": "readme", "missing": false, "url": "https://github.com/sindresorhus/pretty-bytes"}, {"content_hash": "7ad2b5a1891e80e1118c9bc62fd3d87ab1ed2369b6e20bed51bb22a00cf06402", "fetched_at": "2026-08-29T12:09:16.759642+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/pretty-bytes"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:04:18.754913+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:04:18.754913+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:04:18.754913+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T04:51:04.881822+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "b14afda52b7c03f4c47f7fb477353ba72ae54fb74bbbf1e52ea2c0d75224d0ac", "fetched_at": "2026-08-28T04:04:18.754913+00:00", "kind": "readme", "missing": false, "url": "https://github.com/sindresorhus/pretty-bytes"}, {"content_hash": "7ad2b5a1891e80e1118c9bc62fd3d87ab1ed2369b6e20bed51bb22a00cf06402", "fetched_at": "2026-08-29T12:09:16.759642+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/pretty-bytes"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:04:18.754913+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:04:18.754913+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T04:51:04.881822+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "b14afda52b7c03f4c47f7fb477353ba72ae54fb74bbbf1e52ea2c0d75224d0ac", "fetched_at": "2026-08-28T04:04:18.754913+00:00", "kind": "readme", "missing": false, "url": "https://github.com/sindresorhus/pretty-bytes"}, {"content_hash": "7ad2b5a1891e80e1118c9bc62fd3d87ab1ed2369b6e20bed51bb22a00cf06402", "fetched_at": "2026-08-29T12:09:16.759642+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/pretty-bytes"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T04:51:04.881822+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "b14afda52b7c03f4c47f7fb477353ba72ae54fb74bbbf1e52ea2c0d75224d0ac", "fetched_at": "2026-08-28T04:04:18.754913+00:00", "kind": "readme", "missing": false, "url": "https://github.com/sindresorhus/pretty-bytes"}, {"content_hash": "7ad2b5a1891e80e1118c9bc62fd3d87ab1ed2369b6e20bed51bb22a00cf06402", "fetched_at": "2026-08-29T12:09:16.759642+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/pretty-bytes"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T04:51:04.881822+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "b14afda52b7c03f4c47f7fb477353ba72ae54fb74bbbf1e52ea2c0d75224d0ac", "fetched_at": "2026-08-28T04:04:18.754913+00:00", "kind": "readme", "missing": false, "url": "https://github.com/sindresorhus/pretty-bytes"}, {"content_hash": "7ad2b5a1891e80e1118c9bc62fd3d87ab1ed2369b6e20bed51bb22a00cf06402", "fetched_at": "2026-08-29T12:09:16.759642+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/pretty-bytes"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T04:51:04.881822+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "b14afda52b7c03f4c47f7fb477353ba72ae54fb74bbbf1e52ea2c0d75224d0ac", "fetched_at": "2026-08-28T04:04:18.754913+00:00", "kind": "readme", "missing": false, "url": "https://github.com/sindresorhus/pretty-bytes"}, {"content_hash": "7ad2b5a1891e80e1118c9bc62fd3d87ab1ed2369b6e20bed51bb22a00cf06402", "fetched_at": "2026-08-29T12:09:16.759642+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/pretty-bytes"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 92, "longevity": 100, "rhythm": 69}, "computed_at": "2026-09-02T17:46:02.011165+00:00", "flags": [], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 4588, "days_push": 49, "days_rel": 49, "gap_med": 104, "n_releases_24m": 4}, "score": 86, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}