{"library":"react-router-guards","type":"library","category":null,"description":"Provides a middleware API for React Router (v5), allowing developers to run guard functions between navigation and route rendering. Currently at version 1.0.2, it is stable but not actively maintained (last update 2019). Key features include GuardProvider and GuardedRoute components, support for meta data on routes, loading/error components, and TypeScript types. Unlike simple auth wrappers, it offers a full lifecycle with next() callbacks for redirects, async guards, and error handling.","language":"javascript","status":"maintenance","version":"1.0.2","tags":["javascript","react","router","guards","guard","loading","error","middleware","typescript"],"install":[{"cmd":"npm install react-router-guards","imports":["import { GuardProvider } from 'react-router-guards'","import { GuardedRoute } from 'react-router-guards'","const requireLogin = (to, from, next) => { next(); }"]},{"cmd":"yarn add react-router-guards","imports":[]},{"cmd":"pnpm add react-router-guards","imports":[]}],"homepage":null,"github":"https://github.com/upstatement/react-router-guards","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/react-router-guards","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/react-router-guards/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Fri Jul 24","install_tag":null}}