Corex New
Mix archive that scaffolds a new Phoenix app with Corex. It runs mix phx.new (always with --no-install), then writes Corex layouts, HEEx, plugs, hooks, and asset stubs, and wires optional Design and MCP by default.
Upgrading an existing app from 0.1.x: Updating Corex. Adding Corex to an existing Phoenix app: Manual installation.
Requirements
- Elixir
~> 1.17 phx_newarchive installed (mix archive.install hex phx_new)
LiveView, HTML, esbuild, and full Phoenix assets stay enabled — there are no --no-live / --no-html / --no-esbuild / --no-assets switches here.
Packages
| Package | Kind | Purpose | mix corex.new |
|---|---|---|---|
corex | Hex dep | Unstyled Phoenix components, hooks, LiveView API | Always |
corex_design | Hex dep (runtime: false) | Config-driven tokens, themes, and component CSS (Design) | On by default; --no-design to skip |
corex_mcp | Hex dep (only: [:dev, :test]) | Dev MCP server for AI component and design discovery (MCP); never enable in :prod | On by default; --no-mcp to skip |
corex_new | Mix archive | Greenfield generator (mix corex.new) | Install once with mix archive.install hex corex_new |
Install
mix archive.install hex phx_new
mix archive.install hex corex_new
Quick start
mix corex.new my_app
Design and MCP are on by default. Skip either with --no-design or --no-mcp.
--no-design ships a static neo/light assets/corex/ export (no corex_design dep); --mode / --theme / --a11y still require Design.
Full feature set (theme / mode / locale scaffolding):
mix corex.new my_app --mode --theme --lang
Optional accessibility prefs UI (implies Design):
mix corex.new my_app --a11y
Phoenix flags are forwarded to phx.new. See mix help corex.new or Mix.Tasks.Corex.New for every Corex-only flag.
Local development
Remove any previous archive, then build and install from this directory:
mix archive.uninstall corex_new
cd installer
MIX_ENV=prod mix do archive.build + archive.install