{"adoption": {"forks": 213, "observed_at": "2026-08-28T04:07:30.244858+00:00", "stars": 2922}, "canonical_url": "https://ross.abutalabs.com/products/serialize-javascript", "card": {"archived": false, "artifact_type": "library", "description": "Serialize JavaScript to a superset of JSON that includes regular expressions and functions.", "domain": ["web-development", "developer-tools"], "enriched": true, "function": ["serialization"], "health_score": 100, "homepage": null, "language": "JavaScript", "license": "NOASSERTION", "license_family": "other", "maturity": "stable", "member_repos": ["yahoo/serialize-javascript"], "name": "yahoo/serialize-javascript", "platform": [], "pushed_at": "2026-08-26T13:09:24+00:00", "repo": "yahoo/serialize-javascript", "stars": 2922, "tags": ["serialize-javascript", "-superset", "functions", "regex", "express-state", "nodejs", "javascript", "web-server"], "topics": ["javascript", "web", "json", "serialize"], "urls": [], "use_cases": ["serialize javascript objects with functions and regexps to -like strings", "share route definitions with regexps from server to client", "embed serialized state into an html script tag safely", "serialize dates, maps, sets, and bigint values that .stringify cannot handle", "pass serializable state to server-side rendering hydration"], "what_it_is": "A small npm library from Yahoo that serializes JavaScript values into a string of literal JavaScript code, extending JSON.stringify to support functions, regular expressions, dates, Sets, Maps, BigInt, Infinity, and URLs. The output can be embedded in HTML script tags or saved as a .js file, with HTML characters and line terminators escaped automatically.", "when_to_avoid": ["you need to serialize arbitrary closures or functions that reference outside variables, such as for worker threads", "you need cross-language data interchange rather than literal javascript code", "you need secure deserialization of untrusted input"], "when_to_choose": ["you need to serialize javascript values beyond what .stringify supports, like functions, regexps, dates, sets, or maps", "you want output safe to embed directly into html script elements", "you need a small, focused, well-tested serialization utility for node or the browser"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/serialize-javascript", "repo": "yahoo/serialize-javascript", "role": "main", "score": 98}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:07:30.244858+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T07:33:46.580695+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "5c2bfaecf4f9679c28e40b3f5bf976a5a9b71da4f10ecd12ba04a72bb6b2797a", "fetched_at": "2026-08-28T04:07:30.244858+00:00", "kind": "readme", "missing": false, "url": "https://github.com/yahoo/serialize-javascript"}, {"content_hash": "4545391bb97deec2e263a09c498d9864d30a2d7f19818809e7f6b5a3f857a1b7", "fetched_at": "2026-08-29T09:49:21.619742+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/serialize-javascript"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:07:30.244858+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T07:33:46.580695+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "5c2bfaecf4f9679c28e40b3f5bf976a5a9b71da4f10ecd12ba04a72bb6b2797a", "fetched_at": "2026-08-28T04:07:30.244858+00:00", "kind": "readme", "missing": false, "url": "https://github.com/yahoo/serialize-javascript"}, {"content_hash": "4545391bb97deec2e263a09c498d9864d30a2d7f19818809e7f6b5a3f857a1b7", "fetched_at": "2026-08-29T09:49:21.619742+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/serialize-javascript"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T07:33:46.580695+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "5c2bfaecf4f9679c28e40b3f5bf976a5a9b71da4f10ecd12ba04a72bb6b2797a", "fetched_at": "2026-08-28T04:07:30.244858+00:00", "kind": "readme", "missing": false, "url": "https://github.com/yahoo/serialize-javascript"}, {"content_hash": "4545391bb97deec2e263a09c498d9864d30a2d7f19818809e7f6b5a3f857a1b7", "fetched_at": "2026-08-29T09:49:21.619742+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/serialize-javascript"}], "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:07:30.244858+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:07:30.244858+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:07:30.244858+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T07:33:46.580695+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "5c2bfaecf4f9679c28e40b3f5bf976a5a9b71da4f10ecd12ba04a72bb6b2797a", "fetched_at": "2026-08-28T04:07:30.244858+00:00", "kind": "readme", "missing": false, "url": "https://github.com/yahoo/serialize-javascript"}, {"content_hash": "4545391bb97deec2e263a09c498d9864d30a2d7f19818809e7f6b5a3f857a1b7", "fetched_at": "2026-08-29T09:49:21.619742+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/serialize-javascript"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:07:30.244858+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:07:30.244858+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T07:33:46.580695+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "5c2bfaecf4f9679c28e40b3f5bf976a5a9b71da4f10ecd12ba04a72bb6b2797a", "fetched_at": "2026-08-28T04:07:30.244858+00:00", "kind": "readme", "missing": false, "url": "https://github.com/yahoo/serialize-javascript"}, {"content_hash": "4545391bb97deec2e263a09c498d9864d30a2d7f19818809e7f6b5a3f857a1b7", "fetched_at": "2026-08-29T09:49:21.619742+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/serialize-javascript"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:07:30.244858+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:07:30.244858+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:07:30.244858+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T07:33:46.580695+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "5c2bfaecf4f9679c28e40b3f5bf976a5a9b71da4f10ecd12ba04a72bb6b2797a", "fetched_at": "2026-08-28T04:07:30.244858+00:00", "kind": "readme", "missing": false, "url": "https://github.com/yahoo/serialize-javascript"}, {"content_hash": "4545391bb97deec2e263a09c498d9864d30a2d7f19818809e7f6b5a3f857a1b7", "fetched_at": "2026-08-29T09:49:21.619742+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/serialize-javascript"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:07:30.244858+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:07:30.244858+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T07:33:46.580695+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "5c2bfaecf4f9679c28e40b3f5bf976a5a9b71da4f10ecd12ba04a72bb6b2797a", "fetched_at": "2026-08-28T04:07:30.244858+00:00", "kind": "readme", "missing": false, "url": "https://github.com/yahoo/serialize-javascript"}, {"content_hash": "4545391bb97deec2e263a09c498d9864d30a2d7f19818809e7f6b5a3f857a1b7", "fetched_at": "2026-08-29T09:49:21.619742+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/serialize-javascript"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T07:33:46.580695+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "5c2bfaecf4f9679c28e40b3f5bf976a5a9b71da4f10ecd12ba04a72bb6b2797a", "fetched_at": "2026-08-28T04:07:30.244858+00:00", "kind": "readme", "missing": false, "url": "https://github.com/yahoo/serialize-javascript"}, {"content_hash": "4545391bb97deec2e263a09c498d9864d30a2d7f19818809e7f6b5a3f857a1b7", "fetched_at": "2026-08-29T09:49:21.619742+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/serialize-javascript"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T07:33:46.580695+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "5c2bfaecf4f9679c28e40b3f5bf976a5a9b71da4f10ecd12ba04a72bb6b2797a", "fetched_at": "2026-08-28T04:07:30.244858+00:00", "kind": "readme", "missing": false, "url": "https://github.com/yahoo/serialize-javascript"}, {"content_hash": "4545391bb97deec2e263a09c498d9864d30a2d7f19818809e7f6b5a3f857a1b7", "fetched_at": "2026-08-29T09:49:21.619742+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/serialize-javascript"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T07:33:46.580695+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "5c2bfaecf4f9679c28e40b3f5bf976a5a9b71da4f10ecd12ba04a72bb6b2797a", "fetched_at": "2026-08-28T04:07:30.244858+00:00", "kind": "readme", "missing": false, "url": "https://github.com/yahoo/serialize-javascript"}, {"content_hash": "4545391bb97deec2e263a09c498d9864d30a2d7f19818809e7f6b5a3f857a1b7", "fetched_at": "2026-08-29T09:49:21.619742+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/serialize-javascript"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 99, "longevity": 100, "rhythm": 96}, "computed_at": "2026-09-02T17:46:02.011165+00:00", "flags": ["no_license"], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 4369, "days_push": 7, "days_rel": 25, "gap_med": 30.0, "n_releases_24m": 9}, "score": 98, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}