{"adoption": {"forks": 33, "observed_at": "2026-08-28T04:04:24.273160+00:00", "stars": 1331}, "canonical_url": "https://ross.abutalabs.com/products/main-thread-scheduling", "card": {"archived": false, "artifact_type": "library", "description": "Fast and consistently responsive apps using a single function call", "domain": ["web-development", "frontend", "performance"], "enriched": true, "function": ["concurrency", "scheduling", "developer-tools"], "health_score": 29, "homepage": null, "language": "TypeScript", "license": "MIT", "license_family": "permissive", "maturity": "active", "member_repos": ["astoilkov/main-thread-scheduling"], "name": "astoilkov/main-thread-scheduling", "platform": ["browser"], "pushed_at": "2025-01-13T12:36:48+00:00", "repo": "astoilkov/main-thread-scheduling", "stars": 1331, "tags": ["main-thread", "event-loop", "yield", "isinputpending", "inp", "web-vitals", "typescript", "non-blocking", "web-server", "nodejs"], "topics": ["posttask", "worker", "background", "yield", "thread", "webworker", "defer", "scheduling", "main-thread", "postpone", "eventloop", "scheduler", "isinputpending"], "urls": [], "use_cases": ["make a synchronous function non-blocking without web workers", "prevent UI freezes during heavy computation", "improve INP and Core Web Vitals scores", "run background tasks without spinning up fans", "prioritize rendering important elements first", "run multiple background tasks without degrading performance"], "what_it_is": "A TypeScript library for running computationally heavy tasks on the browser main thread without freezing the UI, using a simple yieldOrContinue() API. It schedules work with requestIdleCallback, isInputPending, and a global priority queue to keep apps responsive.", "when_to_avoid": ["your task is purely CPU-bound and works well in a Web Worker with no DOM access needs", "you need true parallelism across multiple cores", "you are working outside a browser environment where scheduling APIs are unavailable"], "when_to_choose": ["you want to avoid the complexity of Web Workers while keeping the UI responsive", "you need fine-grained yielding inside long-running main-thread tasks", "you want a tiny, production-tested scheduling library with a simple API"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/main-thread-scheduling", "repo": "astoilkov/main-thread-scheduling", "role": "main", "score": 23}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:04:24.273160+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T04:45:15.147651+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "0149486b007b2be7b19f9e2dbdd393fd1ec90f35acd2b004dc409054d2a581e2", "fetched_at": "2026-08-28T04:04:24.273160+00:00", "kind": "readme", "missing": false, "url": "https://github.com/astoilkov/main-thread-scheduling"}, {"content_hash": "aa85c4092d6a38ef0a26dec9511dbee33b1cabb803f6d9a4cd082d88116896ed", "fetched_at": "2026-08-29T12:04:34.148775+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/main-thread-scheduling"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:04:24.273160+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T04:45:15.147651+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "0149486b007b2be7b19f9e2dbdd393fd1ec90f35acd2b004dc409054d2a581e2", "fetched_at": "2026-08-28T04:04:24.273160+00:00", "kind": "readme", "missing": false, "url": "https://github.com/astoilkov/main-thread-scheduling"}, {"content_hash": "aa85c4092d6a38ef0a26dec9511dbee33b1cabb803f6d9a4cd082d88116896ed", "fetched_at": "2026-08-29T12:04:34.148775+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/main-thread-scheduling"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T04:45:15.147651+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "0149486b007b2be7b19f9e2dbdd393fd1ec90f35acd2b004dc409054d2a581e2", "fetched_at": "2026-08-28T04:04:24.273160+00:00", "kind": "readme", "missing": false, "url": "https://github.com/astoilkov/main-thread-scheduling"}, {"content_hash": "aa85c4092d6a38ef0a26dec9511dbee33b1cabb803f6d9a4cd082d88116896ed", "fetched_at": "2026-08-29T12:04:34.148775+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/main-thread-scheduling"}], "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:24.273160+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:04:24.273160+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:04:24.273160+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T04:45:15.147651+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "0149486b007b2be7b19f9e2dbdd393fd1ec90f35acd2b004dc409054d2a581e2", "fetched_at": "2026-08-28T04:04:24.273160+00:00", "kind": "readme", "missing": false, "url": "https://github.com/astoilkov/main-thread-scheduling"}, {"content_hash": "aa85c4092d6a38ef0a26dec9511dbee33b1cabb803f6d9a4cd082d88116896ed", "fetched_at": "2026-08-29T12:04:34.148775+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/main-thread-scheduling"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:04:24.273160+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:04:24.273160+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T04:45:15.147651+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "0149486b007b2be7b19f9e2dbdd393fd1ec90f35acd2b004dc409054d2a581e2", "fetched_at": "2026-08-28T04:04:24.273160+00:00", "kind": "readme", "missing": false, "url": "https://github.com/astoilkov/main-thread-scheduling"}, {"content_hash": "aa85c4092d6a38ef0a26dec9511dbee33b1cabb803f6d9a4cd082d88116896ed", "fetched_at": "2026-08-29T12:04:34.148775+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/main-thread-scheduling"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:04:24.273160+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:04:24.273160+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:04:24.273160+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T04:45:15.147651+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "0149486b007b2be7b19f9e2dbdd393fd1ec90f35acd2b004dc409054d2a581e2", "fetched_at": "2026-08-28T04:04:24.273160+00:00", "kind": "readme", "missing": false, "url": "https://github.com/astoilkov/main-thread-scheduling"}, {"content_hash": "aa85c4092d6a38ef0a26dec9511dbee33b1cabb803f6d9a4cd082d88116896ed", "fetched_at": "2026-08-29T12:04:34.148775+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/main-thread-scheduling"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:04:24.273160+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:04:24.273160+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T04:45:15.147651+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "0149486b007b2be7b19f9e2dbdd393fd1ec90f35acd2b004dc409054d2a581e2", "fetched_at": "2026-08-28T04:04:24.273160+00:00", "kind": "readme", "missing": false, "url": "https://github.com/astoilkov/main-thread-scheduling"}, {"content_hash": "aa85c4092d6a38ef0a26dec9511dbee33b1cabb803f6d9a4cd082d88116896ed", "fetched_at": "2026-08-29T12:04:34.148775+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/main-thread-scheduling"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T04:45:15.147651+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "0149486b007b2be7b19f9e2dbdd393fd1ec90f35acd2b004dc409054d2a581e2", "fetched_at": "2026-08-28T04:04:24.273160+00:00", "kind": "readme", "missing": false, "url": "https://github.com/astoilkov/main-thread-scheduling"}, {"content_hash": "aa85c4092d6a38ef0a26dec9511dbee33b1cabb803f6d9a4cd082d88116896ed", "fetched_at": "2026-08-29T12:04:34.148775+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/main-thread-scheduling"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T04:45:15.147651+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "0149486b007b2be7b19f9e2dbdd393fd1ec90f35acd2b004dc409054d2a581e2", "fetched_at": "2026-08-28T04:04:24.273160+00:00", "kind": "readme", "missing": false, "url": "https://github.com/astoilkov/main-thread-scheduling"}, {"content_hash": "aa85c4092d6a38ef0a26dec9511dbee33b1cabb803f6d9a4cd082d88116896ed", "fetched_at": "2026-08-29T12:04:34.148775+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/main-thread-scheduling"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T04:45:15.147651+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "0149486b007b2be7b19f9e2dbdd393fd1ec90f35acd2b004dc409054d2a581e2", "fetched_at": "2026-08-28T04:04:24.273160+00:00", "kind": "readme", "missing": false, "url": "https://github.com/astoilkov/main-thread-scheduling"}, {"content_hash": "aa85c4092d6a38ef0a26dec9511dbee33b1cabb803f6d9a4cd082d88116896ed", "fetched_at": "2026-08-29T12:04:34.148775+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/main-thread-scheduling"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 1, "longevity": 100, "rhythm": 8}, "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": 2010, "days_push": 597, "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}}