<?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: Karan</title>
    <description>The latest articles on DEV Community by Karan (@karan171996).</description>
    <link>https://dev.to/karan171996</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%2F416102%2F108abc82-a247-4aae-8aa6-4bc06149e096.jpeg</url>
      <title>DEV Community: Karan</title>
      <link>https://dev.to/karan171996</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/karan171996"/>
    <language>en</language>
    <item>
      <title>One npx command to see why your website is slow (New Relic + Sentry on localhost)</title>
      <dc:creator>Karan</dc:creator>
      <pubDate>Sat, 03 Oct 2026 05:00:16 +0000</pubDate>
      <link>https://dev.to/karan171996/one-npx-command-to-see-why-your-website-is-slow-new-relic-sentry-on-localhost-31g1</link>
      <guid>https://dev.to/karan171996/one-npx-command-to-see-why-your-website-is-slow-new-relic-sentry-on-localhost-31g1</guid>
      <description>&lt;p&gt;I'm building &lt;strong&gt;MetricFlow&lt;/strong&gt;, a performance dashboard for your website that runs on your own machine. It shows real-user metrics from &lt;strong&gt;New Relic&lt;/strong&gt; and JavaScript errors from &lt;strong&gt;Sentry&lt;/strong&gt; side by side, per page, and can suggest what to fix first.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx @karan171996/metricflow
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That opens a dashboard at &lt;code&gt;http://localhost:3000&lt;/code&gt;. There is no MetricFlow server and no account to create. Your keys stay on your machine.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Status:&lt;/strong&gt; early, work in progress. Things will change, and feedback is very welcome.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjyb65l4h55zf2og3ri3u.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjyb65l4h55zf2og3ri3u.png" alt="MetricFlow dashboard with sample data" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Sample data, not real numbers.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What you get
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Dashboard:&lt;/strong&gt; average response time, error rate, throughput and Apdex, plus TTFB, LCP and CLS cards with trends and a "what moved since the last check" list.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Performance hub:&lt;/strong&gt; every tracked page with its health (Healthy, Warning or Critical) and a detail view per page.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tool pages:&lt;/strong&gt; New Relic numbers only, or Sentry errors only, per page.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;AI suggestions (optional):&lt;/strong&gt; Gemini, Claude or OpenAI turns your numbers into a short "fix this first" list. Bring your own key.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fk0ywe4g7b0xq52rzwuab.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fk0ywe4g7b0xq52rzwuab.png" alt="Performance hub with sample data" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it in four steps
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Start it:&lt;/strong&gt; &lt;code&gt;npx @karan171996/metricflow&lt;/code&gt;. The first run shows "Connect your data".&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Add your keys:&lt;/strong&gt; a New Relic User API key and account ID, and a Sentry auth token, organization slug and project slug. Paste them on the Setup page or put them in a &lt;code&gt;.env.local&lt;/code&gt; file.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Send data from your site:&lt;/strong&gt; MetricFlow only reads. The &lt;code&gt;/connect&lt;/code&gt; page gives you copy-paste snippets for the New Relic Browser agent and Sentry.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Check that data arrives:&lt;/strong&gt; the same page shows a row per source that turns green when events come in. Then open the dashboard.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;You need Node &lt;code&gt;&amp;gt;=20.12&lt;/code&gt;. New Relic and Sentry both have free plans, which is enough to try it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Good to know
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;It is early software. Expect rough edges.&lt;/li&gt;
&lt;li&gt;It is a local tool, not a hosted service. It runs on your machine while you use it.&lt;/li&gt;
&lt;li&gt;Everything runs with your own keys, and nothing is sent anywhere except to New Relic, Sentry and, if you turn it on, your chosen AI provider.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try it and tell me what you think
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;npm:&lt;/strong&gt; &lt;a href="https://www.npmjs.com/package/@karan171996/metricflow" rel="noopener noreferrer"&gt;https://www.npmjs.com/package/@karan171996/metricflow&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you run it against your own site, I'd like to hear what was confusing in setup and which numbers you expected to see and didn't. Leave a comment below.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>nextjs</category>
      <category>performance</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
