An online compiler widget for React applications, wrapping @xyflow/react to provide an embeddable code compilation interface. Current stable version is 1.0.31 with monthly updates. Key differentiators: built on top of @xyflow/react for visual programming with code compilation, supports React 18 and 19, and includes TypeScript definitions. It is designed for embedding in educational or coding tools that require interactive code execution.
npm install online-compiler-widgetNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows the minimal setup: wrapping the OnlineCompilerWidget inside ReactFlowProvider from @xyflow/react, both of which are required.
Install @xyflow/react@^12.0.0 and ensure it is included in your project dependencies.
Wrap the widget with <ReactFlowProvider> at an appropriate level in the component tree.
Watch for updates and migrate when breaking changes occur.
Run `npm install @xyflow/react@^12.0.0`
Wrap the OnlineCompilerWidget with <ReactFlowProvider> from '@xyflow/react'.
Run `npm install online-compiler-widget` and ensure the import is correct: `import { OnlineCompilerWidget } from 'online-compiler-widget'`.