{"id":31936450,"url":"https://github.com/stitchng/adonis-mixpanel","last_synced_at":"2026-07-17T20:38:27.077Z","repository":{"id":45402621,"uuid":"191227691","full_name":"stitchng/adonis-mixpanel","owner":"stitchng","description":"An addon/plugin package to provide Mixpanel data collection services in AdonisJS 4.0+","archived":false,"fork":false,"pushed_at":"2022-01-10T10:48:42.000Z","size":57,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-07-17T20:38:20.013Z","etag":null,"topics":["adonis-framework","adonisjs","engagement","funnels","mixpanel","mixpanel-api"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stitchng.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":null,"patreon":"coolcodes","open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2019-06-10T18:53:04.000Z","updated_at":"2022-01-10T10:48:45.000Z","dependencies_parsed_at":"2022-07-20T15:32:17.902Z","dependency_job_id":null,"html_url":"https://github.com/stitchng/adonis-mixpanel","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/stitchng/adonis-mixpanel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stitchng%2Fadonis-mixpanel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stitchng%2Fadonis-mixpanel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stitchng%2Fadonis-mixpanel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stitchng%2Fadonis-mixpanel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stitchng","download_url":"https://codeload.github.com/stitchng/adonis-mixpanel/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stitchng%2Fadonis-mixpanel/sbom","scorecard":{"id":853480,"data":{"date":"2025-08-11","repo":{"name":"github.com/stitchng/adonis-mixpanel","commit":"0476c3e970755f5f9940237b0dd4a78c7a9327c9"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 1/25 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 6 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-23T23:10:39.534Z","repository_id":45402621,"created_at":"2025-08-23T23:10:39.534Z","updated_at":"2025-08-23T23:10:39.534Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35595639,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-17T02:00:06.162Z","response_time":116,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["adonis-framework","adonisjs","engagement","funnels","mixpanel","mixpanel-api"],"created_at":"2025-10-14T07:42:47.059Z","updated_at":"2026-07-17T20:38:27.043Z","avatar_url":"https://github.com/stitchng.png","language":"JavaScript","funding_links":["https://patreon.com/coolcodes","https://www.patreon.com/coolcodes/"],"categories":[],"sub_categories":[],"readme":"# adonis-mixpanel\n\nAn addon/plugin package to provide Mixpanel data collection and tracking services in AdonisJS 4.0+\n\n[![NPM Version][npm-image]][npm-url]\n[![Build Status][travis-image]][travis-url]\n[![Coveralls][coveralls-image]][coveralls-url]\n\n\u003cimg src=\"http://res.cloudinary.com/adonisjs/image/upload/q_100/v1497112678/adonis-purple_pzkmzt.svg\" width=\"200px\" align=\"right\" hspace=\"30px\" vspace=\"140px\"\u003e\n\n## Getting Started\n\n\u003eInstall from the NPM Registry - (Please read the **instructions.md** file to learn how to setup this package properly).\n\n```bash\n\n   $ adonis install adonisjs-mixpanel\n\n```\n\n## Usage\n\n\u003eImport and use in controllers or the standard **AdonisJS Event Bus**\n\n```js\n\nconst mixpanel = use('MixPanel')\nconst User = use('App/Models/User')\n\nclass UserController {\n\n    async fetch({ request, response }){\n\n        let allUsers = await User.all()\n\n        return response.status(200).json({\n            users:allUsers\n        });\n    }\n\n    async register({ request, response }) {\n\n        let user_details = request.only([\n            'dob',\n            'email',\n            'phone',\n            'first_name',\n            'last_name'\n        ])\n\n        let newUser = await User.create(user_details)\n\n        // track a new user registered to the web OR mobile app\n        mixpanel.trackUserBasicAttributes(\n            newUser.toJSON()\n        );\n\n        return response.status(201).json({\n            message:'User Created!',\n            user: newUSer.toJSON()\n        });\n    }\n}\n\nmodule.exports = UserController\n\n```\n\n\u003eMore examples\n\n```js\n\nconst mixpanel = use('MixPanel')\nconst User = use('App/Models/User')\n\nclass BillingController {\n\n    async payment({ request, response }){\n\n        let user = await User.findBy('id', 1)\n\n        // track the charge made on a user for using the web OR mobile app\n        // which ties to revenue from the user for the app\n        mixpanel.trackUserBillingCharge(\n            user,\n            40000 // Naira\n        )\n    }\n}\n\nmodule.exports = BillingController\n\n```\n\n\u003eThis library can also be used to track events using the `mixtrack` named middleware.\n\n```js\n\nconst Route = use('Route')\n\nRoute.group(() =\u003e {\n  Route.get('/all', 'UserController.fetch')\n  Route.put('/update/email', function({ auth, request, response }) {\n    const user = await auth.getUser()\n    user.merge({\n      email: request.input('email', null)\n    })\n\n    await user.save() // send to database\n    await user.reload() // refresh with new email\n\n    request.user = user.toJSON()\n    return response.status(200).send('User Updated Email!')\n  }).middleware (\n    ['auth', 'mixtrack:set;email']\n  ) // track updated data for user via 'email'\n})\n.prefix('user')\n\n```\n\n## License\n\nMIT\n\n## Running Tests\n```bash\n\n    npm i\n\n```\n\n```bash\n\n    npm run lint\n\n    npm run test\n\n```\n\n## Credits\n\n- [Ifeora Okechukwu](https://twitter.com/isocroft)\n    \n## Contributing\n\nSee the [CONTRIBUTING.md](https://github.com/stitchng/adonis-mixpanel/blob/master/CONTRIBUTING.md) file for info\n\n[npm-image]: https://img.shields.io/npm/v/adonisjs-mixpanel.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/adonisjs-mixpanel\n\n[travis-image]: https://img.shields.io/travis/stitchng/adonis-mixpanel/master.svg?style=flat-square\n[travis-url]: https://travis-ci.org/stitchng/adonis-mixpanel\n\n[coveralls-image]: https://img.shields.io/coveralls/stitchng/adonis-mixpanel/master.svg?style=flat-square\n\n[coveralls-url]: https://coveralls.io/github/stitchng/adonis-mixpanel\n\n## Support \n\n**Coolcodes** is a non-profit software foundation (collective) created by **Oparand** - parent company of StitchNG, Synergixe based in Abuja, Nigeria. You'll find an overview of all our work and supported open source projects on our [Facebook Page](https://www.facebook.com/coolcodes/).\n\n\u003eFollow us on facebook if you can to get the latest open source software/freeware news and infomation.\n\nDoes your business depend on our open projects? Reach out and support us on [Patreon](https://www.patreon.com/coolcodes/). All pledges will be dedicated to allocating workforce on maintenance and new awesome stuff.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstitchng%2Fadonis-mixpanel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstitchng%2Fadonis-mixpanel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstitchng%2Fadonis-mixpanel/lists"}