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.amplitude

v3.0.1

Published

Query events, cohorts, retention, and funnels with Amplitude

Readme

Amplitude

Lets an agent read analytics from an Amplitude project: event segmentation, funnels, retention, revenue, active users, user activity, cohorts, charts and the event taxonomy. It can also create and delete chart annotations. It uses Amplitude's HTTP APIs at https://amplitude.com/api/2 and https://analytics.amplitude.com/api/3, with the project's API key and secret key.

Tools

| Tool | What it does | Writes? | |---|---|---| | query-events | Returns event segmentation data: counts and breakdowns of an event in a date range. | no | | get-funnel | Returns step-by-step conversion for a sequence of events. | no | | get-retention | Returns retention for users who did a start event and then a return event. | no | | get-user-activity | Returns the recent events of one user. | no | | list-cohorts | Lists the project's cohorts. | no | | get-cohort | Returns one cohort by id. | no | | export-events | Exports raw events for a range of hours. | no | | get-annotations | Lists chart annotations. | no | | create-annotation | Creates a chart annotation on a date. | yes, asks first | | delete-annotation | Deletes a chart annotation by id. | yes, asks first | | list-charts | Lists the project's charts. | no | | get-chart | Returns one chart by id. | no | | search-users | Searches users by user id, device id or another identifier. | no | | get-revenue | Returns revenue lifetime value data for a date range. | no | | list-event-types | Lists the event types of the project. | no | | get-active-users | Returns active or new user counts for a date range. | no |

Limits:

  • The two API hosts are fixed in the code. A project stored in another Amplitude data region is not reachable.
  • The app does not send events to Amplitude and does not change cohorts or charts.
  • Requests are not retried.

Setup

agentapps install app.amplitude amplitude
agentapps config app.amplitude API_KEY:<your API key>
agentapps config app.amplitude SECRET_KEY:<your secret key>
agentapps amplitude tools
agentapps amplitude tool get-active-users start:20260101 end:20260131

API_KEY and SECRET_KEY are system secrets: one pair for every installation of the app, so every installation reads the same Amplitude project. Amplitude shows both in the project's settings (Organization settings, Projects, then the project).

Terms of use

Amplitude's own terms apply to everything the app does on your behalf: https://amplitude.com/terms.

Logos

| File | Source | Changes | |---|---|---| | assets/logo.svg | "Amplitude Logo.zip", linked from https://brand.amplitude.com/creative/logo, the blue mark | removed the XML declaration | | assets/logo-mono.svg | same kit, the black mark | removed the XML declaration and the <style> element; the one colour replaced by currentColor so a host can tint it |