Aurora UIX
Declarative, compile-time CRUD UI generation for Elixir's Phoenix LiveView. Build feature-rich, responsive interfaces with minimal code using metadata-driven configuration and a powerful layout DSL.
🚀 New to Elixir or Phoenix? Follow the Build Your First App tutorial — a copy-paste walkthrough from nothing installed to a running CRUD app.
📖 Overview
Aurora UIX is a metadata-driven UI framework for Elixir's Phoenix LiveView that lets you rapidly generate complete CRUD interfaces from your Ecto schemas or Ash resources. Instead of writing repetitive form and list code, define your resource once and get a fully functional, responsive UI with built-in validation, association handling, and real-time updates.
Why Aurora UIX?
- Rapid Development — Build CRUD interfaces in minutes, not days. Define resource metadata once, get complete index, show, and edit views.
- Compile-Time Generation — The UI modules are generated when your application compiles, and mistakes in a declaration fail the build.
- Extensible by Design — Customize every layer: field renderers, layouts, components, themes, and LiveView event handlers.
- Production-Ready Features — Built-in pagination, validation, error handling, i18n, responsive design, and real-time updates via LiveView.
Key Features:
Generate
- Complete CRUD views - Index, show and form views from your resource metadata and layouts
- Two backends - Ecto schemas with
aurora_ctxcontexts, or Ash resources, detected automatically - Associations and embeds -
belongs_to,has_many,has_one,many_to_many,embeds_oneandembeds_many - File uploads - An
uploadblock turns a field into a LiveView upload - Compile-time checks - An unknown or mistyped DSL option fails compilation at the line that declares it
Work with data
- Filtering and sorting - Filters on the index fields (turn one off with
filterable?: false), sortable column headers, andwhereandorder_byto scope a list - Pagination - Pages in the table, infinite scroll in the card view
- Live updates - With a PubSub server configured, open lists re-read their page when another session saves or deletes a record
- Ash authorization - The current actor is passed to every generated call, so your policies apply
- Ash calculations and aggregates - Discovered and loaded like any other field
Embed
- Reusable components - Place the generated index, form and show views inside LiveViews you write
Adapt
- Layouts - Compose
inline,stacked,groupandsections, and reuse layouts across modules withinclude: - Responsive cards - Small screens show one card per record; a layout can design the card and show it at every width
- Themes - White Charcoal, Vitreous Marble and Blue Graphite, in light and dark, or your own; see the theme gallery
- Actions - Add, replace or remove buttons, change their icons, and run bulk actions on selected rows
- Renderers and components - Built-in field renderers such as toggle switch, badge, progress bar and rating, your own renderers and component overrides
- Behavior - Handler hooks for your business logic
- Internationalization - A configurable Gettext backend
Technology Stack
- Elixir
1.17+ - Phoenix
1.8+ - Phoenix LiveView
1.2+ - Ecto
3.14+
⚡ Quick Example
Describe a resource, then lay out its views:
defmodule MyAppWeb.Products do
use Aurora.Uix
alias MyApp.Inventory
alias MyApp.Inventory.Product
auix_resource_metadata :product do
context Inventory
schema Product
field :name, placeholder: "Product name", required: true
field :price, precision: 12, scale: 2
end
auix_create_ui do
index_columns :product, [:name, :price]
edit_layout :product do
inline [:name, :price]
end
end
end
Once routed, it gives you a product list, a show view and the forms to create and edit. The Overview has a fuller example with sections and associations.
🚀 Getting Started
You need Elixir 1.17+ and a
Phoenix 1.8+ application with Phoenix LiveView
1.2+. Add Aurora UIX to its mix.exs:
def deps do
[
{:aurora_uix, "~> 0.2.1"}
]
end
Then follow the Getting Started guide: the stylesheet, the icons, the JavaScript hooks, your first views and their routes.
Starting from nothing installed? Follow Build Your First App instead.
📖 Documentation & Guides
Complete documentation is available in the guides and on HexDocs:
- Build Your First App — Zero-background tutorial: from nothing installed to a running CRUD app
- Overview — Architecture and core concepts
- Getting Started — Installation and first CRUD UI
- What's New — Headline changes of 0.2.1 with upgrade notes and examples; one page is kept per release in
guides/whats_new/ - Resource Metadata — Field configuration and validation
- Layout System — Layout DSL and composition
- Reusable Components — Embed the index, form and show components in your own LiveViews
- Reusing Resource Metadata and Layouts — Declare resources once, share layouts and reuse generated modules
- LiveView Integration — Generated modules, streams and navigation
- Handlers and Events — Event handling and business logic
- Live Updates — Lists that refresh when data changes
- Ash Integration — Ash resources, actions and relationships
- Ash Authorization — Actors and policies
- Customizing & Extending — Central hub for styling, theming, component overrides, and custom actions
- Styling — Host styling with
--auix-*variable overrides and the cascade-layer model - Internationalization — Configuring the Gettext backend, automatic POT generation, and translation workflow
- CSS Bridges — Mapping host design-system tokens onto
--auix-*variables - Advanced Usage — Templates and macro conversions
- Custom Backends — Connect another data source
- Troubleshooting — Common issues and solutions
🤝 Contributing
We welcome contributions! Aurora UIX is maintained by WAdvanced and community members.
Before contributing, read the Contributing Guidelines which includes:
- How to report bugs and suggest features
- Development setup and testing procedures
- Code style and commit message conventions
- Pull request process
Quick links:
- GitHub Issues — Report bugs or suggest features
- GitHub Discussions — Ask questions
- Contributing Guidelines — Full contribution details
📜 License
Licensed under the MIT License.
📧 Contact
- Email: contact@wadvanced.com
- Repository: https://github.com/wadvanced/aurora_uix