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

@agentapps/app.mixpanel

v3.0.1

Published

Query events, funnels, retention, and user profiles with Mixpanel

Readme

Mixpanel

Lets an agent read analytics from one Mixpanel project: event names and volumes, segmentation, funnels, retention, cohorts, dashboards, user profiles and raw events. It calls the Mixpanel Query API (https://mixpanel.com/api/query) and the raw export API (https://data.mixpanel.com/api/2.0) as a service account. Every tool is read-only: the app does not track events or change anything in Mixpanel. Both hosts are fixed in the code, and no call is retried.

Tools

| Tool | What it does | Writes? | |---|---|---| | get-event-names | Lists the names of the events the project tracks. | no | | get-top-events | Returns the events with the most volume. | no | | query-events | Returns counts for one event in a date range. | no | | get-segmentation | Returns counts for one event in a date range, broken down by a property. | no | | get-property-values | Returns the most common values of one property of an event. | no | | list-funnels | Lists the saved funnels. | no | | get-funnel | Returns step-by-step conversion for one funnel in a date range. | no | | get-retention | Returns cohort retention in a date range. | no | | list-cohorts | Lists the saved cohorts. | no | | get-cohort | Returns one cohort by id. | no | | list-dashboards | Lists the project's dashboards. | no | | get-user-profile | Returns one user profile by distinct_id. | no | | export-events | Exports raw events in a date range, optionally for one event name. | no |

Dates are YYYY-MM-DD.

Setup

agentapps install app.mixpanel mixpanel
agentapps config app.mixpanel PROJECT_ID:<project id>
agentapps config mixpanel SERVICE_ACCOUNT_USERNAME:<username> SERVICE_ACCOUNT_SECRET:<secret>
agentapps mixpanel tools
agentapps mixpanel tool get-top-events limit:10
  • PROJECT_ID is a system secret: every installation of the app reads the same project. It is the numeric id shown in the project's settings in Mixpanel.
  • SERVICE_ACCOUNT_USERNAME and SERVICE_ACCOUNT_SECRET are installation secrets. Create a service account in Mixpanel's organization or project settings and give it access to the project. Mixpanel shows the secret only once.

Terms of use

Mixpanel's own terms apply to everything the app does on your behalf: https://mixpanel.com/legal/terms-of-use/. TODO: note here the API rate limits that matter to someone installing the app; none was checked for this README.

Logos

| File | Source | Changes | |---|---|---| | assets/logo.svg | https://brand.mixpanel.com/assets/logos/logo-mark-purple.svg | none | | assets/logo-mono.svg | https://brand.mixpanel.com/assets/logos/logo-mark.svg | the one colour replaced by currentColor so a host can tint it |