Skip to content

feat: add Nuxt adapter - #60

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

feat: add Nuxt adapter#60
martijn00 wants to merge 3 commits into
letstri:mainfrom
martijn00:feat/nuxt-adapter

Conversation

@martijn00

Copy link
Copy Markdown
Contributor

Summary

  • Add permix/nuxt with a per-request Permix instance stored on the Nitro event.context, plus setup / check / dehydrate for Nuxt server routes and Vue SSR.
  • Document client hydration with PermixProvider / PermixHydrate from permix/vue, and include a runnable examples/nuxt Nitro app.
  • Update skills and artifacts so agents pick up the Nuxt SSR pattern.

Test plan

  • cd permix && pnpm exec vitest run src/nuxt
  • pnpm test && pnpm run check-types && pnpm run lint
  • cd examples/nuxt && pnpm start and hit GET / (read allowed), GET /write (403), GET /state (dehydrated rules)

Made with Cursor

Store one Permix instance per Nitro event so Nuxt server routes and Vue SSR share rules without leaking state across requests.

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.
`permix/nuxt` follows the other server integrations: `setupMiddleware`
stores a per-request instance on the h3 `event.context`, and
`checkMiddleware` guards routes via `onRequest`. No runtime dependency on
`h3`; a denied check throws a `statusCode: 403` error that h3 renders.

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