{"adoption": {"forks": 750, "observed_at": "2026-08-28T04:06:50.568575+00:00", "stars": 2421}, "canonical_url": "https://ross.abutalabs.com/products/clampjs", "card": {"archived": false, "artifact_type": "library", "description": "Clamps an HTML element by adding ellipsis to it if the content inside is too long.", "domain": ["web-development", "frontend"], "enriched": true, "function": ["ui-components", "frontend-framework"], "health_score": 20, "homepage": "http://joe.sh/clamp-js", "language": "JavaScript", "license": null, "license_family": "other", "maturity": "abandoned", "member_repos": ["josephschmitt/Clamp.js"], "name": "josephschmitt/Clamp.js", "platform": ["browser", "cross-platform"], "pushed_at": "2018-11-30T17:06:17+00:00", "repo": "josephschmitt/Clamp.js", "stars": 2421, "tags": ["text-truncation", "ellipsis", "line-clamp", "vanilla-javascript", "dom"], "topics": [], "urls": [], "use_cases": ["truncate long text to a fixed number of lines with an ellipsis", "clamp dynamic content to a fixed pixel height", "add a read more link at the end of truncated text", "cross-browser line clamping without experimental CSS", "auto-clamp content to fit available container space"], "what_it_is": "Clamp.js is a small vanilla JavaScript library that truncates HTML element content with an ellipsis when it exceeds a specified number of lines or height. It works cross-browser, optionally leveraging the native -webkit-line-clamp where available.", "when_to_avoid": ["your target browsers support the modern CSS line-clamp property", "the project needs an actively maintained library", "you use a framework with built-in truncation utilities"], "when_to_choose": ["you need multi-line text truncation in older browsers lacking CSS line-clamp support", "you want a dependency-free vanilla JS solution", "you need custom truncation characters or trailing HTML like a read-more link"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/clampjs", "repo": "josephschmitt/Clamp.js", "role": "main", "score": 32}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:06:50.568575+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T02:33:03.498838+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "90b4ced4b4d8068f93a4783c0723e2656009f0572e4ea2c5590b3e6f9b8897d9", "fetched_at": "2026-08-28T04:06:50.568575+00:00", "kind": "readme", "missing": false, "url": "https://github.com/josephschmitt/Clamp.js"}, {"content_hash": "455a241bdd2300e3b4125dc986d25cf6633636798bf464a44c2ba935976ff34e", "fetched_at": "2026-08-29T10:13:46.750477+00:00", "kind": "homepage", "missing": false, "url": "http://joe.sh/clamp-js"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:06:50.568575+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T02:33:03.498838+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "90b4ced4b4d8068f93a4783c0723e2656009f0572e4ea2c5590b3e6f9b8897d9", "fetched_at": "2026-08-28T04:06:50.568575+00:00", "kind": "readme", "missing": false, "url": "https://github.com/josephschmitt/Clamp.js"}, {"content_hash": "455a241bdd2300e3b4125dc986d25cf6633636798bf464a44c2ba935976ff34e", "fetched_at": "2026-08-29T10:13:46.750477+00:00", "kind": "homepage", "missing": false, "url": "http://joe.sh/clamp-js"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T02:33:03.498838+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "90b4ced4b4d8068f93a4783c0723e2656009f0572e4ea2c5590b3e6f9b8897d9", "fetched_at": "2026-08-28T04:06:50.568575+00:00", "kind": "readme", "missing": false, "url": "https://github.com/josephschmitt/Clamp.js"}, {"content_hash": "455a241bdd2300e3b4125dc986d25cf6633636798bf464a44c2ba935976ff34e", "fetched_at": "2026-08-29T10:13:46.750477+00:00", "kind": "homepage", "missing": false, "url": "http://joe.sh/clamp-js"}], "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:06:50.568575+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:06:50.568575+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:06:50.568575+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T02:33:03.498838+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "90b4ced4b4d8068f93a4783c0723e2656009f0572e4ea2c5590b3e6f9b8897d9", "fetched_at": "2026-08-28T04:06:50.568575+00:00", "kind": "readme", "missing": false, "url": "https://github.com/josephschmitt/Clamp.js"}, {"content_hash": "455a241bdd2300e3b4125dc986d25cf6633636798bf464a44c2ba935976ff34e", "fetched_at": "2026-08-29T10:13:46.750477+00:00", "kind": "homepage", "missing": false, "url": "http://joe.sh/clamp-js"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:06:50.568575+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:06:50.568575+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T02:33:03.498838+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "90b4ced4b4d8068f93a4783c0723e2656009f0572e4ea2c5590b3e6f9b8897d9", "fetched_at": "2026-08-28T04:06:50.568575+00:00", "kind": "readme", "missing": false, "url": "https://github.com/josephschmitt/Clamp.js"}, {"content_hash": "455a241bdd2300e3b4125dc986d25cf6633636798bf464a44c2ba935976ff34e", "fetched_at": "2026-08-29T10:13:46.750477+00:00", "kind": "homepage", "missing": false, "url": "http://joe.sh/clamp-js"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:06:50.568575+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:06:50.568575+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:06:50.568575+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T02:33:03.498838+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "90b4ced4b4d8068f93a4783c0723e2656009f0572e4ea2c5590b3e6f9b8897d9", "fetched_at": "2026-08-28T04:06:50.568575+00:00", "kind": "readme", "missing": false, "url": "https://github.com/josephschmitt/Clamp.js"}, {"content_hash": "455a241bdd2300e3b4125dc986d25cf6633636798bf464a44c2ba935976ff34e", "fetched_at": "2026-08-29T10:13:46.750477+00:00", "kind": "homepage", "missing": false, "url": "http://joe.sh/clamp-js"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:06:50.568575+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:06:50.568575+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T02:33:03.498838+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "90b4ced4b4d8068f93a4783c0723e2656009f0572e4ea2c5590b3e6f9b8897d9", "fetched_at": "2026-08-28T04:06:50.568575+00:00", "kind": "readme", "missing": false, "url": "https://github.com/josephschmitt/Clamp.js"}, {"content_hash": "455a241bdd2300e3b4125dc986d25cf6633636798bf464a44c2ba935976ff34e", "fetched_at": "2026-08-29T10:13:46.750477+00:00", "kind": "homepage", "missing": false, "url": "http://joe.sh/clamp-js"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T02:33:03.498838+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "90b4ced4b4d8068f93a4783c0723e2656009f0572e4ea2c5590b3e6f9b8897d9", "fetched_at": "2026-08-28T04:06:50.568575+00:00", "kind": "readme", "missing": false, "url": "https://github.com/josephschmitt/Clamp.js"}, {"content_hash": "455a241bdd2300e3b4125dc986d25cf6633636798bf464a44c2ba935976ff34e", "fetched_at": "2026-08-29T10:13:46.750477+00:00", "kind": "homepage", "missing": false, "url": "http://joe.sh/clamp-js"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T02:33:03.498838+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "90b4ced4b4d8068f93a4783c0723e2656009f0572e4ea2c5590b3e6f9b8897d9", "fetched_at": "2026-08-28T04:06:50.568575+00:00", "kind": "readme", "missing": false, "url": "https://github.com/josephschmitt/Clamp.js"}, {"content_hash": "455a241bdd2300e3b4125dc986d25cf6633636798bf464a44c2ba935976ff34e", "fetched_at": "2026-08-29T10:13:46.750477+00:00", "kind": "homepage", "missing": false, "url": "http://joe.sh/clamp-js"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T02:33:03.498838+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "90b4ced4b4d8068f93a4783c0723e2656009f0572e4ea2c5590b3e6f9b8897d9", "fetched_at": "2026-08-28T04:06:50.568575+00:00", "kind": "readme", "missing": false, "url": "https://github.com/josephschmitt/Clamp.js"}, {"content_hash": "455a241bdd2300e3b4125dc986d25cf6633636798bf464a44c2ba935976ff34e", "fetched_at": "2026-08-29T10:13:46.750477+00:00", "kind": "homepage", "missing": false, "url": "http://joe.sh/clamp-js"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 0, "longevity": 100, "rhythm": 35}, "computed_at": "2026-09-03T02:20:16.233290+00:00", "flags": ["no_releases", "no_license"], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 5717, "days_push": 2833, "days_rel": null, "gap_med": null, "n_releases_24m": 0}, "score": 32, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}