Skip to content
This repository has been archived by the owner on Nov 13, 2023. It is now read-only.
/ mixpanel-tail Public archive

Live stream Mixpanel events to your terminal with programmatic API

Notifications You must be signed in to change notification settings

toriihq/mixpanel-tail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mixpanel-tail

Stream your Mixpanel live events to your terminal

CLI

Install

npm install -g mixpanel-tail

Run

Get your API_SECRET from the Mixpanel dashboard of your project

mixpanel-tail -a YOUR_API_SECRET

That's it! Logs will stream to your terminal

Help

See all possible options with:

mixpanel-tail --help

Programmatic API

Install

npm install mixpanel-tail --save

Use

const mixpanelTail = require('mixpanel-tail')

mixpanelTail({
  apiSecret: 'YOUR_API_SECRET', // required
  interval: 5000,
  verbose: false,
  startTime: Date.now(),
  handler: (arrayOfMixpanelEvents) => console.log('The events', arrayOfMixpanelEvents)
})

Use the handler to make interesting stuff, like streaming events to Slack.

Frequently Asked Questions

Is this affiliated or endorsed by Mixpanel?

No. This project is not affiliated or endorsed by Mixpanel.

Who made this?

About

Live stream Mixpanel events to your terminal with programmatic API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages