{"id":47020,"library":"axios-api-profiler","title":"axiox-api-profiler","description":"Axios interceptor that profiles HTTP responses for timing information, including network time and axios handling time. Version 1.1.2 (stable, last release in 2019) supports Node >=8 and browsers. Key differentiators: simple integration via interceptor, configurable per-call or instance-level profiling, ability to retrieve all profiling data via defaultApiProfilerInstance. Minimal dependencies (only requires axios). Provides console.log output by default but can be suppressed.","status":"active","version":"1.1.2","language":"javascript","source_language":"en","source_url":"https://github.com/anubhavsrivastava/axios-api-profiler","tags":["javascript","axios","middleware","axios-ecosystem","axios-middleware","axios-rest","axios-instance","axios-plugin"],"install":[{"cmd":"npm install axios-api-profiler","lang":"bash","label":"npm"},{"cmd":"yarn add axios-api-profiler","lang":"bash","label":"yarn"},{"cmd":"pnpm add axios-api-profiler","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"peer dependency for intercepting HTTP requests","package":"axios","optional":false}],"imports":[{"note":"Default export is a function, use default import or require with .default","wrong":"const { axiosRequestProfiler } = require('axios-api-profiler')","symbol":"default (axiosRequestProfiler)","correct":"import axiosRequestProfiler from 'axios-api-profiler'"},{"note":"Named export, not default","wrong":"import defaultApiProfilerInstance from 'axios-api-profiler'","symbol":"defaultApiProfilerInstance","correct":"import { defaultApiProfilerInstance } from 'axios-api-profiler'"},{"note":"TypeScript type export; only use in type positions","wrong":"import { AxiosRequestProfiler } from 'axios-api-profiler' (if used as runtime value)","symbol":"AxiosRequestProfiler (type)","correct":"import type { AxiosRequestProfiler } from 'axios-api-profiler'"}],"quickstart":{"code":"import axios from 'axios';\nimport axiosRequestProfiler from 'axios-api-profiler';\naxiosRequestProfiler(axios);\naxios.get('https://jsonplaceholder.typicode.com/posts/1')\n  .then(response => {\n    console.log('Data:', response.data);\n  })\n  .catch(error => {\n    console.error('Error:', error.message);\n  });","lang":"javascript","description":"Demonstrates importing the default profiler, attaching it to axios, and making a GET request with timing logs."},"warnings":[{"fix":"Run 'npm install axios' if not already present.","message":"Library requires axios as peer dependency; ensure axios is installed in your project.","severity":"breaking","affected_versions":">=1.0.0"},{"fix":"Use the same instance throughout your app or avoid relying on isolated state.","message":"defaultApiProfilerInstance is a module-level singleton; multiple imports share the same instance.","severity":"gotcha","affected_versions":">=0.0.1"},{"fix":"Use exact strings: 'ignoreApiProfiling' and 'ignoreApiProfilingLogs' as config keys.","message":"ignoreApiProfiling and ignoreApiProfilingLogs are configured via axios config, but named inconsistently with other axios options.","severity":"deprecated","affected_versions":">=1.0.0"}],"env_vars":null,"search_vec":"'1.1.2':22 '2019':27 '8':30 'abil':48 'api':3 'axio':5,18,60,71,74,77,80,83,86 'axios-ecosystem':73 'axios-inst':82 'axios-middlewar':76 'axios-plugin':85 'axios-rest':79 'axiox':2 'axiox-api-profil':1 'browser':32 'call':42 'configur':39 'console.log':62 'data':53 'default':65 'defaultapiprofilerinst':55 'depend':57 'differenti':34 'ecosystem':75 'handl':19 'http':9 'includ':14 'inform':13 'instanc':45,84 'instance-level':44 'integr':36 'interceptor':6,38 'javascript':70 'key':33 'last':24 'level':46 'middlewar':72,78 'minim':56 'network':15 'node':29 'output':63 'per':41 'per-cal':40 'plugin':87 'profil':4,8,47,52 'provid':61 'releas':25 'requir':59 'respons':10 'rest':81 'retriev':50 'simpl':35 'stabl':23 'support':28 'suppress':69 'time':12,16,20 'version':21 'via':37,54","created_at":"2026-06-07T16:49:20.634337+00:00","updated_at":"2026-06-07T16:49:20.634337+00:00","problems":[{"fix":"Run 'npm install axios-api-profiler' or check spelling.","cause":"Missing npm install or incorrect package name (typo).","error":"Cannot find module 'axios-api-profiler'"},{"fix":"Use 'import axiosRequestProfiler from 'axios-api-profiler'' (default import).","cause":"Importing library as named export instead of default.","error":"axiosRequestProfiler is not a function"},{"fix":"Change to 'import { defaultApiProfilerInstance } from 'axios-api-profiler'.","cause":"Using default import instead of named import.","error":"defaultApiProfilerInstance is undefined"}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/anubhavsrivastava/axios-api-profiler#readme","github":"https://github.com/anubhavsrivastava/axios-api-profiler","docs":null,"changelog":null,"pypi":null,"npm":"axios-api-profiler","openapi_spec":null,"status_page":null,"smithery":null,"categories":["testing"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-07","next_check":"2026-09-05","install_tag":null}}