Reference
Intents
Every starter intent, grouped by profile and domain: the 214 intents prongs add, prongs add errors and prongs add logs put in your registry. Each page shows the intent in use, how to tell it apart from its neighbours, and how it connects to other intents.
Profiles
How intents are named
An intent is one named purpose. Pick the domain from what the code is, then the intent from what it is for.
actionDomain
the kind of thing
deleteMeaning
what it is for
Domains belong to a profile. The UI profile renders action.delete as a destructive button; the errors profile turns record.missing into a 404.
Choosing an intent
- 1
Match the purpose, not the look. Pick the intent whose description says what the element or code is for.
- 2
Read its “not for” lines. If one matches your case, use the intent it points to.
- 3
Nothing fits? Add one.
npx prongs add-intent, instead of working around the system. - 4
Check it.
npx prongs checkverifies usage, and runs after every edit when hooks are installed.
UI
What each element is for. Rendered by the components.
Errors
What went wrong, told to the caller. Returned with fail().
Logs
What happened, told to whoever runs the app. Recorded with log().