This is a simple test application for testing n8n's preview mode functionality. It creates an iframe that loads the n8n demo page and sends workflow data via postMessage.
- n8n Instance: You need a running n8n instance on
localhost:5678with preview mode enabled - Environment Variable: Set
N8N_PREVIEW_MODE=truein your n8n environment
git clone git@github.com:yehorkardash/n8n-preview-test.git
# or git clone https://github.com/yehorkardash/n8n-preview-test.git# Set the environment variable
export N8N_PREVIEW_MODE=true
cd n8n
pnpm install
pnpm build
pnpm start
cd n8n-preview-test
npm install
npm run startNavigate to http://localhost:8080 in your browser.