HEBpath computes the fastest route through H-E-B to collect every item in your cart. All computation happens in the browser using a Rust → WASM engine.
The Shortcut pulls item location data directly from your H-E-B cart page:
- Runs JavaScript on the cart page to extract each item's aisle, section, and location metadata
- Compresses everything with lz-string
- Passes the compressed data to the HEBpath site via the URL fragment
On desktop, you can skip the Shortcut and paste the JS snippet from the site into the console. (Enable console pasting in Chrome.)
Once the data arrives, the WebAssembly module processes it:
- Maps each item onto the store’s SVG
- Rasterizes the SVG into a grid
- Runs an A* search to compute the shortest path
- Returns the computed route
- Renders the path and labels onto the SVG
Everything runs locally — no backend requests and no server processing.
The site caches your last computed path so reloads don’t require recalculating.
The predefined example route is available at https://rhl.sh/heb/demo. Its
payload lives at docs/demo/data.json; replacing that file updates the demo
without changing the UI or the normal cart-sharing flow.