A dashboard tile can be broken in a way neither side shows. The chart draws a plausible zero or a single "(none)" bucket, and the code passes review. The bug lives between the two.
I found that out on a production app I run. A sharing dashboard of 23 tiles had 4 that could show a real number. Nobody noticed for 7 weeks. One instrumentation commit, adding properties at call sites that already had the data, took it to 10.
So I built dashlint to find that kind of tile. Here's how it works.
Four ways my tiles broke
Each of these was a small mismatch between the query and the tracking call:
| Dashboard asked for | Code sent | What the tile showed |
|---|---|---|
a breakdown by category
|
category_id |
one "(none)" bucket |
| a filter on "Trending" | "trending" | zero |
feed_tab_changed for everyone |
the event from mobile only | a mobile number read as all users |
an alert on referral_invite_shared
|
nothing, the event was no longer sent | an alert that couldn't warn anyone |
None of these throws an error anywhere. PostHog answers the query it was given, correctly.
What dashlint does
dashlint is a CLI and a GitHub Action. It has two inputs:
- A catalog of your analytics calls. It uses the TypeScript compiler's type checker on your TypeScript or JavaScript code to find calls on the PostHog, Mixpanel, Amplitude and Segment SDKs (web and React Native), and records the event name, the property keys and, where the code only allows a fixed set, the values.
-
A snapshot of your dashboards.
dashlint pullreads saved insights, dashboards and alerts from PostHog with a read-only key and writesdashlint.requirements.json, which you commit. For any other dashboard tool you write the same requirements by hand in YAML.
Then it checks each tile and gives it a verdict: dead, partly dead, degraded, one platform, not checked, or live, with the reason and the line of code behind it.
It checks the property filters, filter values and breakdowns of each tile against the calls your code makes: a filter on a property no call sends, a value the code can't produce, a breakdown that collapses into one "(none)" bucket, a negative filter with no effect. PostHog's dead-insight scout covers event firings and, in its instructions as of November 2026, says property filters, cohorts and breakdowns are "outside this check", so the two are complementary.
Each tile also shows which platforms (web, iOS, Android) can send its data, read from the code before release.
Try it on the demo
The demo repo is a small fictional bookshop with a web app and a mobile app, a few tiles broken on purpose, and a committed snapshot of its dashboards. No account and no key:
git clone https://github.com/dashlint/demo.git
cd demo
npx @dashlint/cli audit --offline
Two of the tiles it reports:
DEAD Book views by genre
filters on `genre` = "mystery", but no call site sends `genre` with `book_viewed`
(they send `genre_id`), and PostHog has never seen `genre` on that event
web/src/App.tsx:25
DEAD Gift card redemptions
(alert "Gift card redemptions dropped" can never fire; alert "Gift card redemptions
below one" fires on every check)
queries `gift_card_redeemed`: no code sends it and PostHog has never seen it; closest
event in code: `giftcard_redeemed`
web/src/App.tsx:74
It also writes dashlint-report.html with every tile, its verdict and the query path behind it.
On your own repo:
npx @dashlint/cli init
export DASHLINT_POSTHOG_KEY=phx_your_read_only_key
npx @dashlint/cli pull
npx @dashlint/cli audit --offline
Between init and pull, open the dashlint.config.yml that init wrote, uncomment its platforms block and set your PostHog project id. The key is read from the environment variable the config names, never from the config file, and never printed.
Alerts on dead events
An alert on an event your code never sends can't warn you, and it doesn't look broken. In a test PostHog project in November 2026, alerts on an event nothing sends showed "Not firing" with no error on every hourly check when they watched for a decrease or an upper limit, and fired on every check when they had a lower limit. dashlint checks each alert's insight and condition against your code and flags both cases, plus alerts that point at a series or step the insight no longer has.
In CI
The Action runs dashlint diff on every pull request. It builds the catalog for the base and head commits, checks both against the committed snapshot, and comments on the tiles and alerts the change would newly break:
# .github/workflows/dashlint.yml
name: dashlint
on: pull_request
permissions:
contents: read
pull-requests: write
jobs:
dashlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: npm ci --ignore-scripts
- uses: dashlint/action@v0
It's deterministic and needs no analytics key in CI, because the snapshot is a file in the repo. Tiles that were already dead are mentioned but never block a merge; only newly broken ones fail the check. Rename gift_card_redeemed in a pull request and the comment names the tiles that rename takes down.
Unknown is an answer
Static analysis of analytics code hits plenty of cases it can't decide. Event names get built at run time, properties get spread from objects of unknown shape, and SQL insights are their own world. Facts in dashlint are yes, no or unknown. Only a definite "no" makes a tile dead; when it can't tell, it says "not checked" with the reason and counts it, and unknown counts are always printed. Same input, same verdicts.
I measured it on real code. On 64 public repositories across the four SDK families, dashlint read a literal event name at 95.9% of the call sites it found, with 0 crashes. In blind samples of 100 facts it reported, 1 was wrong.
In the CLI, only pull touches the network, with read-only requests to PostHog. Everything else runs offline, there's no telemetry, and your source code never leaves your machine. It's free per run.
A clean result means nothing dashlint can see is broken, not that every number is right.
Links
- Repo and docs: https://github.com/dashlint/dashlint
- The rules for every check: https://github.com/dashlint/dashlint/blob/main/docs/checks.md
- Demo: https://github.com/dashlint/demo
- GitHub Action: https://github.com/dashlint/action
- npm: https://www.npmjs.com/package/@dashlint/cli
MIT licensed. If it gets a tile wrong on your app, in either direction, please open an issue.
Not affiliated with or endorsed by PostHog, Mixpanel, Amplitude or Twilio Segment.
AI disclosure: dashlint and this post were built and drafted with Claude, an AI assistant, working from my design and my measurements. I reviewed and edited the text and stand behind every claim in it.

Top comments (0)