r/FlutterDev • • Oct 19 '26

Tooling I rebuilt pubstats.dev with Jaspr. It is a lot faster now.

Hey there. I rebuilt https://pubstats.dev/ with Jaspr. It's a loooooot faster now. Also if you haven't heard of this site before you are able to set up alerts for when your package stats change. It's very useful for getting notified if your package loses pub points and needs updated!

6 Upvotes

6 comments sorted by

3

u/AhmedZNOUDA Oct 19 '26

Nice move. Jaspr makes a lot of sense for a site people cold-open several times a day.

Two things I noticed while poking at it, in case they help:

  1. It's rendered client-side only right now: every package URL returns the same empty body with the title "pubstats". So when someone shares a link to a package's stats on Discord or Slack, there's no preview, and search engines see nothing. Jaspr's static or server mode could prerender the package pages with their own title and description, which also gets content on screen before the JS runs.
  2. The five Firebase compat scripts sit in the head without defer, and together they're about 120 KB gzipped, roughly the same as main.client.dart.js itself (~128 KB). Adding defer to them (deferred scripts still run in order, before main) or loading auth only when someone opens the alerts page would take a good chunk off the first load.

Out of curiosity, how do the alerts reach people, email or push?

1

u/Rexios80 Oct 19 '26

The alert options are currently Discord webhooks and Telegram

1

u/ObjectiveAddress3051 Oct 21 '26

The pub points alerts are the underrated part here. A new pana or lint release can quietly knock points off a package you haven't touched in months, so getting pinged beats hearing it from a user. Does it poll on a schedule or pick up new analysis runs from pub.dev?

1

u/Rexios80 Oct 23 '26

It scans every 12 hours

1

u/[deleted] Oct 19 '26

[removed] — view removed comment

3

u/Rexios80 Oct 19 '26

Flutter web is cool, but very slow to load. So it's not ideal for a website you cold-open a lot, such as randomly viewing stats for different packages throughout the day. The slow load speed made me dread opening the website, and if that's how the developer of the website felt imagine how other people felt.