
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
@coxy/axios-pool
Advanced tools
@coxy/axios-pool is a small but powerful library for managing multiple Axios instances with built-in failover, load balancing, and parallel request capabilities.
npm install @coxy/axios-pool
import { createAxiosPool } from '@coxy/axios-pool'
const pool = createAxiosPool(
{ sendAll: true },
'https://node1.example.com',
'https://node2.example.com'
)
const response = await pool.get('/health')
import { createAxiosPool } from '@coxy/axios-pool'
const pool = createAxiosPool(
{ sendAll: false, timeout: 1000 },
'https://primary-node.example.com',
'https://backup-node.example.com'
)
const response = await pool.post('/data', { key: 'value' })
import { createAxiosPool } from '@coxy/axios-pool'
const pool = createAxiosPool(
{
sendAll: true,
validateResponse: (data) => {
if (!data || typeof data !== 'object' || data.status !== 'ok') {
throw new Error('Invalid response')
}
},
},
'https://node1.example.com',
'https://node2.example.com'
)
const response = await pool.get('/check')
import { RpcAxiosPool } from '@coxy/axios-pool'
const rpcPool = new RpcAxiosPool([
'https://rpc1.example.com',
'https://rpc2.example.com'
])
const blockNumber = await rpcPool.request('eth_blockNumber')
createAxiosPool(initialOptions?: AxiosPoolConfig, ...configs: (AxiosInstance | string)[]): AxiosInstanceCreates a dynamic Axios proxy with failover and/or parallel strategies.
sendAll?: boolean — If true, sends requests to all instances and returns the first valid one. Defaults to true.timeout?: number — Delay in milliseconds before retrying the next instance (when sendAll: false). Defaults to 0.validateResponse?: (data: any) => void — Optional function to validate the returned response.RpcAxiosPoolWrapper for sending JSON-RPC 2.0 requests using an Axios pool.
new RpcAxiosPool(nodes: (AxiosInstance | string)[], options?: AxiosPoolConfig)
request(method: string, ...params: any[]): Promise<AxiosResponse> — Sends a JSON-RPC 2.0 request.MIT
Fun fact: Axios itself is named after the Greek word "ἄξιος" (áxios), meaning "worthy" — reflecting its goal to be a worthy HTTP client!
FAQs
create axios pool requests
The npm package @coxy/axios-pool receives a total of 1 weekly downloads. As such, @coxy/axios-pool popularity was classified as not popular.
We found that @coxy/axios-pool demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.