<?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: Patrick OBrien</title>
    <description>The latest articles on DEV Community by Patrick OBrien (@pobrien947).</description>
    <link>https://dev.to/pobrien947</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%2F4212903%2F2eabb86b-7608-4c92-b60d-ad5d1d458faf.jpg</url>
      <title>DEV Community: Patrick OBrien</title>
      <link>https://dev.to/pobrien947</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/pobrien947"/>
    <language>en</language>
    <item>
      <title>Should your AI build the feature, or install a service?</title>
      <dc:creator>Patrick OBrien</dc:creator>
      <pubDate>Tue, 03 Nov 2026 09:00:47 +0000</pubDate>
      <link>https://dev.to/pobrien947/should-your-ai-build-the-feature-or-install-a-service-jl3</link>
      <guid>https://dev.to/pobrien947/should-your-ai-build-the-feature-or-install-a-service-jl3</guid>
      <description>&lt;p&gt;Ask Lovable, v0 or Cursor for almost any feature and you'll have something working in a few minutes. A login page, a pricing table, a feedback form, a dashboard: the building part has become nearly free.&lt;/p&gt;

&lt;p&gt;That changes the old "build or buy" question. It used to be about whether you had the time to build something. Now the building takes minutes, and the real question is a different one: once the AI has written it, who looks after it?&lt;/p&gt;

&lt;p&gt;I run a small SaaS that sells one of the options in this decision (more on that at the end, so you can weigh what I say). So I tried to make this a fair framework rather than a pitch, and I tested both routes on the same feature.&lt;/p&gt;

&lt;h2&gt;
  
  
  Building is cheap. Owning isn't.
&lt;/h2&gt;

&lt;p&gt;Every feature your AI writes becomes code you own. It works on the day it's generated. After that it needs someone to notice when it breaks, fix it, keep it secure, and keep it working when the next AI session "improves" a file it doesn't remember writing.&lt;/p&gt;

&lt;p&gt;For a lot of features that's fine, because there's very little to look after. For others, most of the work is in things you never see on the screen.&lt;/p&gt;

&lt;h2&gt;
  
  
  Five questions that decide it
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. Is it what your product is about?&lt;/strong&gt; If the feature is your product, or close to it, build it. That's where your time should go, and you'll want full control.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Do strangers use it?&lt;/strong&gt; Anything that takes input from anonymous visitors attracts spam, abuse and people gaming it. Handling that well is most of the work, and it's the part a quick build usually leaves out.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Does it need to run when you're not looking?&lt;/strong&gt; Emails, scheduled jobs, webhooks, payments and uptime are boring until they fail at 2am.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Would you notice if it broke?&lt;/strong&gt; A broken settings page gets reported. A broken email notification fails quietly for weeks.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. Does your app have a backend at all?&lt;/strong&gt; Many sites built with AI tools or site builders are mostly front end. If the feature needs a database and a server, building it means adding both.&lt;/p&gt;

&lt;p&gt;If you answered "core", "no", "no", "yes" and "yes", build it. The more answers go the other way, the more a service earns its keep.&lt;/p&gt;

&lt;h2&gt;
  
  
  Good things to let your AI build
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Admin and settings screens over data you already have&lt;/li&gt;
&lt;li&gt;Calculators, filters, forms that save to your own database&lt;/li&gt;
&lt;li&gt;Internal tools only your team uses&lt;/li&gt;
&lt;li&gt;Anything that's your product's reason to exist&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These are mostly plain code over your own data, used by people you already know. AI tools are very good at them.&lt;/p&gt;

&lt;h2&gt;
  
  
  Good things to install instead
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Login and accounts (security reviews, password resets, account recovery)&lt;/li&gt;
&lt;li&gt;Payments and subscriptions&lt;/li&gt;
&lt;li&gt;Transactional email (deliverability is its own job)&lt;/li&gt;
&lt;li&gt;Anything public-facing where strangers can post or vote&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The pattern: the visible part is small, and the invisible part is large and keeps changing.&lt;/p&gt;

&lt;h2&gt;
  
  
  A worked example: a feature request board
&lt;/h2&gt;

&lt;p&gt;A feature request board fits right in the middle, which makes it a good test. Visitors suggest features, vote on them, and see a public roadmap. It looks like a simple list. The hard parts are less visible: stopping one person from voting fifty times without making everyone sign up, keeping spam off, approving ideas before they're public, and telling you when something new comes in.&lt;/p&gt;

