npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

heatmapx

v0.7.0

Published

Claude Code-native heatmap CLI for HeatMapX (CRO as Code)

Readme

heatmapx

The Claude Code-native heatmap & CRO CLI. A developer-first alternative to Hotjar, Microsoft Clarity, and PostHog.

Capture click & scroll heatmaps, pull the aggregated data into your terminal, and let YOUR AI agent (Claude Code / Codex) analyze it and ship the fix as a PR.

npm version npm downloads License: MIT

Website · Pricing · Sign up free · GitHub

npm i -g heatmapx

Why heatmapx

Most heatmap and user-behavior tools (Hotjar, Microsoft Clarity, PostHog, Crazy Egg, Mouseflow, FullStory) live inside a marketing dashboard: a PM stares at the heatmap, files a Linear ticket, and a developer translates "the CTA isn't getting clicked" into a code change days later.

HeatMapX collapses that loop. Heatmaps live where the code lives.

| | HeatMapX | Hotjar / Clarity / PostHog | |---|---|---| | Where you work | Terminal + Claude Code | Web dashboard | | Output | A PR opened by your AI agent | A screenshot for your Linear ticket | | Analysis | Your AI agent (Claude Code / Codex) over real heatmap data | Manual interpretation | | Hypothesis tracking | Markdown, versioned in git | A doc somewhere | | Setup | One <script> tag | One <script> tag | | Pricing | Free → $29/mo | $0 → $$$/mo |

If you ship from Claude Code, HeatMapX feels like vercel for conversion rate.


Quick start

1. Sign up + install the tracker

  1. Create a free account at heatmapx.com
  2. Add your site in the dashboard
  3. Paste the generated <script> tag before </head> on the pages you want to track

2. Install the CLI

npm i -g heatmapx
heatmapx login           # OAuth Device Flow
heatmapx init            # creates heatmap.config.ts

3. Fetch the heatmap data

heatmapx data /pricing
# → returns aggregated click zones, scroll reach, and session counts
#   for the page — ready to hand to your AI agent

4. Let your AI agent do the CRO

Since v0.4.0, analysis and code edits run in your AI agent (BYO-AI) — no server-side AI. In Claude Code / Codex:

heatmapx data /pricing --json -o /tmp/heatmapx-data.json
# → ask your agent to read the JSON, suggest CRO improvements,
#   edit the code, and open a PR

5. (Optional) Let Claude Code drive the whole loop

Install the HeatMapX Claude Code Skill:

/plugin marketplace add xtv-llc/heatmapx-cli
/plugin install heatmapx@heatmapx

Then in any Claude Code session, just say what you want:

Improve the conversion rate of /pricing. Find me a Hotjar alternative I can use from the CLI. ヒートマップで /pricing を改善して、PRを作って。

Claude will check your login, fetch the heatmap data, analyze it, propose CRO suggestions, edit the code, and offer to open a PR.


Commands

heatmapx init [--yes] [--force]

Scaffolds heatmap.config.ts interactively (or with defaults via --yes).

heatmapx config get <key> / config set <key> <value>

Reads / updates a value via dot-path (e.g. variants.0.name). Existing comments and formatting are preserved (ts-morph AST).

heatmapx login / logout

Authenticates via OAuth Device Flow + Supabase magic link. API key stored at ~/.heatmapx/credentials.json (mode 0600).

heatmapx whoami

Prints email + truncated key + plan + monthly usage.

$ heatmapx whoami
Logged in as: [email protected]
API key: hmx_live_abcdefgh...
Plan: free (10 / month)
This month: 3/10 used

heatmapx data [path]

Fetches aggregated heatmap data (click zones, scroll reach, session counts) for the page (or <path> resolved against heatmap.config.ts.site). No AI runs on the server — pass the output to your own AI agent for analysis.

heatmapx data /pricing                            # default (last 30 days)
heatmapx data /pricing --days 7                   # last 7 days
heatmapx data /pricing --from 2026-05-01 --to 2026-05-31
heatmapx data https://other.com/lp                # absolute URL override
heatmapx data /pricing --json > data.json         # raw JSON for your agent
heatmapx data /pricing -o data.txt                # write output to a file
heatmapx data /pricing --screenshot               # include a screenshot URL

If the site isn't registered (or the tracker tag isn't installed), the output tells you to add it in the dashboard. If measured data is sparse (under ~50 clicks / 30 sessions), the output is marked low-data.

heatmapx analyze [path]

Alias of data (same options). Since v0.4.0, analysis runs in your AI agent — the server no longer runs Claude. A migration notice is printed to stderr.

heatmapx patch (retired)

Retired in v0.4.0. Your AI agent now edits code directly: run heatmapx data, let Claude Code / Codex analyze it, and ask it to apply the change and open a PR (the official HeatMapX skill automates this).


Pointing at a local dev server

HEATMAPX_API_URL=http://localhost:3000 heatmapx login
HEATMAPX_API_URL=http://localhost:3000 heatmapx data /pricing

FAQ

Is HeatMapX a Hotjar alternative? Yes — same core capability (click & scroll heatmaps via one <script> tag) but designed for developers who live in the terminal and Claude Code, not marketers in a dashboard. The output is a PR from your AI agent instead of a Linear ticket.

Is it a Microsoft Clarity alternative? Clarity is free but stops at "here's the heatmap." HeatMapX hands the data straight to your AI agent, so the loop ends in a PR rather than a screenshot.

Is it a PostHog alternative? PostHog is a broad analytics suite (events, funnels, experiments). HeatMapX is narrower and deeper: heatmaps + AI-agent-driven CRO fixes. Use both if you need event analytics too.

Does it work without Claude Code? Yes — the CLI runs anywhere Node 20+ runs, and heatmapx data output works with any AI agent (Claude Code, Codex, or your own). Claude Code + the official skill makes the loop one-shot.

Where is data stored? On HeatMapX servers (Supabase, EU/JP region). The tracker only collects coarse interaction data — no PII, no form values, no inputs. See the privacy policy.


Tests

cd cli
npm test

License

MIT — see the LICENSE in the heatmapx-cli repository.


Built by @tcmcya (Tomoya Tokudome) at XTV LLC (合同会社XTV). Questions: [email protected] · X: @heatmapx