Skip to content

feat: add React Router adapter - #62

Open
martijn00 wants to merge 3 commits into
letstri:mainfrom
martijn00:feat/react-router-adapter
Open

feat: add React Router adapter#62
martijn00 wants to merge 3 commits into
letstri:mainfrom
martijn00:feat/react-router-adapter

Conversation

@martijn00

Copy link
Copy Markdown
Contributor

Summary

  • Add permix/react-router with setupMiddleware / checkMiddleware that store a per-request instance on React Router middleware context (context.set / context.get).
  • Document SSR checks in loaders/actions plus client hydration via permix/react. Remix apps use this same adapter — there is no permix/remix export.
  • Include a runnable examples/react-router app and skill/artifact updates.

Test plan

  • cd permix && pnpm exec vitest run src/react-router
  • pnpm test && pnpm run check-types && pnpm run lint
  • cd examples/react-router && pnpm start and hit GET / (read allowed) and GET /write (403)

Made with Cursor

React Router 7 (including Remix) needs a per-request instance on middleware context so loaders can dehydrate into permix/react.

Co-authored-by: Cursor <cursoragent@cursor.com>
@vercel

vercel Bot commented Aug 28, 2026

Copy link
Copy Markdown

@martijn00 is attempting to deploy a commit to the letstri Team on Vercel.

A member of the Team first needs to authorize it.

martijn00 and others added 2 commits August 28, 2026 20:59
Toolchain skills from skills.sh fail format check and are not project source.
Rules usually depend on values earlier middleware stored on the router
context (session, user). The setup callback now receives `context` next
to `request` and `params`.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants