On every project you need to protect routes. Some are for authenticated users only, some for admins, some for guests only. You write a PrivateRoute . Then a role check hook. Then a HasAccess component. You move to the next project — and write it all again. The logic is always the same. The implementation is always different. react-protected standardizes this. You describe what each route requires. The library checks access and redirects. Two packages @react-protected/core — framework-agnostic guard logic. No dependency on React or any router. @react-protected/react-router — adapter for React Router. Two styles supported: config-based and JSX.…