I built the same feature with a package and three AI builds, and measured each Fullstack PHP developer John Richardson measured a Laravel/Inertia notifications package against three AI-generated builds of the same feature set, finding the package took about 17 minutes to set up and was the most polished by a distance, while both basic AI builds were workable in about 35 minutes but fell well short on UX and maintainability. A detailed-spec AI build got much closer to the package but still needs further iteration, Richardson reported. His conclusion: install the package for something this size, and keep generating small utilities himself. A hands-on example of why I'm still using packages in the AI era John Richardson Fullstack PHP developer As AI has got better at writing code, there’s been a fair bit of debate about whether we still need packages. Robert Libsansky replaced an npm validator with an AI-written one https://roblibs-blog.com/ai-era-rethinking-external-dependencies.html in a few minutes, and argues that many small dependencies, especially ones you only use a fraction of, are no longer worth pulling in. Tim Benniks takes a more dependency-friendly stance. He points out https://timbenniks.dev/writing/the-supply-chain-backlash-will-create-worse-software that moving code into your own repository just makes you responsible for it. Oskar Dudycz lands somewhere between the two https://www.architecture-weekly.com/p/you-can-fork-a-package-but-can-you . Like Libsansky, he’s fine with taking small libraries in-house. Like Benniks, he thinks ownership comes with a cost maintenance . Rather than adding another opinion piece, I thought I’d have a crack at an actual case study. Swapping out an email validator, as Libsansky did, feels like a no-brainer, since AI can generate the method in seconds and you can review it in a couple of minutes. I wanted something with a bit more meat to it. That’s when I came across Inertia UI Notifications https://inertiaui.com/inertia-notifications by Pascal Baljet, a well-made package that gives Laravel and Inertia apps toasts, a notification centre, an inbox, per-user preferences, email digests, web push, real-time updates and plenty more. It’s full-stack, covering everything from storage through to UI components, and the UX is polished right down to the small details. I created a fresh app, installed the package, and set up its toasts, notification centre and inbox page, leaving out the more involved parts like preferences, digests and push. Then I had AI build three versions of the same features, using different specs and models. The aim was to see how much effort each one took, and how the results compared with the package on quality, performance and the amount of code I’d be left to maintain. The short version: - The package took about 17 minutes to set up and was the most polished by a distance. - Both basic AI builds were workable in about 35 minutes, but fell well short on UX and maintainability. - The detailed spec got much closer, but also needs further iteration - For something like this, I’ll install the package. For small utilities, I’ll keep generating my own. How this was done Overview Every build started from its own fresh, isolated Laravel 13 install with Inertia 3, Vue 3 and Tailwind 4 set up, and nothing else. Laravel ships with a native notifications https://laravel.com/docs/notifications system that supports a simple database channel, and that’s what was set up. That gives you a notifications table, a notification class and a Notifiable trait for your user model. All three AI builds used it for their inbox, while the package has its own channel and tables. With a working app in place, the rest of the job, for the package and the AI builds alike, was adding these features: - Showing toasts and notifications, fired from PHP or Vue, with support for different types, loading states, optional action buttons, and several stacking neatly at once. - An unread indicator with a dropdown of recent notifications, shown on every page and kept up to date as users move around the app. - A standalone inbox page where users can view and manage their notifications. - Authorisation, so users only ever see and change their own notifications. Between them, that meant backend code, frontend components, and the plumbing connecting the two. To get the ball rolling, I started with the package, which I installed and configured with an agent. I then tested it out before writing the specs for the AI builds. Writing the specs I started with a basic spec and gave it to two different models, Codex gpt-6.1-sol, medium reasoning and Claude Sonnet 5.5 , to rule out shortcomings with any particular model. Claude did the better job, so I then put together a more detailed spec, with AI’s help, and gave that to Claude too. I spent about 20 minutes reviewing each build. | | What it was given | Starting point | Model | |---|---|---|---| | Basic spec, Codex | The basic spec https://john-richardson.net/files/laravel-notifications/basic-spec.md , written off the top of my head | Blank app | Codex | | Basic spec, Claude | The basic spec https://john-richardson.net/files/laravel-notifications/basic-spec.md , written off the top of my head | Blank app | Claude | | Detailed spec | A more detailed spec https://john-richardson.net/files/laravel-notifications/detailed-spec.md with some basic architecture and interaction details, plus a UI library Reka UI for the primitives | Blank app + Reka UI | Claude | For every build, the package included, I then had agents take screenshots of the details I’d noticed, and had them collect metrics such as timings and line counts. These are all covered in the conclusion conclusion . The builds The package 9/10 UX 9/10 Setting up Inertia UI Notifications was pretty straightforward, helped by the fact I was only using part of it. I had my agent do it, and roughly speaking it involved: - Installing the package. composer require inertiaui/notifications npm install @inertiaui/notifications-vue php artisan inertia-notifications:install php artisan migrate - Loading its styles. @import '@inertiaui/notifications-vue/theme.css'; @source '../../node modules/@inertiaui/notifications-vue/dist'; - Hooking up the frontend. initNotifications { ... } - Adding a trait to the user model. php use InertiaUI\Notifications\Concerns\HasInbox; class User extends Authenticatable { use HasInbox, Notifiable; } - Registering its routes, plus one for the inbox page. php use Inertia\Inertia; use InertiaUI\Notifications\Inbox; Route::inertiaNotifications ; Route::get '/notifications', fn = Inertia::render 'Notifications', Inbox::page ; - Adding its Vue components it supports React too to the app’s layout and inbox page. php < -- Layouts/AppLayout.vue --