Editor Setup
FluidCAD works with any text editor. It ships official extensions for VS Code and Neovim, and a CLI for everything else. All three options give you the same live 3D viewport — pick whichever fits your workflow.
VS Code
- Install the FluidCAD extension from the VS Code Marketplace.
- Open your project folder in VS Code.
- Open the Command Palette (
Ctrl+Shift+Pon Windows/Linux,Cmd+Shift+Pon macOS) and run Show FluidCAD Scene.
A 3D viewport opens in a side panel. It updates live as you edit any .fluid.js file.
Neovim
Add the plugin with lazy.nvim:
{
"fluidcad/fluidcad",
config = function()
require("fluidcad").setup()
end,
ft = { "javascript" },
}
Open a .fluid.js file — the server starts automatically. Run :FluidCadOpenBrowser to open the 3D viewport in your browser.
Any other editor (CLI)
Run FluidCAD directly from the terminal:
npx fluidcad -w ./my-app
This starts a local server and opens the 3D viewport at http://localhost:3100 in your browser. Edit your .fluid.js files in any editor — the viewport refreshes on save.
| Flag | Description | Default |
|---|---|---|
-w, --workspace <path> | Path to your project | Current directory |
-p, --port <port> | Server port | 3100 |