Skip to content

Remove unused starter scaffolding: drizzle/D1, basis decoder, dead modules #13

Description

@PouyanJay

The repo was scaffolded from the vinext starter and a good deal of that scaffolding is still present but unreferenced. Removing it drops three npm advisories and roughly 600 KB of shipped assets.

Database scaffolding — unused

drizzle is not imported anywhere in app/, and .openai/hosting.json has "d1": null, so no binding is ever created.

Shipped but never loaded

  • public/basis/ — ~576 KB. No KTX2Loader is ever registered; loaders.ts sets only the meshopt decoder.
  • Keep public/draco/ — also unloaded today, but it is exactly what segmented-asset work would need, and registering DRACOLoader is on the roadmap.

Dead modules

  • app/lib/three/tsl-materials.tsmedicalRimNode is never imported
  • app/chatgpt-auth.ts — starter SIWC helper, never called
  • AnatomyViewer.prefetch() and the AnatomyAssetManager.prefetch() it delegates to — AnatomyApp does its own fetch warm-up on pointer enter, so neither is reachable

Documentation

README.md is still the untouched vinext starter readme — it documents D1 bindings and ChatGPT sign-in, and says nothing about Anatomy Atelier.

Deliberately out of scope

The non-functional nav items (Systems, Library, Notes) and the quiz answer buttons are dead UI, not dead code. Removing visible features is a product decision, not cleanup, so they are left alone here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions