
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
TypeScript Interface for Index Supply.
npm i idxs
IndexSupplyInstantiate and use the IndexSupply client to fetch data from the Index Supply API.
import { IndexSupply } from 'idxs'
const is = IndexSupply.create()
// Fetch transactions
const txs = await is.fetch({
query: 'select hash, "from", "to", value from txs where chain = 1 limit 10',
})
console.log(txs.rows)
// Fetch Transfer events with ABI signature
const transfers = await is.fetch({
query: 'select "from", "to", value from transfer where chain = 1 limit 10',
signatures: ['event Transfer(address indexed from, address indexed to, uint256 value)'],
})
console.log(transfers.rows)
// Pagination with cursor
const next = await is.fetch({
query: 'select hash, "from", "to", value from txs where chain = 1 limit 10',
cursor: txs.cursor,
})
// Live streaming
for await (const result of is.live({
query: 'select hash, "from", "to" from txs where chain = 1 limit 10',
}))
console.log(result.rows)
QueryBuilderidxs exports a Kysely-based type-safe query builder.
import { IndexSupply, QueryBuilder } from 'idxs'
const is = IndexSupply.create()
const qb = QueryBuilder.from(is)
// Query standard tables
const txs = await qb
.selectFrom('txs')
.select(['hash', 'from', 'to', 'value'])
.where('chain', '=', 1)
.limit(10)
.execute()
// Query with event signatures
const transfers = await qb
.withSignatures(['event Transfer(address indexed from, address indexed to, uint256 value)'])
.selectFrom('transfer')
.select(['from', 'to', 'value'])
.where('chain', '=', 1)
.limit(100)
.execute()
// Pagination with cursor
const next = await qb
.atCursor(txs.cursor)
.selectFrom('txs')
.select(['hash'])
.limit(10)
.execute()
// Live streaming
for await (const txs of qb
.selectFrom('txs')
.select(['hash', 'from', 'to', 'value'])
.where('chain', '=', 1)
.stream()
)
console.log(txs)
TODO
MIT
FAQs
TypeScript Interface for [Index Supply](https://indexsupply.net).
We found that idxs 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

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.