{"adoption": {"forks": 82, "observed_at": "2026-08-28T04:03:42.575206+00:00", "stars": 1131}, "canonical_url": "https://ross.abutalabs.com/products/pi-from-scratch", "card": {"archived": false, "artifact_type": "learning-resource", "description": "600 行 TypeScript 写成的超级迷你版 pi，让你轻松从 0 写出属于你的 pi-agent", "domain": ["artificial-intelligence", "large-language-models", "developer-tools", "tutorials"], "enriched": true, "function": ["agent-framework", "llm-inference", "developer-tools", "sdk"], "health_score": 79, "homepage": "https://pi-from-scratch.vercel.app", "language": "TypeScript", "license": "MIT", "license_family": "permissive", "maturity": "active", "member_repos": ["SaladDay/pi-from-scratch"], "name": "SaladDay/pi-from-scratch", "platform": ["cli"], "pushed_at": "2026-08-18T08:09:35+00:00", "repo": "SaladDay/pi-from-scratch", "stars": 1131, "tags": ["coding-agent", "agent-loop", "tool-calling", "tutorial", "educational", "pi-agent", "nano-pi", "ai-agents", "nodejs", "typescript", "web"], "topics": ["agent-loop", "ai-agent", "coding-agent", "llm", "pi", "tool-calling", "typescript", "llm-agent", "pi-agent", "typescript-tutorial"], "urls": [], "use_cases": ["learn how to build an AI coding agent from scratch", "understand agent loops and tool calling in TypeScript", "study how the pi agent architecture works", "build a minimal LLM agent that reads files and runs bash", "teach myself LLM streaming and SSE parsing", "follow a step-by-step coding agent tutorial"], "what_it_is": "A tutorial project that walks through building a minimal 600-line TypeScript coding agent (nano-pi) modeled on the production-grade pi agent. It pairs an article with an interactive website showing source code and execution traces, covering the LLM streaming layer, agent loop, and file/bash tools.", "when_to_avoid": ["you need a production-ready coding agent with multi-provider support", "you need extensions, session branching, or token compaction features", "you want a framework to build applications on rather than a teaching resource"], "when_to_choose": ["you want to understand agent internals rather than use a production tool", "you prefer learning by building a tiny implementation", "you want a readable TypeScript codebase for agent loops and tool calling"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/pi-from-scratch", "repo": "SaladDay/pi-from-scratch", "role": "main", "score": 57}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:03:42.575206+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T06:38:00.512456+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "22a80b3def200900e7d90e1280e7201509c3ab7f50c81c5363df33790f32d978", "fetched_at": "2026-08-28T04:03:42.575206+00:00", "kind": "readme", "missing": false, "url": "https://github.com/SaladDay/pi-from-scratch"}, {"content_hash": "23d47c36b254c149cd6757d2c7a3269754bcd80d0ae5dc771ef87fdd486658ae", "fetched_at": "2026-08-29T12:42:33.518750+00:00", "kind": "homepage", "missing": false, "url": "https://pi-from-scratch.vercel.app"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:03:42.575206+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T06:38:00.512456+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "22a80b3def200900e7d90e1280e7201509c3ab7f50c81c5363df33790f32d978", "fetched_at": "2026-08-28T04:03:42.575206+00:00", "kind": "readme", "missing": false, "url": "https://github.com/SaladDay/pi-from-scratch"}, {"content_hash": "23d47c36b254c149cd6757d2c7a3269754bcd80d0ae5dc771ef87fdd486658ae", "fetched_at": "2026-08-29T12:42:33.518750+00:00", "kind": "homepage", "missing": false, "url": "https://pi-from-scratch.vercel.app"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T06:38:00.512456+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "22a80b3def200900e7d90e1280e7201509c3ab7f50c81c5363df33790f32d978", "fetched_at": "2026-08-28T04:03:42.575206+00:00", "kind": "readme", "missing": false, "url": "https://github.com/SaladDay/pi-from-scratch"}, {"content_hash": "23d47c36b254c149cd6757d2c7a3269754bcd80d0ae5dc771ef87fdd486658ae", "fetched_at": "2026-08-29T12:42:33.518750+00:00", "kind": "homepage", "missing": false, "url": "https://pi-from-scratch.vercel.app"}], "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:03:42.575206+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:03:42.575206+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:03:42.575206+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T06:38:00.512456+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "22a80b3def200900e7d90e1280e7201509c3ab7f50c81c5363df33790f32d978", "fetched_at": "2026-08-28T04:03:42.575206+00:00", "kind": "readme", "missing": false, "url": "https://github.com/SaladDay/pi-from-scratch"}, {"content_hash": "23d47c36b254c149cd6757d2c7a3269754bcd80d0ae5dc771ef87fdd486658ae", "fetched_at": "2026-08-29T12:42:33.518750+00:00", "kind": "homepage", "missing": false, "url": "https://pi-from-scratch.vercel.app"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:03:42.575206+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:03:42.575206+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T06:38:00.512456+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "22a80b3def200900e7d90e1280e7201509c3ab7f50c81c5363df33790f32d978", "fetched_at": "2026-08-28T04:03:42.575206+00:00", "kind": "readme", "missing": false, "url": "https://github.com/SaladDay/pi-from-scratch"}, {"content_hash": "23d47c36b254c149cd6757d2c7a3269754bcd80d0ae5dc771ef87fdd486658ae", "fetched_at": "2026-08-29T12:42:33.518750+00:00", "kind": "homepage", "missing": false, "url": "https://pi-from-scratch.vercel.app"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:03:42.575206+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:03:42.575206+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:03:42.575206+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T06:38:00.512456+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "22a80b3def200900e7d90e1280e7201509c3ab7f50c81c5363df33790f32d978", "fetched_at": "2026-08-28T04:03:42.575206+00:00", "kind": "readme", "missing": false, "url": "https://github.com/SaladDay/pi-from-scratch"}, {"content_hash": "23d47c36b254c149cd6757d2c7a3269754bcd80d0ae5dc771ef87fdd486658ae", "fetched_at": "2026-08-29T12:42:33.518750+00:00", "kind": "homepage", "missing": false, "url": "https://pi-from-scratch.vercel.app"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:03:42.575206+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:03:42.575206+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T06:38:00.512456+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "22a80b3def200900e7d90e1280e7201509c3ab7f50c81c5363df33790f32d978", "fetched_at": "2026-08-28T04:03:42.575206+00:00", "kind": "readme", "missing": false, "url": "https://github.com/SaladDay/pi-from-scratch"}, {"content_hash": "23d47c36b254c149cd6757d2c7a3269754bcd80d0ae5dc771ef87fdd486658ae", "fetched_at": "2026-08-29T12:42:33.518750+00:00", "kind": "homepage", "missing": false, "url": "https://pi-from-scratch.vercel.app"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T06:38:00.512456+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "22a80b3def200900e7d90e1280e7201509c3ab7f50c81c5363df33790f32d978", "fetched_at": "2026-08-28T04:03:42.575206+00:00", "kind": "readme", "missing": false, "url": "https://github.com/SaladDay/pi-from-scratch"}, {"content_hash": "23d47c36b254c149cd6757d2c7a3269754bcd80d0ae5dc771ef87fdd486658ae", "fetched_at": "2026-08-29T12:42:33.518750+00:00", "kind": "homepage", "missing": false, "url": "https://pi-from-scratch.vercel.app"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T06:38:00.512456+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "22a80b3def200900e7d90e1280e7201509c3ab7f50c81c5363df33790f32d978", "fetched_at": "2026-08-28T04:03:42.575206+00:00", "kind": "readme", "missing": false, "url": "https://github.com/SaladDay/pi-from-scratch"}, {"content_hash": "23d47c36b254c149cd6757d2c7a3269754bcd80d0ae5dc771ef87fdd486658ae", "fetched_at": "2026-08-29T12:42:33.518750+00:00", "kind": "homepage", "missing": false, "url": "https://pi-from-scratch.vercel.app"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T06:38:00.512456+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "22a80b3def200900e7d90e1280e7201509c3ab7f50c81c5363df33790f32d978", "fetched_at": "2026-08-28T04:03:42.575206+00:00", "kind": "readme", "missing": false, "url": "https://github.com/SaladDay/pi-from-scratch"}, {"content_hash": "23d47c36b254c149cd6757d2c7a3269754bcd80d0ae5dc771ef87fdd486658ae", "fetched_at": "2026-08-29T12:42:33.518750+00:00", "kind": "homepage", "missing": false, "url": "https://pi-from-scratch.vercel.app"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 98, "longevity": 1, "rhythm": 35}, "computed_at": "2026-09-02T17:46:02.011165+00:00", "flags": ["no_releases", "young"], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 24, "days_push": 15, "days_rel": null, "gap_med": null, "n_releases_24m": 0}, "score": 57, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}