{"library":"remimi","title":"remimi","description":"Redux middleware for tracking actions through Mixpanel analytics. v2.0.4 is the latest release (Feb 2018), in maintenance mode with no updates since. Integrates Mixpanel events, profile updates, and action-type-to-event mapping directly into Redux dispatch flow. Differentiates from generic analytics middleware by providing profile selectors, human-friendly formatters, and automatic action type tracking. Supports person profiles, custom properties, increment, and value formatting. Only 500+ weekly downloads on npm as of 2025; alternatives include redux-mixpanel or direct mixpanel-browser integration.","language":"javascript","status":"maintenance","last_verified":"Sat Apr 25","install":{"commands":["npm install remimi"],"cli":null},"imports":["import mixpanelMiddleware from 'remimi'","import remimi from 'remimi'","import type { MixpanelOptions } from 'remimi'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { createStore, applyMiddleware } from 'redux';\nimport mixpanelMiddleware from 'remimi';\nimport rootReducer from './reducers';\n\nconst token = process.env.MIXPANEL_TOKEN || '';\nconst store = createStore(\n  rootReducer,\n  applyMiddleware(mixpanelMiddleware(token, {\n    personSelector: (state) => ({\n      $email: state.user.email,\n      $first_name: state.user.firstName,\n    }),\n    uniqueIdSelector: (state) => state.user.id,\n    actionTypeFormatter: (type) => type.replace(/_/g, ' '),\n    propertyFormatter: (prop) => prop.toLowerCase(),\n    valueFormatter: (val) => String(val),\n  }))\n);\n\n// Dispatch an action to track an event\nstore.dispatch({\n  type: 'Sign up complete',\n  meta: {\n    mixpanel: {\n      props: { source: 'landing-page' },\n    },\n  },\n});","lang":"javascript","description":"Creates a Redux store with remimi middleware, configures profile selectors and formatters, and dispatches a tracked action.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}