{"adoption": {"forks": 264, "observed_at": "2026-08-28T04:07:37.244190+00:00", "stars": 2998}, "canonical_url": "https://ross.abutalabs.com/products/m2cgen", "card": {"archived": false, "artifact_type": "library", "description": "Transform ML models into a native code (Java, C, Python, Go, JavaScript, Visual Basic, C#, R, PowerShell, PHP, Dart, Haskell, Ruby, F#, Rust) with zero dependencies", "domain": ["machine-learning", "developer-tools", "programming-languages"], "enriched": true, "function": ["machine-learning", "compiler", "developer-tools"], "health_score": 20, "homepage": null, "language": "Python", "license": "MIT", "license_family": "permissive", "maturity": "maintenance", "member_repos": ["BayesWitnesses/m2cgen"], "name": "BayesWitnesses/m2cgen", "platform": ["python", "cross-platform"], "pushed_at": "2024-08-03T17:30:36+00:00", "repo": "BayesWitnesses/m2cgen", "stars": 2998, "tags": ["transpilation", "code-generation", "scikit-learn", "xgboost", "lightgbm", "zero-dependency-inference"], "topics": ["machine-learning", "scikit-learn", "statistical-learning", "xgboost", "lightgbm", "java", "python", "c", "javascript", "go", "csharp", "php", "r", "dartlang", "statsmodels", "lightning", "haskell", "ruby", "rust"], "urls": [], "use_cases": ["deploy ML models in languages without Python runtimes", "generate dependency-free scoring code from a trained sklearn model", "transpile an XGBoost model to Java or C for embedded inference", "export a LightGBM classifier to Go or Rust source code", "run model inference in environments where installing ML libraries is impossible", "convert a trained regression model to JavaScript for browser-side prediction"], "what_it_is": "m2cgen is a lightweight Python library that transpiles trained statistical machine learning models into native code in languages such as Python, C, Java, Go, JavaScript, Rust, and more. It enables zero-dependency model inference by generating standalone scoring code from scikit-learn, XGBoost, LightGBM, StatsModels, and lightning models.", "when_to_avoid": ["you need to serve deep learning or neural network models", "you want a full model serving platform with APIs and monitoring", "your model uses estimators not in the supported list"], "when_to_choose": ["you need to serve a trained model in a language without ML library support", "you want zero-dependency, low-latency inference without shipping heavy ML runtimes", "you target embedded or constrained environments where only native code can run"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/m2cgen", "repo": "BayesWitnesses/m2cgen", "role": "main", "score": 23}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:07:37.244190+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T07:30:36.226306+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "e9e7e5eb1c5dd02506e6315f446db3b50be20797083f54b446d7f34075961e2c", "fetched_at": "2026-08-28T04:07:37.244190+00:00", "kind": "readme", "missing": false, "url": "https://github.com/BayesWitnesses/m2cgen"}, {"content_hash": "c67fb9dff22d835b6924c96ad4cadce79a34ace9354a97b63a554e3585d37245", "fetched_at": "2026-08-29T09:45:50.891890+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/m2cgen/json"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:07:37.244190+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T07:30:36.226306+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "e9e7e5eb1c5dd02506e6315f446db3b50be20797083f54b446d7f34075961e2c", "fetched_at": "2026-08-28T04:07:37.244190+00:00", "kind": "readme", "missing": false, "url": "https://github.com/BayesWitnesses/m2cgen"}, {"content_hash": "c67fb9dff22d835b6924c96ad4cadce79a34ace9354a97b63a554e3585d37245", "fetched_at": "2026-08-29T09:45:50.891890+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/m2cgen/json"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T07:30:36.226306+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "e9e7e5eb1c5dd02506e6315f446db3b50be20797083f54b446d7f34075961e2c", "fetched_at": "2026-08-28T04:07:37.244190+00:00", "kind": "readme", "missing": false, "url": "https://github.com/BayesWitnesses/m2cgen"}, {"content_hash": "c67fb9dff22d835b6924c96ad4cadce79a34ace9354a97b63a554e3585d37245", "fetched_at": "2026-08-29T09:45:50.891890+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/m2cgen/json"}], "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:37.244190+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:07:37.244190+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:07:37.244190+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T07:30:36.226306+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "e9e7e5eb1c5dd02506e6315f446db3b50be20797083f54b446d7f34075961e2c", "fetched_at": "2026-08-28T04:07:37.244190+00:00", "kind": "readme", "missing": false, "url": "https://github.com/BayesWitnesses/m2cgen"}, {"content_hash": "c67fb9dff22d835b6924c96ad4cadce79a34ace9354a97b63a554e3585d37245", "fetched_at": "2026-08-29T09:45:50.891890+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/m2cgen/json"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:07:37.244190+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:07:37.244190+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T07:30:36.226306+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "e9e7e5eb1c5dd02506e6315f446db3b50be20797083f54b446d7f34075961e2c", "fetched_at": "2026-08-28T04:07:37.244190+00:00", "kind": "readme", "missing": false, "url": "https://github.com/BayesWitnesses/m2cgen"}, {"content_hash": "c67fb9dff22d835b6924c96ad4cadce79a34ace9354a97b63a554e3585d37245", "fetched_at": "2026-08-29T09:45:50.891890+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/m2cgen/json"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:07:37.244190+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:07:37.244190+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:07:37.244190+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T07:30:36.226306+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "e9e7e5eb1c5dd02506e6315f446db3b50be20797083f54b446d7f34075961e2c", "fetched_at": "2026-08-28T04:07:37.244190+00:00", "kind": "readme", "missing": false, "url": "https://github.com/BayesWitnesses/m2cgen"}, {"content_hash": "c67fb9dff22d835b6924c96ad4cadce79a34ace9354a97b63a554e3585d37245", "fetched_at": "2026-08-29T09:45:50.891890+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/m2cgen/json"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:07:37.244190+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:07:37.244190+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T07:30:36.226306+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "e9e7e5eb1c5dd02506e6315f446db3b50be20797083f54b446d7f34075961e2c", "fetched_at": "2026-08-28T04:07:37.244190+00:00", "kind": "readme", "missing": false, "url": "https://github.com/BayesWitnesses/m2cgen"}, {"content_hash": "c67fb9dff22d835b6924c96ad4cadce79a34ace9354a97b63a554e3585d37245", "fetched_at": "2026-08-29T09:45:50.891890+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/m2cgen/json"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T07:30:36.226306+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "e9e7e5eb1c5dd02506e6315f446db3b50be20797083f54b446d7f34075961e2c", "fetched_at": "2026-08-28T04:07:37.244190+00:00", "kind": "readme", "missing": false, "url": "https://github.com/BayesWitnesses/m2cgen"}, {"content_hash": "c67fb9dff22d835b6924c96ad4cadce79a34ace9354a97b63a554e3585d37245", "fetched_at": "2026-08-29T09:45:50.891890+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/m2cgen/json"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T07:30:36.226306+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "e9e7e5eb1c5dd02506e6315f446db3b50be20797083f54b446d7f34075961e2c", "fetched_at": "2026-08-28T04:07:37.244190+00:00", "kind": "readme", "missing": false, "url": "https://github.com/BayesWitnesses/m2cgen"}, {"content_hash": "c67fb9dff22d835b6924c96ad4cadce79a34ace9354a97b63a554e3585d37245", "fetched_at": "2026-08-29T09:45:50.891890+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/m2cgen/json"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T07:30:36.226306+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "e9e7e5eb1c5dd02506e6315f446db3b50be20797083f54b446d7f34075961e2c", "fetched_at": "2026-08-28T04:07:37.244190+00:00", "kind": "readme", "missing": false, "url": "https://github.com/BayesWitnesses/m2cgen"}, {"content_hash": "c67fb9dff22d835b6924c96ad4cadce79a34ace9354a97b63a554e3585d37245", "fetched_at": "2026-08-29T09:45:50.891890+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/m2cgen/json"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 0, "longevity": 100, "rhythm": 8}, "computed_at": "2026-09-03T02:39:23.370411+00:00", "flags": [], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 2790, "days_push": 760, "days_rel": null, "gap_med": null, "n_releases_24m": 0}, "score": 23, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}