{"id":14989308,"url":"https://github.com/apitally/apitally-js","last_synced_at":"2026-04-02T18:50:20.638Z","repository":{"id":207568158,"uuid":"719567714","full_name":"apitally/apitally-js","owner":"apitally","description":"Simple API monitoring \u0026 analytics for Node.js \u0026 Bun apps","archived":false,"fork":false,"pushed_at":"2026-03-28T04:32:06.000Z","size":2200,"stargazers_count":49,"open_issues_count":2,"forks_count":7,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-28T07:41:12.358Z","etag":null,"topics":["api","api-analytics","api-logging","api-monitoring","api-observability","bun","elysia","express","expressjs","fastify","fastify-plugin","hapi","hono","koa","monitoring","nestjs","nodejs","rest-api"],"latest_commit_sha":null,"homepage":"https://apitally.io","language":"TypeScript","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/apitally.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-11-16T12:53:08.000Z","updated_at":"2026-03-28T04:32:10.000Z","dependencies_parsed_at":"2026-01-02T11:07:38.495Z","dependency_job_id":null,"html_url":"https://github.com/apitally/apitally-js","commit_stats":{"total_commits":129,"total_committers":3,"mean_commits":43.0,"dds":"0.41860465116279066","last_synced_commit":"876428df31c2cd8aba3b15d04eb9fde2112bcd18"},"previous_names":["apitally/nodejs-client","apitally/apitally-js"],"tags_count":68,"template":false,"template_full_name":null,"purl":"pkg:github/apitally/apitally-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apitally%2Fapitally-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apitally%2Fapitally-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apitally%2Fapitally-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apitally%2Fapitally-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/apitally","download_url":"https://codeload.github.com/apitally/apitally-js/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apitally%2Fapitally-js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31313432,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"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","api-analytics","api-logging","api-monitoring","api-observability","bun","elysia","express","expressjs","fastify","fastify-plugin","hapi","hono","koa","monitoring","nestjs","nodejs","rest-api"],"created_at":"2024-09-24T14:18:06.835Z","updated_at":"2026-04-02T18:50:20.624Z","avatar_url":"https://github.com/apitally.png","language":"TypeScript","funding_links":[],"categories":["Packages","Monitoring","Plugins"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://apitally.io\" target=\"_blank\"\u003e\n    \u003cpicture\u003e\n      \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://assets.apitally.io/logos/logo-horizontal-new-dark.png\"\u003e\n      \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"https://assets.apitally.io/logos/logo-horizontal-new-light.png\"\u003e\n      \u003cimg alt=\"Apitally logo\" src=\"https://assets.apitally.io/logos/logo-horizontal-new-light.png\" width=\"220\"\u003e\n    \u003c/picture\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\u003cb\u003eAPI monitoring \u0026 analytics made simple\u003c/b\u003e\u003c/p\u003e\n\u003cp align=\"center\" style=\"color: #ccc;\"\u003eMetrics, logs, traces, and alerts for your APIs — with just a few lines of code.\u003c/p\u003e\n\u003cbr\u003e\n\u003cp\u003e\n\u003cpicture\u003e\n  \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://assets.apitally.io/screenshots/overview-dark.png\"\u003e\n  \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"https://assets.apitally.io/screenshots/overview-light.png\"\u003e\n  \u003cimg alt=\"Apitally dashboard\" src=\"https://assets.apitally.io/screenshots/overview-light.png\"\u003e\n\u003c/picture\u003e\n\u003c/p\u003e\n\u003cbr\u003e\n\n# Apitally SDK for Node.js\n\n[![Tests](https://github.com/apitally/apitally-js/actions/workflows/tests.yaml/badge.svg?event=push)](https://github.com/apitally/apitally-js/actions)\n[![Codecov](https://codecov.io/gh/apitally/apitally-js/graph/badge.svg?token=j5jqlrL7Pd)](https://codecov.io/gh/apitally/apitally-js)\n[![npm](https://img.shields.io/npm/v/apitally?logo=npm\u0026color=%23cb0000)](https://www.npmjs.com/package/apitally)\n\nApitally is a simple API monitoring and analytics tool that makes it easy to understand API usage, monitor performance, and troubleshoot issues.\nGet started in minutes by just adding a few lines of code. No infrastructure changes required, no dashboards to build.\n\nLearn more about Apitally on our 🌎 [website](https://apitally.io) or check out\nthe 📚 [documentation](https://docs.apitally.io).\n\n## Key features\n\n### API analytics\n\nTrack traffic, error and performance metrics for your API, each endpoint and\nindividual API consumers, allowing you to make informed, data-driven engineering\nand product decisions.\n\n### Request logs\n\nDrill down from insights to individual API requests or use powerful search and filters to\nfind specific requests. View correlated application logs and traces for a complete picture\nof each request, making troubleshooting faster and easier.\n\n### Error tracking\n\nUnderstand which validation rules in your endpoints cause client errors. Capture\nerror details and stack traces for 500 error responses, and have them linked to\nSentry issues automatically.\n\n### API monitoring \u0026 alerts\n\nGet notified immediately if something isn't right using custom alerts, synthetic\nuptime checks and heartbeat monitoring. Alert notifications can be delivered via\nemail, Slack and Microsoft Teams.\n\n## Supported frameworks\n\n| Framework                                           | Supported versions    | Setup guide                                            |\n| --------------------------------------------------- | --------------------- | ------------------------------------------------------ |\n| [**Express**](https://github.com/expressjs/express) | `4.x`, `5.x`          | [Link](https://docs.apitally.io/setup-guides/express)  |\n| [**Fastify**](https://github.com/fastify/fastify)   | `4.x`, `5.x`          | [Link](https://docs.apitally.io/setup-guides/fastify)  |\n| [**NestJS**](https://github.com/nestjs/nest)        | `9.x`, `10.x`, `11.x` | [Link](https://docs.apitally.io/setup-guides/nestjs)   |\n| [**AdonisJS**](https://github.com/adonisjs/core)    | `6.x`                 | [Link](https://docs.apitally.io/setup-guides/adonisjs) |\n| [**Hono**](https://github.com/honojs/hono) \\*       | `4.x`                 | [Link](https://docs.apitally.io/setup-guides/hono)     |\n| [**H3**](https://github.com/h3js/h3)                | `2.x`                 | [Link](https://docs.apitally.io/setup-guides/h3)       |\n| [**Elysia**](https://github.com/elysiajs/elysia)    | `1.x`                 | [Link](https://docs.apitally.io/setup-guides/elysia)   |\n| [**Koa**](https://github.com/koajs/koa)             | `2.x`, `3.x`          | [Link](https://docs.apitally.io/setup-guides/koa)      |\n| [**Hapi**](https://github.com/hapijs/hapi)          | `21.x`                | [Link](https://docs.apitally.io/setup-guides/hapi)     |\n\n\\* For Hono on Cloudflare Workers use our [Serverless SDK](https://github.com/apitally/apitally-js-serverless) instead.\n\nApitally also supports many other web frameworks in [Python](https://github.com/apitally/apitally-py), [Go](https://github.com/apitally/apitally-go), [.NET](https://github.com/apitally/apitally-dotnet) and [Java](https://github.com/apitally/apitally-java) via our other SDKs.\n\n## Getting started\n\nIf you don't have an Apitally account yet, first [sign up here](https://app.apitally.io/?signup). Then create an app in the Apitally dashboard. You'll see detailed setup instructions with code snippets you can copy and paste. These also include your client ID.\n\nSee the [SDK reference](https://docs.apitally.io/sdk-reference/javascript) for all available configuration options, including how to mask sensitive data, customize request logging, and more.\n\n### Express\n\nInstall the SDK:\n\n```bash\nnpm install apitally\n```\n\nThen add the Apitally middleware to your application:\n\n```javascript\nconst express = require(\"express\");\nconst { useApitally } = require(\"apitally/express\");\n\nconst app = express();\napp.use(express.json());\n\nuseApitally(app, {\n  clientId: \"your-client-id\",\n  env: \"dev\", // or \"prod\" etc.\n});\n```\n\nFor further instructions, see our\n[setup guide for Express](https://docs.apitally.io/setup-guides/express).\n\n### Fastify\n\nInstall the SDK with the `fastify-plugin` peer dependency:\n\n```bash\nnpm install apitally fastify-plugin\n```\n\nThen register the Apitally plugin with your application:\n\n```javascript\nimport Fastify from \"fastify\";\nimport { apitallyPlugin } from \"apitally/fastify\";\n\nconst fastify = Fastify({ logger: true });\n\nawait fastify.register(apitallyPlugin, {\n  clientId: \"your-client-id\",\n  env: \"dev\", // or \"prod\" etc.\n});\n```\n\n_Note:_ If your project uses CommonJS you need to wrap your routes in a plugin, so Apitally can detect them.\n\nFor further instructions, see our\n[setup guide for Fastify](https://docs.apitally.io/setup-guides/fastify).\n\n### NestJS\n\nInstall the SDK:\n\n```bash\nnpm install apitally\n```\n\nThen add the Apitally middleware to your application:\n\n```javascript\nimport { NestFactory } from \"@nestjs/core\";\nimport { useApitally } from \"apitally/nestjs\";\nimport { AppModule } from \"./app.module\";\n\nasync function bootstrap() {\n  const app = await NestFactory.create(AppModule);\n\n  await useApitally(app, {\n    clientId: \"your-client-id\",\n    env: \"dev\", // or \"prod\" etc.\n  });\n\n  // ...\n}\n\nbootstrap();\n```\n\nFor further instructions, see our\n[setup guide for NestJS](https://docs.apitally.io/setup-guides/nestjs).\n\n### AdonisJS\n\nInstall the SDK:\n\n```bash\nnpm install apitally\n```\n\nThen use the following Ace command to configure Apitally in your AdonisJS application:\n\n```bash\nnode ace configure apitally/adonisjs\n```\n\nFor further instructions, see our\n[setup guide for AdonisJS](https://docs.apitally.io/setup-guides/adonisjs).\n\n### Hono\n\nInstall the SDK:\n\n```bash\nnpm install apitally\n```\n\nThen add the Apitally middleware to your application:\n\n```javascript\nimport { Hono } from \"hono\";\nimport { useApitally } from \"apitally/hono\";\n\nconst app = new Hono();\n\nuseApitally(app, {\n  clientId: \"your-client-id\",\n  env: \"dev\", // or \"prod\" etc.\n});\n```\n\nFor further instructions, see our\n[setup guide for Hono](https://docs.apitally.io/setup-guides/hono).\n\n### H3\n\nInstall the SDK:\n\n```bash\nnpm install apitally\n```\n\nThen register the Apitally plugin with your application:\n\n```javascript\nimport { H3 } from \"h3\";\nimport { apitallyPlugin } from \"apitally/h3\";\n\nconst app = new H3({\n  plugins: [\n    apitallyPlugin({\n      clientId: \"your-client-id\",\n      env: \"dev\", // or \"prod\" etc.\n    }),\n  ],\n});\n```\n\nFor further instructions, see our\n[setup guide for H3](https://docs.apitally.io/setup-guides/h3).\n\n### Elysia\n\nInstall the SDK:\n\n```bash\nnpm install apitally\n```\n\nThen add the Apitally plugin to your application:\n\n```javascript\nimport { Elysia } from \"elysia\";\nimport { apitallyPlugin } from \"apitally/elysia\";\n\nconst app = new Elysia()\n  .use(\n    apitallyPlugin({\n      clientId: \"your-client-id\",\n      env: \"dev\", // or \"prod\" etc.\n    }),\n  )\n  .get(\"/\", () =\u003e \"hello\");\n```\n\nFor further instructions, see our\n[setup guide for Elysia](https://docs.apitally.io/setup-guides/elysia).\n\n### Koa\n\nInstall the SDK:\n\n```bash\nnpm install apitally\n```\n\nThen add the Apitally middleware to your application:\n\n```javascript\nconst Koa = require(\"koa\");\nconst { useApitally } = require(\"apitally/koa\");\n\nconst app = new Koa();\n\nuseApitally(app, {\n  clientId: \"your-client-id\",\n  env: \"dev\", // or \"prod\" etc.\n});\n```\n\nFor further instructions, see our\n[setup guide for Koa](https://docs.apitally.io/setup-guides/koa).\n\n### Hapi\n\nInstall the SDK:\n\n```bash\nnpm install apitally\n```\n\nThen register the Apitally plugin with your application:\n\n```javascript\nconst Hapi = require(\"@hapi/hapi\");\nconst { apitallyPlugin } = require(\"apitally/hapi\");\n\nconst init = async () =\u003e {\n  const server = Hapi.server({\n    port: 3000,\n    host: \"localhost\",\n  });\n\n  await server.register({\n    plugin: apitallyPlugin({\n      clientId: \"your-client-id\",\n      env: \"dev\", // or \"prod\" etc.\n    }),\n  });\n};\n\ninit();\n```\n\nFor further instructions, see our\n[setup guide for Hapi](https://docs.apitally.io/setup-guides/hapi).\n\n## Getting help\n\nIf you need help please\n[create a new discussion](https://github.com/orgs/apitally/discussions/categories/q-a)\non GitHub or email us at [support@apitally.io](mailto:support@apitally.io). We'll get back to you as soon as possible.\n\n## License\n\nThis library is licensed under the terms of the [MIT license](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapitally%2Fapitally-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapitally%2Fapitally-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapitally%2Fapitally-js/lists"}