An app that lets you style a Bryntum Gantt in realtime using a prompt. Uses Fal and the FLUX.2[klein] model.
Run the following command to install the project dependencies:
npm installSign up to Fal, the generative AI platform. Complete signup and you'll land in the dashboard. You get $5 free credits, which is enough to try it out.
Go to https://fal.ai/dashboard/keys then click Add key, give it a name , and create it. Copy the key immediately as it's only shown once.
Copy .env.example to .env:
cp .env.example .envOpen .env and add your key:
FAL_KEY=your-actual-key-here
Run the Vite development server:
npm run devThe server will start on http://localhost:5173. The HTML-in-Canvas API that this demo uses needs Chrome Canary version 149+ or Brave Stable. You also need to enable chrome://flags/#canvas-draw-element and chrome://flags/#enable-experimental-web-platform-features from the URL input, then relaunch the browser.