
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
@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.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.