How cornerstonejs/vite-react-cornerstone3d works
Project type and purpose
• This is a front‑end single‑page application (SPA) built with React, TypeScript, and Vite.
• It integrates Cornerstone3D to load and render medical images (e.g., NIfTI files) in the browser.
• The goal is to provide an interactive viewer for volumetric imaging data, with caching of metadata and efficient rendering.
File structure
Top‑level files & folders:
• index.html – SPA entry point
• src/ – application source
– main.tsx – React app bootstrap
– App.tsx – high‑level component
– Nifti.tsx – component handling NIfTI load/render
– lib/createImageIdsAndCacheMetaData.ts – service to generate image IDs, preload metadata, manage cache
• vite.config.ts, tsconfig*.json – build & TypeScript configs
• package.json, bun.lockb, package‑lock.json – dependencies & lockfiles
README for additional insights
• Confirms the stack: React + Vite + Cornerstone3D.