{"id":19294931,"url":"https://github.com/moesif/express-gateway-plugin-moesif","last_synced_at":"2026-02-16T06:03:04.268Z","repository":{"id":41807342,"uuid":"154245456","full_name":"Moesif/express-gateway-plugin-moesif","owner":"Moesif","description":"API analytics plugin for Express API gateway","archived":false,"fork":false,"pushed_at":"2022-12-08T03:24:47.000Z","size":49,"stargazers_count":2,"open_issues_count":4,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-11-11T20:36:58.891Z","etag":null,"topics":["api-analytics","api-gateway","express-gateway","moesif","plugin"],"latest_commit_sha":null,"homepage":"https://www.moesif.com","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Moesif.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-10-23T01:57:40.000Z","updated_at":"2022-05-06T15:18:01.000Z","dependencies_parsed_at":"2023-01-24T08:00:12.471Z","dependency_job_id":null,"html_url":"https://github.com/Moesif/express-gateway-plugin-moesif","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Moesif/express-gateway-plugin-moesif","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Moesif%2Fexpress-gateway-plugin-moesif","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Moesif%2Fexpress-gateway-plugin-moesif/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Moesif%2Fexpress-gateway-plugin-moesif/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Moesif%2Fexpress-gateway-plugin-moesif/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Moesif","download_url":"https://codeload.github.com/Moesif/express-gateway-plugin-moesif/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Moesif%2Fexpress-gateway-plugin-moesif/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29501365,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T05:57:17.024Z","status":"ssl_error","status_checked_at":"2026-02-16T05:56:49.929Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["api-analytics","api-gateway","express-gateway","moesif","plugin"],"created_at":"2024-11-09T22:40:34.084Z","updated_at":"2026-02-16T06:03:04.252Z","avatar_url":"https://github.com/Moesif.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Moesif Plugin for Express Gateway\n\n[Express Gateway](https://www.express-gateway.io/) is an open-source API Gateway/API Management application built on the Node.js [express](https://expressjs.com/) framework.\n\n[Moesif](https://www.moesif.com) is an [API analytics](https://www.moesif.com/features/api-analytics), [monitoring](https://www.moesif.com/features/api-monitoring) and [log analysis](https://www.moesif.com/features/api-debugging) platform. \n\nThis package is a plugin for Express Gateway to easily add Moesif's API analytics to your APIs served by Express Gateway.\n\n## How to install\n\n- Follow [instructions for setting up Express Gateway](https://www.express-gateway.io/getting-started/)\n\n- Install express-gateway-plugin-moesif:\n  Within the folder of the Gateway created by Express Gateway, type in:\n  ```bash\n  npm install --save express-gateway-plugin-moesif\n  ```\n- Add the moesif plugin to `system.config.yml`\n\n  ```yml\n  plugins:\n    # express-gateway-plugin-example:\n    #   param1: 'param from system.config'\n    moesif:\n      applicationId: 'Your Moesif Application Id'\n  ```\n\nYour Moesif Application Id can be found in the [_Moesif Portal_](https://www.moesif.com/).\nAfter signing up for a Moesif account, your Moesif Application Id will be displayed during the onboarding steps. \n\nYou can always find your Moesif Application Id at any time by logging \ninto the [_Moesif Portal_](https://www.moesif.com/), click on the top right menu,\nand then clicking _Installation_.\n\n  Other configuration options includes,\n  - `debug`: turn on debug messages\n  - `sessionTokenHeader`: Set the HTTP header key that contains your API's Authorization token/API key. Moesif tries to detect sessions automatically. However, if we cannot detect it correctly, you can specify which header field to use.\n\n- Add moesif policy to whitelist of your `gateway.config.yml`\n\n  ```yml\n  policies:\n    - proxy\n    # other policies.\n    - moesif\n  ```\n\n- Add moesif policy to your pipelines also in the `gateway.config.yml`.\n  ```yml\n\n  pipelines:\n  - name: getting-started\n    apiEndpoints:\n      - api\n    policies:\n      - moesif:\n      - key-auth:\n      - proxy:\n          - action:\n              serviceEndpoint: httpbin\n              changeOrigin: true\n\n  ```\n\nTo capture all data for a pipeline, please make sure to put Moesif at the top of the pipeline. If You have multiple pipelines, be sure to add the `moesif` policy to each pipeline you want to capture data for.\n\n## Additional Info:\n\nThis plugin is a simple wrapper around the [moesif-express](https://www.moesif.com/docs/server-integration/express/) middleware.\n\nSince Express Gateway's configuration is designed to be declarative, some of the options from moesif-express that require a function are not ported over. We'll do so in the future.\n\nIn the mean time, if you need to use additional options, the easiest way is to fork this repo and add your required options to the `middlewareCreator.js` file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoesif%2Fexpress-gateway-plugin-moesif","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoesif%2Fexpress-gateway-plugin-moesif","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoesif%2Fexpress-gateway-plugin-moesif/lists"}