It's pretty much intuitive to most of us that we need fewer packages now. Why install another dependency when you only need a small subset of it, a few utility helpers for example? However, the decision isn't so cut and dry for larger or more complex packages, which can save a ton of effort and handle the security-sensitive or easy-to-get-wrong parts better, with trusted, tested code.
Rather than stick to theory, I decided to approach this with a real-life example and put some numbers to it.
What I did
I came across a new package, Inertia UI Notifications by Pascal Baljet, and decided to use it. I added some new features to a fresh Laravel app: toasts you can fire from PHP or Vue (with types, loading states, action buttons and stacking), an unread indicator with a dropdown of recent notifications on every page, and a standalone inbox page, with authorisation so users only see their own notifications. I set up just the package's toasts and inbox: an agent installed it, loaded its styles, added a trait to the user model and registered its routes and Vue components, in under 10 minutes.
I then set out to achieve the same thing without the package. I gave an agent a spec and had it build on Laravel's built-in database notifications, three times: a basic spec with Codex, the same basic spec with Claude, and a more detailed spec with Claude (architecture guidance, plus Reka UI for the primitives). Each build started from its own fresh Laravel 13, Inertia 3, Vue 3 and Tailwind 4 install, and I spent about 20 minutes reviewing each AI build.
The results
| Package | Basic, Codex | Basic, Claude | Detailed, Claude | |
|---|---|---|---|---|
| Time to first build, including review | ~17 min | ~35 min | ~35 min | ~50 min |
| Est. time to parity with the package | n/a | ~3-6 hrs | ~3-6 hrs | ~2.5-4 hrs |
| Code I own | ~80 lines | 1,858 | 1,098 | 2,654 |
| Frontend JS added | 72.6 KB | 13.0 KB | 15.2 KB | 50.8 KB |
| Inbox request, 100,000 notifications | 23-29 ms | 85-106 ms | 15-22 ms | 0.96-6.22 ms |
| Automated accessibility issues | 0 | 2 | 2 | 1 |
What the numbers show:
- The package was the quickest route to something polished. The basic AI builds worked, but fell short in the same kinds of places: edge cases like a burst of toasts, how the inbox queries scale, how much each page loads, accessibility details like keyboard focus and reduced motion, and how the code is structured for maintenance.
- The AI builds won in places. Two of the three had faster inbox requests than the package, and all three ship less JavaScript. Cursor pagination plus matching indexes was the big win in the detailed build.
- The detailed spec got close, but pressing Undo on an archived notification left a toast stuck on screen, because focus was lost when the button disappeared. It would need more iteration to reach parity.
For something like this I'll install the package. For small utilities I'll keep generating my own.
Caveats: it was an empty app, I only compared toasts and the inbox, each build was a single run, the parity times are my own estimates, and the scores are my own judgement.
The full write-up has the screenshots, code samples and every metric: https://john-richardson.net/blog/still-using-packages-in-the-ai-era/
