Web-based Wasm playground for the Rust Relay compiler. Current stable version 0.0.3 (2023-08-28). Compiled via wasm-pack targeting web browsers. Key differentiator: brings the Rust Relay compiler to the browser for interactive testing. Not intended for production use—mainly a demo/tool for the Relay website.
npm install relay-compiler-playgroundNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initialize Wasm module and compile a simple GraphQL schema and document.
Edit package.json to include the missing file as shown in README before publishing.
Manually add 'relay_compiler_playground_bg.js' to package.json files array.
Use import syntax; do not use require().
Await init() in an async context.
npm install relay-compiler-playground
Use webpack 5 with experiments.syncWebAssembly: true.
JSON.stringify({ schema, document }) before passing.No dependency data recorded yet.