[{"data":1,"prerenderedAt":570},["ShallowReactive",2],{"project-devdoctor":3},{"id":4,"title":5,"body":6,"description":119,"extension":552,"meta":553,"navigation":394,"path":566,"seo":567,"stem":568,"__hash__":569},"content\u002Fprojects\u002Fdevdoctor.md","DevDoctor",{"type":7,"value":8,"toc":540},"minimark",[9,14,59,63,73,76,106,110,120,124,129,136,240,244,283,287,370,374,511,515,536],[10,11,13],"h2",{"id":12},"project-at-a-glance","Project at a Glance",[15,16,17,30,44,50],"ul",{},[18,19,20,24,25,29],"li",{},[21,22,23],"strong",{},"Problem:"," Developer onboarding often stalls with \"Why won't this project run on my machine?\" due to mismatched runtime versions, missing ",[26,27,28],"code",{},".env"," keys, conflicting lockfiles, occupied ports, or stale README instructions rather than broken application code.",[18,31,32,35,36,39,40,43],{},[21,33,34],{},"Deliverables:"," A zero-config, local-first ",[21,37,38],{},"TypeScript + Node.js CLI"," (",[26,41,42],{},"v0.1.0",") with a modular stack scanner architecture: 9 deep JavaScript\u002FNode.js\u002FBun diagnostic checkers, 4 basic ecosystem detectors (Docker, Go, PHP, Deno), a weighted 0-100 scoring engine, and Terminal, JSON, and Markdown reporters.",[18,45,46,49],{},[21,47,48],{},"Core Stack:"," TypeScript 5, Node.js (ESM), Commander, Ora.",[18,51,52,55,56,58],{},[21,53,54],{},"Practical Value:"," Built solo in 2026 as an open-source developer-experience tool on GitHub, designed to be read-only, evidence-based, and strictly privacy-conscious (never leaking ",[26,57,28],{}," secret values into reports).",[10,60,62],{"id":61},"project-overview","Project Overview",[64,65,66,68,69,72],"p",{},[21,67,5],{}," is a zero-config local project setup scanner designed to act like a calm senior engineer helping a teammate diagnose onboarding blockers. Running ",[26,70,71],{},"devdoctor scan"," inspects the local project directory without requiring a configuration file, detects the project ecosystem, runs targeted read-only checks, calculates per-stack and overall health scores, and produces actionable suggestions backed by concrete evidence.",[64,74,75],{},"Every check is engineered around two core safety invariants:",[77,78,79,85],"ol",{},[18,80,81,84],{},[21,82,83],{},"Read-Only & Safe by Default:"," DevDoctor diagnoses issues and recommends next steps; it does not auto-install packages, kill running processes, or mutate user project files beyond writing report outputs.",[18,86,87,90,91,94,95,97,98,101,102,105],{},[21,88,89],{},"Privacy-Conscious Reporting:"," Environment variable checks inspect ",[26,92,93],{},".env.example",", ",[26,96,28],{},", and source usage, but reports only record variable names and presence status (",[26,99,100],{},"missing"," vs ",[26,103,104],{},"present","), never secret values.",[10,107,109],{"id":108},"modular-scanner-architecture","Modular Scanner Architecture",[111,112,117],"pre",{"className":113,"code":115,"language":116},[114],"language-text","+-------------------------------------------------------------+\n|                   DEVDOCTOR CLI (Commander + Ora)           |\n|      devdoctor scan [--output | --markdown | --json]        |\n+------------------------------+------------------------------+\n                               |\n                               v\n+-------------------------------------------------------------+\n|                 CORE ENGINE (src\u002Fcore\u002F)                     |\n|  detector.ts -> scanner.ts -> diagnosis.ts -> scoring.ts    |\n+--------------+-------------------------------+--------------+\n               |                               |\n               v                               v\n+-----------------------------+ +-----------------------------+\n|   DEEP STACK MODULE (js)    | |   BASIC DETECTORS (4)       |\n|  - runtimeVersion           | |  - docker (Dockerfile \u002F     |\n|  - packageManager           | |    docker-compose)          |\n|  - dependencyInstalled      | |  - go (go.mod \u002F go.sum)     |\n|  - envExample & envUsage    | |  - php (composer \u002F artisan) |\n|  - portConflict             | |  - deno (deno.json \u002F lock)  |\n|  - readmeMismatch           | |  (includedInOverall: false) |\n|  - scripts & workspace      | |                             |\n+--------------+--------------+ +--------------+--------------+\n               |                               |\n               +---------------+---------------+\n                               |\n                               v\n+-------------------------------------------------------------+\n|                  REPORTERS (src\u002Fcore\u002Freporters\u002F)            |\n|   Terminal Summary   |  .devdoctor\u002Freport.json  |  Markdown |\n+-------------------------------------------------------------+\n","text",[26,118,115],{"__ignoreMap":119},"",[10,121,123],{"id":122},"implemented-diagnostic-capabilities-v010","Implemented Diagnostic Capabilities (v0.1.0)",[125,126,128],"h3",{"id":127},"_1-deep-javascript-nodejs-bun-checkers","1. Deep JavaScript \u002F Node.js \u002F Bun Checkers",[64,130,131,132,135],{},"Located under ",[26,133,134],{},"src\u002Fcore\u002Fmodules\u002Fjs\u002Fcheckers\u002F",", the primary module performs nine focused checks:",[15,137,138,148,171,180,199,208,224],{},[18,139,140,147],{},[21,141,142,143,146],{},"Runtime Version (",[26,144,145],{},"runtimeVersion.ts","):"," Compares local runtime versions against project version constraints using semver checks.",[18,149,150,156,157,94,160,94,163,166,167,170],{},[21,151,152,153,146],{},"Package Manager & Lockfiles (",[26,154,155],{},"packageManager.ts"," Infers ",[26,158,159],{},"bun",[26,161,162],{},"yarn",[26,164,165],{},"pnpm",", or ",[26,168,169],{},"npm"," from lockfiles and flags multiple conflicting lockfiles as a warning.",[18,172,173,179],{},[21,174,175,176,146],{},"Dependency Installation (",[26,177,178],{},"dependencyInstalled.ts"," Verifies whether local dependencies are installed cleanly.",[18,181,182,192,193,195,196,198],{},[21,183,184,185,188,189,146],{},"Environment Variable Coverage (",[26,186,187],{},"envExample.ts"," & ",[26,190,191],{},"envUsage.ts"," Cross-checks ",[26,194,93],{}," against ",[26,197,28],{}," and scans source code references without ever persisting secret values.",[18,200,201,207],{},[21,202,203,204,146],{},"Port Conflict Detection (",[26,205,206],{},"portConflict.ts"," Checks whether expected local development ports are already occupied.",[18,209,210,219,220,223],{},[21,211,212,213,188,216,146],{},"README & Scripts Validation (",[26,214,215],{},"readmeMismatch.ts",[26,217,218],{},"scripts.ts"," Inspects ",[26,221,222],{},"package.json"," scripts and surfaces mismatches against documented setup commands.",[18,225,226,232,233,235,236,239],{},[21,227,228,229,146],{},"Monorepo \u002F Workspace Detection (",[26,230,231],{},"workspace.ts"," Detects ",[26,234,222],{}," workspaces and ",[26,237,238],{},"pnpm-workspace.yaml"," safely as informational guidance without unfairly penalizing the score.",[125,241,243],{"id":242},"_2-extensible-multi-ecosystem-detection","2. Extensible Multi-Ecosystem Detection",[64,245,246,247,94,250,94,253,94,256,259,260,94,263,94,266,94,269,94,272,94,275,278,279,282],{},"Basic detection modules (",[26,248,249],{},"docker",[26,251,252],{},"go",[26,254,255],{},"php",[26,257,258],{},"deno",") inspect standard manifests (",[26,261,262],{},"Dockerfile",[26,264,265],{},"docker-compose.yml",[26,267,268],{},"go.mod",[26,270,271],{},"composer.json",[26,273,274],{},"artisan",[26,276,277],{},"deno.json",") and local tool binaries. Basic-only modules set ",[26,280,281],{},"includedInOverall: false"," so incomplete ecosystems do not distort the project's overall health score.",[125,284,286],{"id":285},"_3-weighted-scoring-multi-format-reporting","3. Weighted Scoring & Multi-Format Reporting",[15,288,289,342],{},[18,290,291,297,298,301,302,94,305,94,308,94,311,94,314,94,317,320,321,39,324,327,328,39,331,334,335,39,338,341],{},[21,292,293,294,146],{},"Scoring Engine (",[26,295,296],{},"scoring.ts"," Starts each eligible stack at ",[26,299,300],{},"100"," and applies severity-weighted penalties (",[26,303,304],{},"failed high -25",[26,306,307],{},"failed medium -15",[26,309,310],{},"failed low -8",[26,312,313],{},"warning high -12",[26,315,316],{},"warning medium -8",[26,318,319],{},"warning low -3","), classifying projects into ",[26,322,323],{},"healthy",[26,325,326],{},"85-100","), ",[26,329,330],{},"warning",[26,332,333],{},"60-84","), or ",[26,336,337],{},"critical",[26,339,340],{},"0-59",").",[18,343,344,350,351,354,355,358,359,94,362,365,366,369],{},[21,345,346,347,146],{},"Reporters (",[26,348,349],{},"reporters\u002F"," Renders a compact terminal summary with ",[26,352,353],{},"ora"," progress states, writes ",[26,356,357],{},".devdoctor\u002Freport.json"," by default, and supports ",[26,360,361],{},"--output \u003Cpath>",[26,363,364],{},"--markdown \u003Cpath>",", and ",[26,367,368],{},"--json"," stdout streaming.",[10,371,373],{"id":372},"sample-cli-report-format","Sample CLI Report Format",[111,375,379],{"className":376,"code":377,"language":378,"meta":119,"style":119},"language-txt shiki shiki-themes github-light github-dark","DevDoctor report\n\nProject: my-app\nStacks: js, docker\nOverall score: 76\u002F100 (warning)\n\nJS score: 68\u002F100 (warning)\nDocker score: 90\u002F100 (healthy)\n\nFailed:\n  x Node version mismatch\n  x Missing env variables: DATABASE_URL, JWT_SECRET\n\nWarnings:\n  ! Multiple lockfiles detected\n  ! Port 3000 is already in use\n\nInfo:\n  i Workspace detected, deep workspace scanning is not supported yet\n\nReport written to:\n  .devdoctor\u002Freport.json\n","txt",[26,380,381,389,396,402,408,414,419,425,431,436,442,448,454,459,465,471,477,482,488,494,499,505],{"__ignoreMap":119},[382,383,386],"span",{"class":384,"line":385},"line",1,[382,387,388],{},"DevDoctor report\n",[382,390,392],{"class":384,"line":391},2,[382,393,395],{"emptyLinePlaceholder":394},true,"\n",[382,397,399],{"class":384,"line":398},3,[382,400,401],{},"Project: my-app\n",[382,403,405],{"class":384,"line":404},4,[382,406,407],{},"Stacks: js, docker\n",[382,409,411],{"class":384,"line":410},5,[382,412,413],{},"Overall score: 76\u002F100 (warning)\n",[382,415,417],{"class":384,"line":416},6,[382,418,395],{"emptyLinePlaceholder":394},[382,420,422],{"class":384,"line":421},7,[382,423,424],{},"JS score: 68\u002F100 (warning)\n",[382,426,428],{"class":384,"line":427},8,[382,429,430],{},"Docker score: 90\u002F100 (healthy)\n",[382,432,434],{"class":384,"line":433},9,[382,435,395],{"emptyLinePlaceholder":394},[382,437,439],{"class":384,"line":438},10,[382,440,441],{},"Failed:\n",[382,443,445],{"class":384,"line":444},11,[382,446,447],{},"  x Node version mismatch\n",[382,449,451],{"class":384,"line":450},12,[382,452,453],{},"  x Missing env variables: DATABASE_URL, JWT_SECRET\n",[382,455,457],{"class":384,"line":456},13,[382,458,395],{"emptyLinePlaceholder":394},[382,460,462],{"class":384,"line":461},14,[382,463,464],{},"Warnings:\n",[382,466,468],{"class":384,"line":467},15,[382,469,470],{},"  ! Multiple lockfiles detected\n",[382,472,474],{"class":384,"line":473},16,[382,475,476],{},"  ! Port 3000 is already in use\n",[382,478,480],{"class":384,"line":479},17,[382,481,395],{"emptyLinePlaceholder":394},[382,483,485],{"class":384,"line":484},18,[382,486,487],{},"Info:\n",[382,489,491],{"class":384,"line":490},19,[382,492,493],{},"  i Workspace detected, deep workspace scanning is not supported yet\n",[382,495,497],{"class":384,"line":496},20,[382,498,395],{"emptyLinePlaceholder":394},[382,500,502],{"class":384,"line":501},21,[382,503,504],{},"Report written to:\n",[382,506,508],{"class":384,"line":507},22,[382,509,510],{},"  .devdoctor\u002Freport.json\n",[10,512,514],{"id":513},"current-status-roadmap","Current Status & Roadmap",[15,516,517,526],{},[18,518,519,525],{},[21,520,521,522,524],{},"Implemented (",[26,523,42],{}," on GitHub):"," Modular CLI scanner, 9 deep JS\u002FNode\u002FBun checkers, 4 basic stack detectors, weighted scoring engine, and Terminal\u002FJSON\u002FMarkdown reporters. Currently available as open-source code on GitHub (not yet published to the npm registry).",[18,527,528,531,532,535],{},[21,529,530],{},"Planned \u002F In Progress:"," The static read-only web dashboard (",[26,533,534],{},"src\u002Fdashboard\u002F"," is currently a placeholder), deeper diagnostics for Go\u002FPHP\u002FDocker Compose, deep monorepo workspace scanning, and npm registry distribution.",[537,538,539],"style",{},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":119,"searchDepth":391,"depth":391,"links":541},[542,543,544,545,550,551],{"id":12,"depth":391,"text":13},{"id":61,"depth":391,"text":62},{"id":108,"depth":391,"text":109},{"id":122,"depth":391,"text":123,"children":546},[547,548,549],{"id":127,"depth":398,"text":128},{"id":242,"depth":398,"text":243},{"id":285,"depth":398,"text":286},{"id":372,"depth":391,"text":373},{"id":513,"depth":391,"text":514},"md",{"subtitle":554,"slug":555,"client":556,"year":557,"role":558,"category":559,"technologies":560},"Zero-Config Local Project Setup Scanner & CLI Diagnostics","devdoctor","Personal Open Source (v0.1.0)",2026,"Solo Developer","Developer Tools & Infrastructure",[561,562,563,564,565],"TypeScript","Node.js","Commander","Ora","CLI","\u002Fprojects\u002Fdevdoctor",{"title":5,"description":119},"projects\u002Fdevdoctor","OeTy-riSwnV5p3z-pSZhSz_HquFJVyTmP7P5zSevfWc",1796006983833]