
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.
A simple manifest-based fetch() API client building utility.
It is obvious in the sense it uses a staightforward, nearly obvious pattern to automatically build API clients from route definitions in a minimalist manifest. Conceived originally as part of fastify-api, which already provides a manifest compatible with manifetch based on your API route definitions.
$ npm i manifetch --save
const fetch = require('undici-fetch')
const manifetch = require('manifetch')
const prefix = 'https://jsonplaceholder.typicode.com'
const get = manifetch({ fetch, prefix })
const manifest = {
getPosts: ['GET', '/posts'],
getPost: ['GET', '/posts/:id'],
nestedDemonstration: {
getPosts: ['GET', '/posts'],
getPost: ['GET', '/posts/:id'],
},
}
const client = new Proxy(manifest, { get })
async function main () {
const { json: posts } = await client.getPosts()
const { json: post } = await client.getPost({ id: 10 })
console.log('First post out of collection:', posts[0])
console.log('Tenth post, individually requested', post)
}
main().then(() => process.exit())
fetch() usage with minor, sensible API enhancementsfetch()fastify-api and fastify-viteapplyParams() implementation with new fast-apply-params packageProxy instances on the client, prepopulate all wrappers on the serverMIT
FAQs
A simple manifest-based fetch() API client building utility.
The npm package manifetch receives a total of 9 weekly downloads. As such, manifetch popularity was classified as not popular.
We found that manifetch demonstrated a not healthy version release cadence and project activity because the last version was released 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.