Corex installation
New project
mix corex.new my_app
Existing app — order matters
{:corex, "~> 0.2.0"}→ esbuild ESM splitting → LiveSocket + hooks →type="module"script →use Corex→mix assets.build
const liveSocket = new LiveSocket("/live", Socket, {
params: { _csrf_token: csrfToken },
hooks: { ...colocatedHooks, ...corex },
})
Lazy hooks: PascalCase keys (Dialog: () => import("corex/dialog")).
Design + optional toast
mix corex.design.build
Import toggle.css / select.css when using mode/theme/lang pickers.
MCP: plug Corex.MCP in dev only — see corex-mcp. Prefer --no-mcp for locked-down scaffolds. Never set allow_remote_access: true casually.
Also see: updating Corex → Hexdocs update.html / skill pointers under corex-installation; accessibility/theming → corex-design; language switcher → corex-navigation; Tableau Bandit port → corex-mcp.
Full checklist: sub-rule corex:installation. MCP installation_guide when server is running.