Cleanup: purge the in-repo api/ Express stub — zero callers, 11 unused deps, dead vite proxy /api/v1 → :3001 #113
Labels
No labels
blocked:commit-ready-failed
blocked:gate-fetch
blocked:gate-lint
blocked:gate-plan
blocked:gate-research
blocked:needs-attention
blocked:needs-decision
blocked:needs-human
blocked:no-changes
blocked:verify-failed
bug
deferred
feature-request
in-progress
needs-decompose
needs-triage
quickfix
security/medium
triage-approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Mark/Kimi_Agent_Brother_10_Digitizing_App#113
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Cleanup: purge the in-repo
api/stub backend — it has no callers and confuses every developer who lands on this repoStatus of #83
#83 (closed) called out that
api/src/index.tsis a 22-line Express stub. It was "fixed" by making the stub honest —/api/v1/auth/registernow returns501 not_implementedinstead of a fake 200. But the stub directory and its proxies are still on disk and still being referenced, which is worse than the original problem: now we have a "real-looking" backend that does nothing and looks like the place to add endpoints.Current state (verified 2026-09-25)
Vite config still proxies both endpoints to a backend:
But the front-end never calls
/api/v1/*. Verified:The only network calls from the front-end go to
/api/easystitch/*(which iseasystitch-servicein~/Projects/easystitch-service, NOT thisapi/directory). So:api/Express stub has zero callers/api/v1 → :3001is deadbcrypt,pg,drizzle,s3,winston,zod,multer,jsonwebtoken,helmet,cors,expressinapi/package.jsonare unusedWhy this is worse than not having it
Every new dev who lands on this repo sees
api/and assumes:api/src/index.tsThey spend hours wiring endpoints to a stub that returns 501, or to a Postgres that nothing queries. We've already done this at least twice (see #83, #84, #85, #86 — all about a stub that does nothing).
Suggested fix
api/directory from this repo. Move it to a separate repo IF/WHEN a real backend is needed (and even then, it'd be a different shape — Drizzle ORM + Express, not FastAPI likeeasystitch-service)./api/v1proxy block fromvite.config.ts./api/easystitchproxy — that's the path to the real backend.~/Projects/easystitch-service(or wherever the real backend lives) for the digitize/export API.Verification steps
Then
npm run buildshould pass with no broken imports (the front-end doesn't referenceapi/).Labels
Severity
Medium. Not a user-facing bug — but every dev who works on this repo wastes time on it, and it makes the codebase lie about its architecture.
Filed 2026-09-25 by user-driven bughunt session.
editor:fit-to-viewevent but nothing dispatches it #160MM_TO_PX = 2is a constant, not device-DPI-accurate — the "Hoop-accurate canvas: Work on a 1:1 scale representation of your actual Brother hoop" Home page claim is unfulfilled #163