@jwcarman/roux-web
v0.16.0
Published
The web half of [roux](https://github.com/jwcarman/roux): the React plumbing a roux application needs, written once. It is ESM-only and has one subpath per concern; each has a guide.
Readme
@jwcarman/roux-web
The web half of roux: the React plumbing a roux application needs, written once. It is ESM-only and has one subpath per concern; each has a guide.
Subpaths
@jwcarman/roux-web/problem: theProblemtype andproblemOf. Errors@jwcarman/roux-web/api: the fetch client,configureApi,createQueryClientanduseServerAction. API client, Queries and mutations@jwcarman/roux-web/paging: paging types,InfiniteList,InfiniteSelectand URL helpers. Tables and paging@jwcarman/roux-web/table:QueryTableand its parts, search inputs and filter chips. Tables and paging@jwcarman/roux-web/feedback: toasts, confirmations, error messages,NotFoundPageandErrorPage. Feedback@jwcarman/roux-web/form: Zod rule helpers,useSchemaForm, fields andFormDialog. Forms
Start with Getting started; Testing covers Vitest with MSW and Playwright.
Peer dependencies
The app supplies @chakra-ui/react, @emotion/react, @tanstack/react-form, @tanstack/react-query,
@tanstack/react-table, date-fns (^4.4.0), react, react-icons and zod (^4.6.7).
/form calls z.config({ jitless: true }) when it loads, so Zod never probes eval and a Content-Security-Policy
without unsafe-eval stays quiet. package.json lists that file in sideEffects; a bundler must keep it.
Licensed under the Apache License 2.0.
