<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: John Richardson</title>
    <description>The latest articles on DEV Community by John Richardson (@johnrichardson).</description>
    <link>https://dev.to/johnrichardson</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4276444%2F3f0c2098-f86a-43ac-9656-7df58ba67f1d.jpg</url>
      <title>DEV Community: John Richardson</title>
      <link>https://dev.to/johnrichardson</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/johnrichardson"/>
    <language>en</language>
    <item>
      <title>Do we still need packages? A hands-on look at Laravel notifications</title>
      <dc:creator>John Richardson</dc:creator>
      <pubDate>Tue, 01 Dec 2026 13:14:06 +0000</pubDate>
      <link>https://dev.to/johnrichardson/do-we-still-need-packages-a-hands-on-look-at-laravel-notifications-19jb</link>
      <guid>https://dev.to/johnrichardson/do-we-still-need-packages-a-hands-on-look-at-laravel-notifications-19jb</guid>
      <description>&lt;p&gt;It's pretty much intuitive to most of us now that we need fewer packages. Why install one for a simple utility function, or anything else that's quick to write and easy to review? That doesn't mean every package is redundant, though. Generating something security-sensitive or with a ton of surface area is a different matter. A trusted, well-tested package has already had scrutiny that a fresh generation hasn't, and it leaves far less code for you to maintain.&lt;/p&gt;

&lt;p&gt;With that in mind, I set out to compare the two approaches with a real-life example and put some numbers to the differences.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I did
&lt;/h2&gt;

&lt;p&gt;I came across a new package, Inertia UI Notifications by Pascal Baljet, and decided to use it as a test case. I spun up a new Laravel instance and  added the following features to it, using the package:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;toasts you can fire from PHP or Vue (with types, loading states, action buttons and stacking)&lt;/li&gt;
&lt;li&gt;an unread indicator with a dropdown of recent notifications on every page&lt;/li&gt;
&lt;li&gt;a standalone inbox page, with authorization so users only see their own notifications. &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;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: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;a basic spec with Codex&lt;/li&gt;
&lt;li&gt;the same basic spec with Claude&lt;/li&gt;
&lt;li&gt;and a more detailed spec with Claude (architecture guidance, plus Reka UI for the primitives). &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Each build started from its own fresh Laravel instance and I spent about 20 minutes reviewing each AI build.&lt;/p&gt;

&lt;h2&gt;
  
  
  The results
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Package&lt;/th&gt;
&lt;th&gt;Basic, Codex&lt;/th&gt;
&lt;th&gt;Basic, Claude&lt;/th&gt;
&lt;th&gt;Detailed, Claude&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Time to first build, including review&lt;/td&gt;
&lt;td&gt;~17 min&lt;/td&gt;
&lt;td&gt;~35 min&lt;/td&gt;
&lt;td&gt;~35 min&lt;/td&gt;
&lt;td&gt;~50 min&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Est. time to parity with the package&lt;/td&gt;
&lt;td&gt;n/a&lt;/td&gt;
&lt;td&gt;~3-6 hrs&lt;/td&gt;
&lt;td&gt;~3-6 hrs&lt;/td&gt;
&lt;td&gt;~2.5-4 hrs&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Code I own&lt;/td&gt;
&lt;td&gt;~80 lines&lt;/td&gt;
&lt;td&gt;1,858&lt;/td&gt;
&lt;td&gt;1,098&lt;/td&gt;
&lt;td&gt;2,654&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Frontend JS added&lt;/td&gt;
&lt;td&gt;72.6 KB&lt;/td&gt;
&lt;td&gt;13.0 KB&lt;/td&gt;
&lt;td&gt;15.2 KB&lt;/td&gt;
&lt;td&gt;50.8 KB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Inbox request, 100,000 notifications&lt;/td&gt;
&lt;td&gt;23-29 ms&lt;/td&gt;
&lt;td&gt;85-106 ms&lt;/td&gt;
&lt;td&gt;15-22 ms&lt;/td&gt;
&lt;td&gt;0.96-6.22 ms&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Automated accessibility issues&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;What the numbers show:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;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.&lt;/li&gt;
&lt;li&gt;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.&lt;/li&gt;
&lt;li&gt;The detailed spec got close, but there were still bugs. For example, pressing Undo on an archived notification left a toast stuck on screen. As with the others, it would need more iteration to reach parity with the package.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This is a fairly basic example, but it makes the point clearly. AI-built code isn't perfect. To reach the quality of a good package you have to test it, find the gaps and iterate, and that's extra time and effort that most of us are already short of. For something like this I'll install the package. For small utilities I'll keep generating my own.&lt;/p&gt;

&lt;p&gt;The full write-up has the screenshots, code samples and every metric: &lt;a href="https://john-richardson.net/blog/still-using-packages-in-the-ai-era/" rel="noopener noreferrer"&gt;https://john-richardson.net/blog/still-using-packages-in-the-ai-era/&lt;/a&gt;&lt;/p&gt;

</description>
      <category>laravel</category>
      <category>php</category>
      <category>ai</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
