Skip to content

Comments

docs: add client-side framework setup instructions to avoid WASM errors#52

Open
ArsiAda wants to merge 2 commits intoFhenixProtocol:mainfrom
ArsiAda:main
Open

docs: add client-side framework setup instructions to avoid WASM errors#52
ArsiAda wants to merge 2 commits intoFhenixProtocol:mainfrom
ArsiAda:main

Conversation

@ArsiAda
Copy link

@ArsiAda ArsiAda commented Feb 1, 2026

This PR adds a new section to the documentation explaining how to use Fhenix.js
in client-side frameworks like Next.js and React (Vite) to avoid errors related
to the WebAssembly file (tfhe_bg.wasm).

Changes include:

  • Instructions for Next.js with SSR disabled for Fhenix.js components
  • Vite + React example configuration with wasm and top-level await plugins
  • Alternative usage via UMD build
  • Notes emphasizing client-side only usage

These changes should help developers avoid common WASM import errors
and make Fhenix.js integration smoother in modern frontend frameworks.

Clarified usage for Next.js (SSR disabled), Vite + React, and UMD builds.  Emphasized client-side only usage to avoid WASM errors.
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.

1 participant