&lt;h3&gt;
  
  
  Route 1: ask the AI to build it
&lt;/h3&gt;

&lt;p&gt;I opened a landing page in Lovable and asked: "Add a feature request board where visitors can suggest features and upvote them, plus a public roadmap page." No mention of any service.&lt;/p&gt;

&lt;p&gt;It did a good job. In one go it added a Requests page and a Roadmap page, linked from the top of every page, and set up a database for them (Lovable Cloud). Visitors can suggest an idea and upvote the ones they want without signing in, ideas are sorted by votes, and the roadmap shows Planned, In progress and Shipped columns. It even tested itself: it submitted an idea and checked that an upvote raised one idea from 19 to 20 votes. The whole thing took two prompts and about five minutes, and used roughly three-quarters of my daily Lovable credits.&lt;/p&gt;

&lt;p&gt;Its own summary was refreshingly honest about what it hadn't done:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;No admin screen.&lt;/strong&gt; To move an idea onto the roadmap, you change its status in the database yourself. I couldn't find anywhere to review new suggestions either.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No approval step.&lt;/strong&gt; New ideas start as "Under review" and appear on the public Requests page straight away.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Easy to vote twice.&lt;/strong&gt; "Each browser can upvote an idea once. Someone could still vote again from another browser or after clearing their data." I tried it: in a private window on the published page, the same idea took a second vote straight away.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Made-up numbers.&lt;/strong&gt; It "made up six ideas and their vote counts so the pages aren't empty", and left its own "Test idea from check" on the board. Both need deleting before anyone sees the page, or your roadmap opens with invented demand.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I asked it directly whether the one-vote rule was enforced on the server and whether there was any spam protection. Again, a straight answer. Votes are checked in the database (one vote per voter ID per idea, and the count is raised by a trigger, so nobody can type in a made-up total), but the voter ID is just a random code the browser makes up, so clearing your data or sending a different code gets you another vote. On new ideas: "no rate limiting and no spam protection at all. Anyone, signed out, can post as many ideas as they like as fast as they like." It added that the backend has no built-in rate limiting, so any limit would be a custom rule with trade-offs, and offered to build a sign-in requirement, a wait between posts, or an admin page.&lt;/p&gt;

&lt;p&gt;Nothing it described would tell you when a new idea (or a pile of spam) arrives, so you'd find out by going to look.&lt;/p&gt;

&lt;p&gt;So route 1 gave me a working board in minutes, and it's genuinely fine for a small, friendly audience. What's left is exactly the invisible list from earlier: an admin screen, approval, stronger duplicate-vote protection, spam limits and notifications. Each one is another prompt, more code to own, and more to test.&lt;/p&gt;

&lt;h3&gt;
  
  
  Route 2: ask the AI to install a service
&lt;/h3&gt;

&lt;p&gt;Then I gave Lovable, v0 and Cursor the same short install prompt for a hosted board. It asks the AI to add a Feedback button to every page and a /roadmap page, and tells it not to build its own storage for feedback.&lt;/p&gt;

&lt;p&gt;All three got it right the first time: the button on every page, a working roadmap page, voting and submitting working, no console errors. Lovable and v0 both added a script tag. Cursor did it in a fresh Next.js app. The parts missing from route 1 come with the service instead of being code in your project: an approval queue, a dashboard to move ideas through the roadmap, email notifications, spam limits, and votes checked on the server (one per browser, with per-network limits on top). No login-free board can make double voting impossible, this one included; the aim is to make it slow and pointless.&lt;/p&gt;

&lt;p&gt;The trade-off is the usual one for any service: it costs money beyond a free plan, your data lives somewhere else, and you depend on someone else's uptime. Check that you can export your data and leave.&lt;/p&gt;

&lt;h2&gt;
  
  
  If you do build it, ask for the invisible parts
&lt;/h2&gt;

&lt;p&gt;If you decide to build, put the hard parts in the prompt instead of hoping for them:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;"Limit how often one visitor can vote or post, and explain how you stop duplicate votes."&lt;/li&gt;
&lt;li&gt;"Add a honeypot field and rate limits to the public form."&lt;/li&gt;
&lt;li&gt;"New submissions should wait for my approval before they're public."&lt;/li&gt;
&lt;li&gt;"Email me when something new is submitted."&lt;/li&gt;
&lt;li&gt;"Write tests for the voting rules."&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Then read what it wrote for those parts. That's where problems hide.&lt;/p&gt;

