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

@feedmob/feedmob-pixel-cli

v0.2.2

Published

FeedMob Pixel Dashboard data query CLI

Readme

feedmob-pixel-cli

fpc is a read-only Node CLI for querying the FeedMob Pixel Dashboard API from any working directory.

It uses Dashboard API tokens, writes JSON to stdout by default, and can export category records as CSV.

Install

npm install -g @feedmob/feedmob-pixel-cli
command -v fpc
fpc --version

The npm package is @feedmob/feedmob-pixel-cli; the installed command is fpc.

Some npm versions hide successful install script output and only print added packages. If that happens, start with:

fpc --help
fpc doctor

Update

fpc checks the latest npm version on each run. If the installed version is behind, it prints an update notice to stderr while keeping stdout usable for normal command output.

Check whether the global install is behind the latest published version:

fpc --version
npm outdated -g @feedmob/feedmob-pixel-cli

If npm outdated prints a row for @feedmob/feedmob-pixel-cli, update and confirm the installed version:

npm install -g @feedmob/feedmob-pixel-cli@latest
fpc --version
fpc doctor

Quick Start

Configure a Dashboard API token:

mkdir -p ~/.fpc
chmod 700 ~/.fpc
printf '%s\n' 'FEEDMOB_PIXEL_API_TOKEN=fmpat_xxx' > ~/.fpc/.env
chmod 600 ~/.fpc/.env
fpc doctor

Discover valid query values before requesting data:

fpc advertisers list
fpc tv-platforms list --advertiser chime
fpc categories list \
  --advertiser chime \
  --event-type registration \
  --tv lg-tv \
  --impression-start 2026-06-01 \
  --impression-end 2026-06-30

Then query summary or records with a discovered category value:

fpc summary get \
  --advertiser chime \
  --event-type registration \
  --tv lg-tv \
  --impression-start 2026-06-01 \
  --impression-end 2026-06-30

Summary output includes totals, category counts, the current attribution window under attributionWindow, and Direct CTV attributed records under attributed.records. attributed.total is the sum of Direct CTV category counts, while assistedTotal and totalRegistrations correspond to the dashboard's assisted and total registration figures. If --max-attribution-hours is omitted, fpc uses 14 days (336 hours).

fpc records list direct-lg-ctv \
  --advertiser chime \
  --event-type registration \
  --tv lg-tv \
  --page 1 \
  --per-page 100

Configuration

fpc needs a FeedMob Pixel API token. For persistent local setup, store it in ~/.fpc/.env:

mkdir -p ~/.fpc
chmod 700 ~/.fpc
printf '%s\n' 'FEEDMOB_PIXEL_API_TOKEN=fmpat_xxx' > ~/.fpc/.env
chmod 600 ~/.fpc/.env
fpc doctor

For a one-off shell session, export the token before running commands:

export FEEDMOB_PIXEL_API_TOKEN='fmpat_xxx'
fpc doctor

Keep ~/.fpc/.env local to your machine. Avoid storing real tokens in repo files, shell history, logs, screenshots, or generated fixtures.

Agent Skill

A companion Agent Skill is available in the feed-mob/skills repository: feedmob-pixel-cli. Use it when asking Codex, Claude Code, or another Agent Skills-compatible assistant to query FeedMob Pixel Dashboard data with fpc.

The skill guides agents to:

  • verify the local fpc install and run fpc doctor before querying;
  • keep Dashboard API tokens local and out of repos, logs, screenshots, and generated fixtures;
  • discover advertiser, event type, TV platform, and category values before using them;
  • use summary get, records list, and records export for read-only Dashboard data workflows;
  • use raw GET or HEAD requests only when the high-level commands do not cover the read;
  • apply the correct date-mode rules, including --registration-date-mode auto for linked impression/registration-date behavior and manual for explicit registration date ranges.

More Docs

  • Usage reference: command examples, date modes, CSV export, raw requests, JSON policy, and flag mapping.
  • Development and release: local setup, testing, local install, tarball checks, and npm publishing flow.

Common Commands

fpc doctor
fpc advertisers list
fpc tv-platforms list --advertiser chime
fpc categories list --advertiser chime --event-type registration --tv lg-tv
fpc summary get --advertiser chime --event-type registration --tv lg-tv
fpc records export direct-lg-ctv --advertiser chime --event-type registration --tv lg-tv --out ./direct-lg-ctv.csv