Skip to content

Reference

Concept-by-concept API documentation. For task-oriented walkthroughs, see Guides.

The seven areas

App

Installation, packages (feature + portal), portal engines, mounting, route registration (including singular and custom routes), connecting resources via pu:res:conn, full generator catalog.

Resource

The four-layer resource — model, definition, query, actions. pu:res:scaffold field-type syntax, has_cents, SGID, URL routing, definition DSL (fields, inputs, displays, columns), page chrome, metadata panel, index views (table & grid), search, filters, scopes, sorting, custom + bulk actions.

Behavior

Controllers, policies, interactions. Controller hooks (redirect, params, presentation), policy action methods and permitted_attributes_for_*, permitted_associations, relation_scope, interaction structure, outcomes, chaining, URL generation.

UI

Pages, forms, displays, tables, components, layouts, assets. Custom page classes, form field builders, association inputs (typeahead + inline +), built-in component kit, custom Phlex components, the shell, design tokens, .pu-* component classes, Phlexi themes.

Auth

Rodauth installation, account types (basic / admin / SaaS), profile resource with the SecuritySection component.

Tenancy

Multi-tenant entity scoping (associated_with, default_relation_scope, three model shapes), nested resources (parent/child routes, scoping), user invitations.

Testing

The Plutonium::Testing::* concerns — CRUD, policy matrix, definition smoke tests, model concerns, nested resources, portal access, interaction outcomes.

Quick reference

I need to…See
Install PlutoniumApp › Index
Run a generatorApp › Generators
Create a portalApp › Portals
Scaffold a resourceApp › Generators › pu:res:scaffold
Configure form fieldsResource › Definition
Add search / filtersResource › Query
Add custom buttons / bulk actionsResource › Actions
Override CRUD redirects / paramsBehavior › Controllers
Control who can see whatBehavior › Policies
Write business logicBehavior › Interactions
Customize a pageUI › Pages
Customize a formUI › Forms
Style the UIUI › Assets
Set up RodauthAuth › Accounts
Add a profile pageAuth › Profile
Scope to a tenantTenancy › Entity scoping
Wire user invitationsTenancy › Invites
Test a resourceTesting

Reading this reference

  • 🚨 Critical blocks at the top of each page surface the "you'll regret this" rules. Skim them even if you're skimming the rest.
  • Option / DSL tables are designed for scanning — find your option name without reading prose.
  • Cross-references use VitePress relative paths. If a link points somewhere that doesn't exist yet, it's a known gap.
  • Concrete decision rules ("use X when…, Y when…") sit alongside the option references. Reach for them when in doubt.

Released under the MIT License.