&lt;h2&gt;
  
  
  If you install a service, check these
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Can you export everything (CSV or an API) and leave?&lt;/li&gt;
&lt;li&gt;Does the price grow with something you can predict?&lt;/li&gt;
&lt;li&gt;Does it work with your stack and your Content Security Policy?&lt;/li&gt;
&lt;li&gt;Does it give your AI tool clear install instructions (a prompt, or an llms.txt file), so the AI installs it instead of reinventing it?&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The short version
&lt;/h2&gt;

&lt;p&gt;Let the AI build what makes your product yours. Install what strangers can abuse, what has to run while you sleep, and what you'd never notice breaking. The building is cheap either way; the owning is what you're really choosing.&lt;/p&gt;

&lt;p&gt;Where do you draw the line? Is there something you let your AI build that you later wished you'd installed, or the other way round?&lt;/p&gt;

&lt;p&gt;Disclosure: I build UserNote, the hosted feedback board I used for route 2, so weigh my view on that accordingly.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>webdev</category>
      <category>saas</category>
      <category>programming</category>
    </item>
    <item>
      <title>My logs said 749 page views in launch week. The real number was 31.</title>
      <dc:creator>Patrick OBrien</dc:creator>
      <pubDate>Wed, 28 Oct 2026 11:13:25 +0000</pubDate>
      <link>https://dev.to/pobrien947/my-logs-said-749-page-views-in-launch-week-the-real-number-was-31-180j</link>
      <guid>https://dev.to/pobrien947/my-logs-said-749-page-views-in-launch-week-the-real-number-was-31-180j</guid>
      <description>&lt;p&gt;I launched a small SaaS and wanted to know whether anyone was visiting. I don't run a third-party analytics script, so I wrote a report over my CloudFront access logs instead. The first run said &lt;strong&gt;749 page views in four days&lt;/strong&gt;. That felt great for about ten minutes.&lt;/p&gt;

&lt;p&gt;Then I looked at what was behind it:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;543 requests from a single "Firefox 135" in Lithuania&lt;/li&gt;
&lt;li&gt;246 hits from an iPhone on iOS 13.2.3, a version from 2019 that scanners love to fake&lt;/li&gt;
&lt;li&gt;probes for &lt;code&gt;/wp-content/plugins/...&lt;/code&gt;, &lt;code&gt;/debug/vars&lt;/code&gt;, &lt;code&gt;/_profiler/phpinfo&lt;/code&gt; and dozens of &lt;code&gt;.../images/images/images/cache.php&lt;/code&gt; paths. My site isn't WordPress or PHP, but it's a single-page app, so every unknown path returned the homepage with a 200 and looked like a page view&lt;/li&gt;
&lt;li&gt;a "visitor from Google" that read every page on the site, one every five seconds&lt;/li&gt;
&lt;li&gt;referrals from spam domains I'd never heard of&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;After filtering: &lt;strong&gt;31 page views&lt;/strong&gt;, about 7 of them probably me. Two came from Google search and one from Hacker News.&lt;/p&gt;

&lt;p&gt;Here are the filters, in the order the report applies them. The report is a Python script over CloudFront's JSON log lines; the logs hold no IP addresses, so "a browser" below means the same user agent from the same country on the same day.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Only count pages that exist
&lt;/h2&gt;

&lt;p&gt;On a single-page app, every unknown path can come back as &lt;code&gt;index.html&lt;/code&gt; with a 200. So I check the path against the sitemap, plus the app's own routes:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;PAGES&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nf"&gt;urlparse&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;u&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;u&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;re&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;findall&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;r&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;&amp;lt;loc&amp;gt;([^&amp;lt;]+)&amp;lt;/loc&amp;gt;&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nf"&gt;open&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;sitemap&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nf"&gt;read&lt;/span&gt;&lt;span class="p"&gt;())}&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;/login&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;/support&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="n"&gt;PAGE_PATTERN&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;re&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;compile&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;r&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;^/(dashboard(/.*)?|b/ws_[0-9a-z]+/?)$&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;uri&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;PAGES&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="n"&gt;PAGE_PATTERN&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;match&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;uri&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;bots&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;probe for a non-existent page&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Fixing the server is better still: my site now returns a real 404 for unknown paths, which also stops search engines from indexing junk URLs.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Only count 200 and 304 responses for HTML
&lt;/h2&gt;

