{"library":"build-route-tree","type":"library","category":null,"description":"build-route-tree is a JavaScript/TypeScript library designed to create strongly typed route trees, significantly reducing errors associated with magic strings in URL paths. It provides a structured, object-oriented approach to defining application routes, enabling IDE autocompletion and compile-time validation for paths and parameters. Currently at version 1.0.3, the library appears to follow a release cadence driven by feature additions and bug fixes, typical for a new utility. Its key differentiator is the focus on full type inference for route paths and parameters, offering methods like `getRoutePath`, `getRedirectPath`, and `getElementKey` on each route node to retrieve path components and construct dynamic URLs safely. This helps encapsulate route logic and improve maintainability compared to manual string interpolation or less type-safe routing solutions.","language":"javascript","status":"active","version":"1.0.3","tags":["javascript","router","route","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install build-route-tree","imports":["import buildRouteTree from 'build-route-tree';","import { getParam } from 'build-route-tree';"]},{"cmd":"yarn add build-route-tree","imports":[]},{"cmd":"pnpm add build-route-tree","imports":[]}],"homepage":null,"github":"https://github.com/fullstack-development/build-route-tree","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/build-route-tree","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/build-route-tree/compatibility"}}