This workspace contains the React + Vite frontend for browsing algorithms, comparing implementations, and exploring learning patterns generated from the repository content.
Run these commands from the repository root:
npm run devstarts the Vite development server for thewebworkspace.npm run buildcreates a production build of the frontend.npm run testruns the web workspace test suite.npm run build:dataregenerates the algorithm JSON consumed by the app.npm run build:patternsrebuilds the learning-pattern index used by the Learn section.
src/routes.tsxcentralizes route definitions and primary navigation metadata so the header and router stay aligned.src/pagescontains the top-level screens rendered by the router.src/componentsholds shared UI building blocks such as layout, code viewers, and visualizers.src/contextstores cross-page state providers.public/datacontains generated JSON files consumed at runtime.
When you add or rename pages:
- Update
src/routes.tsxso the route table and header navigation stay in sync. - Rebuild generated data with
npm run build:dataornpm run build:patternsif the page depends on repository content. - Run
npm run lint --workspace=webbefore shipping UI changes.