
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
@newskit-render/api
Advanced tools
Helper package to make setting up and using Apollo Client with CPS (formerly Main) or NewsKit API easier.
import { createApolloClient, ClientTypes } from '@newskit-render/api'
// MAIN with cookies
const mainApolloClient = await createApolloClient(
ClientTypes.main,
context.req.headers.cookie
)
// NKAPI with cookies
const nkApiApolloClient = await createApolloClient(
ClientTypes.nkapi,
context.req.headers.cookie
)
// NKAPI without cookies
const apolloClient = await createApolloClient(ClientTypes.nkapi)
// pass custom set up
const apolloClient = await createApolloClient({
initialState: {},
uri: process.env.NEWSKIT_API_ENV_URL,
headers: {
'x-api-key': process.env.NEWSKIT_API_X_API_KEY,
},
addTypename: false,
})
import { getApolloClient } from '@newskit-render/api'
const shouldUseNewskitApi = true
const apolloClient = await getApolloClient(
shouldUseNewskitApi,
req.headers.cookie
)
For MAIN and NewsKit API authentication see MAIN and NewsKit API. For Step-up MFA see @newskit-render/my-account
FAQs
helper package for accessing MAIN and NK API data
The npm package @newskit-render/api receives a total of 1,252 weekly downloads. As such, @newskit-render/api popularity was classified as popular.
We found that @newskit-render/api 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
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.