Repository navigation
Description
Found while fixing the docs site build (#214, #334) and removing three unused dependencies (#299). None of these breaks the site build, which is why they survived — but each is a documented entry point that fails when used.
docs-platform/src/ contains exactly one file: api-server.js. package.json names a different one in four places:
| key | value | reality |
|---|---|---|
main |
src/server.js |
does not exist |
scripts.start |
node src/server.js |
fails immediately |
scripts.dev |
nodemon src/server.js |
fails immediately |
scripts.lint / scripts.format |
eslint src/ client/ / prettier --write src/ client/ |
client/ does not exist |
scripts.build also runs vite build client, against that same absent directory — so npm run build in this directory cannot succeed even now that build:docs works. The site is built by npx vitepress build ., which is what the new docs-site CI job runs and what #334 verified.
So npm start — the obvious thing to type — has never worked here, and there is no history of a src/server.js or a client/ in this repository.
What to decide
Whether the API server is part of this project's supported surface. It is real code (api-server.js serves a health endpoint on API_PORT, defaulting 3001, and I verified it responds), but nothing builds it, tests it, deploys it, or documents how to run it correctly.
- If yes: point
main/start/devatapi-server.js, dropclient/from the lint/format/build scripts, and give it a CI job — the lesson of docs-platform: no committed lockfile, so Dependabot cannot apply npm security updates #214 being that a step no job runs is not a gate. - If no: delete the scripts and the
mainkey rather than leaving four commands that name absent files.
Related, small
api-server.js:27 calls require('dotenv').config(). Once dotenv 17 lands (#300) that prints a banner to stdout on every start:
◇ injected env (0) from .env · tip: ⌘ override existing { override: true }
Cosmetic, and suppressible with config({ quiet: true }). Worth doing in the same change rather than as its own PR.
Activity
scttfrdmn commentedon Aug 4, 2026
Widening this: the same defect class runs through
Dockerfileanddocker-compose.yml, and it is worse there than in the scripts, because those two files are whatREADME.md:36-50presents as the production path.Dockerfile— four of eightCOPYsources do not existgit log --all -- docs-platform/<dir>returns zero commits for all four — same signature as the three Vue components in #334: never written, not deleted. ACOPYwhose source is missing is a hard build failure, sodocker buildin this directory has never succeeded either. Present and fine:.vitepress/,guide/,playground/,index.md,src/.There is also no
.dockerignore, and line 12 runsnpm ci --only=production— which cannot work here at all, verified against a scratch copy of this manifest:That is the same missing lockfile as [#214], reached by a second route. So even with the four directories restored, the build fails at step two.
docker-compose.yml— three more absent mountsAll three are behind
profiles:(production,monitoring), sodocker compose upwithout a profile does not touch them — which is why they went unnoticed. Selecting the profile the README documents does.Worth noting what this reframes.
CMD ["node", "src/api-server.js"]at line 69 means the Dockerfile is the one place in the repository that names the API server correctly —main,startanddevinpackage.jsonall name the absentsrc/server.js. So the deployment artifact and the manifest disagree about the entry point, and the manifest is the wrong one. That strengthens the "yes, it is supported surface" side of the decision this issue asks for:api-server.jsis what every non-package.jsonreference points at.I could not exercise
docker buildto confirm the failure order — no Docker daemon running on this host — so the four missingCOPYsources and thenpm cifailure are each verified directly (filesystem, git history, scratchnpm ci) rather than by watching one build fail. Flagging that rather than implying I ran it.Revised scope
Whichever way the supported-surface question goes, three things follow rather than one:
package.json— the four keys in the table above.Dockerfile— drop the four absentCOPYlines;npm cineeds [docs-platform: no committed lockfile, so Dependabot cannot apply npm security updates #214]'s lockfile, ornpm install --omit=dev.docker-compose.yml— supply the three config files or drop the profiles that mount them.And the lesson is [#214]'s again, one layer out:
docs-sitenow gatesvitepress build, so the site cannot silently break again. Nothing gatesdocker build, so this cannot be called fixed without a job that runs it.[-]docs-platform: package.json scripts and `main` point at files that do not exist[/-][+]docs-platform: package.json, Dockerfile and docker-compose all name files that do not exist[/+]scttfrdmn commentedon Aug 4, 2026
Measured the whole surface while triaging #339/#340/#341, and it is wider than the four keys this issue records. Two things worth adding: 6 of 11 npm scripts cannot run, and two devDependencies are dependencies of nothing, which changes what to do about the Dependabot PRs against this directory.
Every script, run rather than read
npm run build— the script a reader would try first, and the one whose name matches the CI job's purpose — fails. CI passes becausedocs-siterunsnpx vitepress build .directly, notnpm run build. So the working build path and the documented one are different paths, and only the undocumented one is gated.Same "never written" signature as #334
git log --allfor every missing path:Zero, not "deleted at some point" — exactly what #334 found for
ApiPlayground's three sibling components. The last four are theDockerfileCOPY sources already noted on this issue; the first two are new here.Two devDependencies with no consumer
typescript^5.3.3 — there are 0 tracked.tsor.tsxfiles in this directory and notsconfig.jsonanywhere in it. Nothing compiles TypeScript here.jest^29.7.0 — 0 test files.npm testreportstestMatch ... 0 matchesand exits 1. There is nojestkey inpackage.jsonand nojest.config.*.eslint^8.56.0 — installed, but there is no.eslintrc*, noeslint.config.js, and noeslintConfigblock, sonpm run linterrors out asking you to runnpm init @eslint/config. The dependency is real; its configuration is missing. (Note this is the same defect deps(deps-dev): bump the typescript-eslint group across 1 directory with 3 updates #309/deps(js): take eslint 10 by moving the config where eslint 10 reads it #335 fixed forsdks/javascript— a linter that cannot find its config — and this directory was not part of that fix.)That last distinction matters for the fix: eslint needs a config, whereas typescript and jest need removing, because there is nothing for them to act on.
What this changes about the open PRs
#341 bumps
typescript5.9.3 → 7.0.2 and #340 bumpsjest29.7.0 → 30.4.2, both against packages nothing here uses. Both show 31 green checks, and that green means only that the Go test suite andvitepress buildstill work — neither PR's subject is exercised by any job, because neither package is reachable from any script that runs. Taking a major bump on an unused package is churn; the honest resolution is to delete the packages, which supersedes both PRs the way #299 superseded themarkdown-it-*bumps.#339 (
dockerode4.0.12 → 5.0.1) is different and should be taken on its merits:src/api-server.js:22genuinely requires it and:399callscreateContainer. Checked in a scratch install — v5 constructs and still exposescreateContainer,listContainers,getContainer,ping; its only engines change isnode >= 8→node >= 14.17, which every supported Node satisfies. What I could not check is runtime behaviour against a live daemon: no Docker daemon on this host, and the code path needs one. Flagging that rather than implying the bump is fully verified.Revised scope
package.json: fixstart/dev(point atapi-server.js, the only entry point that exists, or writeserver.js); dropbuild:clientand theclient/half oflint/format, or writeclient/; removetypescriptandjest, or give them something to act on; add an eslint config.Dockerfile: four COPY sources that never existed, plusnpm ci --only=productionat:12— which works now that fix(docs-platform): commit the lockfile, so the tree is reproducible and auditable #337 committed the lockfile, and did not before. Nothing runsdocker buildin CI, which is why none of this was caught.docker-compose.yml:nginx.conf,prometheus.yml,grafana/all absent, behindprofiles:.The decision this issue still needs is unchanged and is upstream of all three: is
docs-platform's API server supported surface, or is this directory only the VitePress site? If only the site, most of the above is deletion rather than repair, and that is a much smaller change than the list suggests.fix(docs): docs-platform is a documentation site, and now only that
fix(docs): docs-platform is a documentation site, and now only that
fix(docs): docs-platform is a documentation site, and now only that
fix(docs): docs-platform is a documentation site, and now only that (#…
chore: delete pkg/api, twelve routes nothing served (#367)
chore: delete pkg/api, twelve routes nothing served (#367) (#396)