A React-based web application for visualising and analysing electron microscopy data from the SmartEM system. Built with React 19, React Router 7, TanStack Query, and Material-UI.
- Real-time visualisation of acquisition data, grids, and grid squares
- Interactive atlas views with quality predictions
- Foil hole analysis and quality metrics
- Type-safe API client auto-generated from OpenAPI specification
- Node.js 20 or later
- npm or compatible package manager
- SmartEM backend API running (default: http://localhost:8000)
# Install dependencies
npm install
# Start development server
npm run dev
# Run with mock API (no backend required)
npm run dev:mockYour application will be available at http://localhost:5174.
React 19, React Router 7, TanStack Query, Material-UI, Orval, TypeScript, Vite, Tailwind CSS, Biome, Prettier, Lefthook
Full documentation: https://DiamondLightSource.github.io/smartem-devtools
When adding new API endpoints or modifying existing ones:
- Update the backend OpenAPI specification
- Run
npm run api:updateto regenerate the client - Update components to use the new hooks
- Run
npm run typecheckto verify type safety
Copyright Diamond Light Source