{"adoption": {"forks": 635, "observed_at": "2026-08-28T04:09:15.481381+00:00", "stars": 5313}, "canonical_url": "https://ross.abutalabs.com/products/js-xss", "card": {"archived": false, "artifact_type": "library", "description": "Sanitize untrusted HTML (to prevent XSS) with a configuration specified by a Whitelist", "domain": ["security", "web-development", "backend"], "enriched": true, "function": ["security", "serialization", "web-framework"], "health_score": 69, "homepage": "http://jsxss.com", "language": "HTML", "license": "NOASSERTION", "license_family": "other", "maturity": "stable", "member_repos": ["leizongmin/js-xss"], "name": "leizongmin/js-xss", "platform": ["browser"], "pushed_at": "2026-05-06T11:36:47+00:00", "repo": "leizongmin/js-xss", "stars": 5313, "tags": ["xss", "html-sanitizer", "whitelist", "input-filtering", "npm", "nodejs", "javascript"], "topics": [], "urls": [], "use_cases": ["sanitize user-submitted HTML comments", "prevent XSS attacks in web apps", "filter HTML input with a whitelist", "strip script tags from rich text", "clean untrusted HTML before rendering"], "what_it_is": "A JavaScript library for sanitizing untrusted HTML to prevent XSS attacks using a configurable whitelist of allowed tags and attributes. It works in Node.js and browsers and supports custom filtering functions.", "when_to_avoid": ["you need to sanitize non-HTML content like Markdown or CSS", "you need a full DOM parser or HTML rewriting beyond filtering"], "when_to_choose": ["you need whitelist-based HTML sanitization in Node.js or the browser", "you want fast, battle-tested XSS filtering with custom tag/attribute handling"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/js-xss", "repo": "leizongmin/js-xss", "role": "main", "score": 69}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:09:15.481381+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-29T17:58:58.151564+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "2cf6c82fddbf97bdbe5abc608eb128cfbb357df424b60a1f62255706845ab79e", "fetched_at": "2026-08-28T04:09:15.481381+00:00", "kind": "readme", "missing": false, "url": "https://github.com/leizongmin/js-xss"}, {"content_hash": "20e2130066770506514a21ad84a92404d175012e868db3d54f5cef2d7055788b", "fetched_at": "2026-08-29T08:53:40.980671+00:00", "kind": "homepage", "missing": false, "url": "http://jsxss.com"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:09:15.481381+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-29T17:58:58.151564+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "2cf6c82fddbf97bdbe5abc608eb128cfbb357df424b60a1f62255706845ab79e", "fetched_at": "2026-08-28T04:09:15.481381+00:00", "kind": "readme", "missing": false, "url": "https://github.com/leizongmin/js-xss"}, {"content_hash": "20e2130066770506514a21ad84a92404d175012e868db3d54f5cef2d7055788b", "fetched_at": "2026-08-29T08:53:40.980671+00:00", "kind": "homepage", "missing": false, "url": "http://jsxss.com"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-29T17:58:58.151564+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "2cf6c82fddbf97bdbe5abc608eb128cfbb357df424b60a1f62255706845ab79e", "fetched_at": "2026-08-28T04:09:15.481381+00:00", "kind": "readme", "missing": false, "url": "https://github.com/leizongmin/js-xss"}, {"content_hash": "20e2130066770506514a21ad84a92404d175012e868db3d54f5cef2d7055788b", "fetched_at": "2026-08-29T08:53:40.980671+00:00", "kind": "homepage", "missing": false, "url": "http://jsxss.com"}], "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:09:15.481381+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:09:15.481381+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:09:15.481381+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-29T17:58:58.151564+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "2cf6c82fddbf97bdbe5abc608eb128cfbb357df424b60a1f62255706845ab79e", "fetched_at": "2026-08-28T04:09:15.481381+00:00", "kind": "readme", "missing": false, "url": "https://github.com/leizongmin/js-xss"}, {"content_hash": "20e2130066770506514a21ad84a92404d175012e868db3d54f5cef2d7055788b", "fetched_at": "2026-08-29T08:53:40.980671+00:00", "kind": "homepage", "missing": false, "url": "http://jsxss.com"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:09:15.481381+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:09:15.481381+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-29T17:58:58.151564+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "2cf6c82fddbf97bdbe5abc608eb128cfbb357df424b60a1f62255706845ab79e", "fetched_at": "2026-08-28T04:09:15.481381+00:00", "kind": "readme", "missing": false, "url": "https://github.com/leizongmin/js-xss"}, {"content_hash": "20e2130066770506514a21ad84a92404d175012e868db3d54f5cef2d7055788b", "fetched_at": "2026-08-29T08:53:40.980671+00:00", "kind": "homepage", "missing": false, "url": "http://jsxss.com"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:09:15.481381+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:09:15.481381+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:09:15.481381+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-29T17:58:58.151564+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "2cf6c82fddbf97bdbe5abc608eb128cfbb357df424b60a1f62255706845ab79e", "fetched_at": "2026-08-28T04:09:15.481381+00:00", "kind": "readme", "missing": false, "url": "https://github.com/leizongmin/js-xss"}, {"content_hash": "20e2130066770506514a21ad84a92404d175012e868db3d54f5cef2d7055788b", "fetched_at": "2026-08-29T08:53:40.980671+00:00", "kind": "homepage", "missing": false, "url": "http://jsxss.com"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:09:15.481381+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:09:15.481381+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-29T17:58:58.151564+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "2cf6c82fddbf97bdbe5abc608eb128cfbb357df424b60a1f62255706845ab79e", "fetched_at": "2026-08-28T04:09:15.481381+00:00", "kind": "readme", "missing": false, "url": "https://github.com/leizongmin/js-xss"}, {"content_hash": "20e2130066770506514a21ad84a92404d175012e868db3d54f5cef2d7055788b", "fetched_at": "2026-08-29T08:53:40.980671+00:00", "kind": "homepage", "missing": false, "url": "http://jsxss.com"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-29T17:58:58.151564+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "2cf6c82fddbf97bdbe5abc608eb128cfbb357df424b60a1f62255706845ab79e", "fetched_at": "2026-08-28T04:09:15.481381+00:00", "kind": "readme", "missing": false, "url": "https://github.com/leizongmin/js-xss"}, {"content_hash": "20e2130066770506514a21ad84a92404d175012e868db3d54f5cef2d7055788b", "fetched_at": "2026-08-29T08:53:40.980671+00:00", "kind": "homepage", "missing": false, "url": "http://jsxss.com"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-29T17:58:58.151564+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "2cf6c82fddbf97bdbe5abc608eb128cfbb357df424b60a1f62255706845ab79e", "fetched_at": "2026-08-28T04:09:15.481381+00:00", "kind": "readme", "missing": false, "url": "https://github.com/leizongmin/js-xss"}, {"content_hash": "20e2130066770506514a21ad84a92404d175012e868db3d54f5cef2d7055788b", "fetched_at": "2026-08-29T08:53:40.980671+00:00", "kind": "homepage", "missing": false, "url": "http://jsxss.com"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-29T17:58:58.151564+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "2cf6c82fddbf97bdbe5abc608eb128cfbb357df424b60a1f62255706845ab79e", "fetched_at": "2026-08-28T04:09:15.481381+00:00", "kind": "readme", "missing": false, "url": "https://github.com/leizongmin/js-xss"}, {"content_hash": "20e2130066770506514a21ad84a92404d175012e868db3d54f5cef2d7055788b", "fetched_at": "2026-08-29T08:53:40.980671+00:00", "kind": "homepage", "missing": false, "url": "http://jsxss.com"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 81, "longevity": 100, "rhythm": 35}, "computed_at": "2026-09-02T17:46:02.011165+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": 5097, "days_push": 119, "days_rel": null, "gap_med": null, "n_releases_24m": 0}, "score": 69, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}