Planning PhoenixKit: A starter kit so every Phoenix app doesn't start from zero
We are starting work on PhoenixKit, a starter kit for Elixir and Phoenix apps. Every app we build begins with the same weeks of work: user accounts, roles, an admin area, emails. PhoenixKit is our plan to write that foundation once and stop rebuilding it.
Why another starter kit
Phoenix gives you an excellent start with mix phx.new and mix phx.gen.auth, but everything after that is yours to write and maintain: who can see the admin pages, how roles are assigned, how a new user is confirmed, how an admin finds and manages users. Templates and boilerplates help on day one, then you own a copy of their code and every fix has to be made by hand in every app.
Our motto for the project: let’s not reinvent the wheel every time we create an app.
A dependency, not a copy
PhoenixKit will be a Hex package. You add it to mix.exs, run an installer, and your app has accounts and an admin. When we improve it, you update the dependency; your own code stays yours. It should fit into an existing Phoenix app, use the app’s own database and layout, and stay out of the way of everything else.
The first version
We are keeping version 1 small:
- Accounts: registration, log in and out, email confirmation, password reset and account settings.
- Roles: an Owner, Admins and Users, with access rules you can check from your own code.
- An admin panel to find and manage users and their roles.
- One-command installation into an existing Phoenix app.
After that come modules: the larger pieces many apps need, like publishing, email, billing or AI, each switched on only where it is used.
We will post progress here as the pieces come together.