{"library":"swagger-stats","type":"library","category":null,"description":"Swagger-stats is a Node.js library for API telemetry and Application Performance Monitoring (APM). It traces REST API calls and responses, collecting performance, health, and usage statistics per API operation. It supports popular Node.js frameworks including Express, Fastify, Koa, Hapi, and Restify, detecting API operations based on Express routes or an optional OpenAPI (Swagger) specification. Key differentiators include a built-in telemetry UI for immediate monitoring, out-of-the-box integration with Prometheus/Grafana for monitoring and alerting, and Elasticsearch/Kibana for detailed API analytics. The current stable version is 0.99.7, indicating it's actively developed and approaching a 1.0 release, with a cadence of regular bug fixes and dependency updates, alongside occasional feature enhancements. It provides granular metrics to identify problematic endpoints, errors, and performance bottlenecks.","language":"javascript","status":"active","version":"0.99.7","tags":["javascript","api","observability","telemetry","node","express","koa","hapi","fastify"],"last_verified":"Wed May 27","install":[{"cmd":"npm install swagger-stats","imports":["import swaggerStats from 'swagger-stats';\n// Or for CommonJS:\nconst swaggerStats = require('swagger-stats');","import swaggerStats from 'swagger-stats';\napp.use(swaggerStats.express(options));\n// Or for CommonJS:\nconst swaggerStats = require('swagger-stats');\napp.use(swaggerStats.express(options));","import swaggerStats from 'swagger-stats';\napp.use(swaggerStats.express({ \n  name: 'my-api',\n  uriPath: '/swagger-stats' \n}));"]},{"cmd":"yarn add swagger-stats","imports":[]},{"cmd":"pnpm add swagger-stats","imports":[]}],"homepage":"https://swaggerstats.io","github":"https://github.com/slanatech/swagger-stats","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/swagger-stats","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/swagger-stats/compatibility"}}