
Security News
The Code You Didn't Write Is Still Yours to Defend
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.
pixiv-api-wrapper
Advanced tools
A type safe wrapper for Pixiv App API.
It recommended you authenticate with Refresh Token as ID authentication can easily produce errors in from browser processes. To retrieve your Refresh Token you may try to authenticate through Options 2 or 3 or through [another program]1.
const client = await PixivApi.create("<your refresh token>");
const browser = await puppeteer.launch({ headless: 'new' });
const client = await PixivApi.create({ userId, password }, browser);
const client = await PixivApi.create({ userId, password });
const auth = client.Auth.getAuthentication();
const { accessToken, refreshToken, user } = auth;
const illustDetail = await client.Illust.detail("<artworkId>");
const illustDetail = await client.Illust.detail("<artworkId>");
const downloadResults = await Utils.downloadIllusts(illustDetail);
for (const result of downloadResults) {
if (result.status == 'fulfilled') {
const { data, metadata: { fileName, fileExtension } } = result.value;
// save to file or do something else
fs.writeFileSync(`${fileName}.${fileExtension}`, data);
} else {
const { reason } = result;
// handle 'rejected'
}
}
const ugoiraMetadata = await client.Ugoira.metadata("<artworkId>");
const { metadata: { fileName, fileExtension }, data } = await Utils.downloadUgoira(ugoiraMetadata);
fs.writeFileSync(`${fileName}.${fileExtension}`, data);
[1]: Puppeteer is optional, however it is required if you choose to authenticate by ID in a headless browser. Recommended to use 'puppeteer-chromium-resolver' if you find difficulty.
[2]: If no puppeteer browser is provided, you will be prompted to enter a code by having to manually complete the login in the opened browser [[source]]1:
FAQs
A type safe wrapper for Pixiv App API
The npm package pixiv-api-wrapper receives a total of 4 weekly downloads. As such, pixiv-api-wrapper popularity was classified as not popular.
We found that pixiv-api-wrapper 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
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.