React Hook Form adapters, access control and cache busting
Piplup docs for small, typed React libraries — React Hook Form adapters for MUI and HTML inputs, role-based access control, and cache busting.
Introduction
Piplup is a collection of small, typed React libraries. Each one solves a single problem, so you install what you need and nothing else:
- React Hook Form adapters for MUI and native inputs: connect MUI TextField,
Select, Autocomplete, the MUI X date pickers and plain HTML inputs to
react-hook-formwithout writing aControllerfor every field. - Role and permission-based access control for React: show or hide UI by the signed-in user's roles and permissions, with wildcard grants and typed permission names.
- Cache busting for deployed React and Vite apps: detect that a new build has shipped and reload clients that are still running the old bundle.
- React utility hooks:
useLocalStorage,useEventCallback,useForkRefand the other helpers the packages above are built on.
Packages
@piplup/rhf-core
Hooks that adapt any component to a React Hook Form field, plus a form container and error provider.
@piplup/rhf-adapters
Ready-made React Hook Form adapters for MUI Material, MUI X date pickers, native HTML inputs and popular MUI community inputs.
@piplup/react-acl
Role-based and permission-based access control for React, with wildcard permissions and TypeScript-checked names.
@piplup/cache-buster
Detects new deployments and reloads clients running a stale bundle.
@piplup/vite-plugin-cache-buster
A Vite plugin that generates a release ID at build time for @piplup/cache-buster.
@piplup/utils
Small helpers and React hooks shared across the Piplup packages.