A React component for visualizing the A* pathfinding algorithm with an interactive grid interface.
npm install astar-visualizerimport { AStarVisualizer } from 'astar-visualizer';
function App() {
return (
<div style={{ width: '100%', height: '100vh' }}>
<AStarVisualizer />
</div>
);
}
export default App;Important: The component requires a container with a defined height (e.g., height: 100vh or a fixed pixel height). The grid will automatically scale to fit within the available space.
- Interactive grid for setting start/end points and obstacles
- Real-time visualization of the A* algorithm
- Customizable grid size
- Control panel for algorithm execution
- Smooth animations with Framer Motion
# Install dependencies
npm install
# Run development server
npm run dev
# Build library for publishing
npm run build:lib
# Run tests
npm testMIT