&lt;p&gt;Redirects (http to https, www to apex) aren't page views, and neither are the JavaScript and image requests.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Drop bots, and browsers that are years out of date
&lt;/h2&gt;

&lt;p&gt;The obvious part is a user-agent regex for bots, &lt;code&gt;curl&lt;/code&gt;, &lt;code&gt;python&lt;/code&gt;, headless browsers and so on. The less obvious part: real browsers update themselves, but scanners hard-code old versions. Chrome ships every four weeks, so anything before Chrome 140 is over a year old:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;OLD_BROWSER&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;re&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;compile&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;r&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Chrome/([0-9]|[1-9][0-9]|1[0-3][0-9])\.|Firefox/([0-9]|[1-9][0-9]|10[0-9]|11[0-4])\.|iPhone OS (9|1[0-4])_|Mac OS X 10_(9|1[01])\)&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A gotcha that cost me a few days: CloudFront's logs encode spaces in the user agent as &lt;code&gt;%20&lt;/code&gt;. My &lt;code&gt;iPhone OS 13_&lt;/code&gt; pattern never matched &lt;code&gt;iPhone%20OS%2013_&lt;/code&gt;, so the fake iPhone kept counting as a visitor until I decoded the user agent first (&lt;code&gt;unquote()&lt;/code&gt;).&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Drop anything that reads pages faster than a person
&lt;/h2&gt;

&lt;p&gt;In a single-page app, a person loads one HTML page and then navigates in the browser, so the server sees one HTML request per visit. A browser that fetches 4 HTML pages within a minute, or 20 in a day, is a crawler, whatever its user agent or referrer says:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;BURST_PAGES&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;BURST_SECONDS&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;DAILY_PAGES&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;60&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;20&lt;/span&gt;

&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="nf"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;times&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; &lt;span class="n"&gt;DAILY_PAGES&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="nf"&gt;any&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;times&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;BURST_PAGES&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;times&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="n"&gt;BURST_SECONDS&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="nf"&gt;range&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;times&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;BURST_PAGES&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)):&lt;/span&gt;
    &lt;span class="n"&gt;crawlers&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;add&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I started with 8 a day. That dropped a keen reader (and me, testing) as a crawler, so I raised it. Browsers that opened the logged-in dashboard that day are counted separately, so my own visits don't inflate the total.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. The best one: did it run the app?
&lt;/h2&gt;

&lt;p&gt;A real browser downloads the app's JavaScript bundle just after the HTML, or already has it cached from an earlier visit. A script that grabs the HTML never does. The bundle has a hashed file name (&lt;code&gt;/assets/index-&amp;lt;hash&amp;gt;.js&lt;/code&gt;), so scanners guessing paths don't hit it either:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="nf"&gt;any&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;t&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="nf"&gt;seconds&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;60&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;t&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;app_js&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;:],&lt;/span&gt; &lt;span class="p"&gt;[])):&lt;/span&gt;
    &lt;span class="n"&gt;bots&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;HTML only, never ran the app&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It's the simplest test of all, and the hardest for a scanner to fake without running a full browser.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I took from it
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;If you read your own logs, week one's raw number is mostly noise. Check before you celebrate, or panic.&lt;/li&gt;
&lt;li&gt;Bots aren't traffic, but they're useful: Googlebot crawling my blog and tool pages told me indexing was working long before any person showed up.&lt;/li&gt;
&lt;li&gt;31 real views is humbling, but it's a baseline to improve on. 749 wasn't.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Has anyone else found their early numbers were mostly bots? What filters do you use?&lt;/p&gt;

&lt;p&gt;&lt;em&gt;I'm building &lt;a href="https://getusernote.com/?ref=devto" rel="noopener noreferrer"&gt;UserNote&lt;/a&gt;, a feedback board and public roadmap that visitors can vote on without an account. This report is how I find out whether anyone's visiting it.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>aws</category>
      <category>analytics</category>
      <category>webdev</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
