Skip to content
Proyectos

Acerca de

Provide Pixiv backend proxy & frontend service based on serverless technology

Desarrollo web y de aplicaciones

Cómo se miden estas cifras

Crecimiento de estrellas medido

in 24h
0
in 7 days
0
in 15 days
-1
in 1 month
Recopilando historial

Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.

README.md

Original
PixivNow Logo

PixivNow - Now, everyone can enjoy Pixiv!

Deploy / 部署

Docker (推荐)

git clone https://github.com/FreeNowOrg/PixivNow.git
cd PixivNow
docker compose up -d

服务将在 http://localhost:3000 启动。

代码更新后重新构建:

git pull && docker compose up -d --build

Vercel

Deploy with Vercel

点击上方按钮一键部署,或 Fork 后在 Vercel 导入项目。

如果打算公开你的部署,请小心你的账单。PixivNow 可能会被滥用来大量下载图片,导致流量激增和高额费用。

手动构建

需要 Node.js LTS 和 pnpm。

pnpm install
pnpm build
node .output/server/index.mjs

Environment Variables / 环境变量

变量 说明 默认值
NUXT_PUBLIC_PXIMG_BASEURL_I i.pximg.net 图片代理地址 /-/
NUXT_PUBLIC_PXIMG_BASEURL_S s.pximg.net 图片代理地址 /~/
NUXT_PUBLIC_GOOGLE_ANALYTICS_ID Google Analytics ID —
NUXT_UA_BLACKLIST 屏蔽的 UA 模式 (JSON 数组) —

Docker 部署时可在 docker-compose.yml 中添加 environment 配置。

API

AJAX API 的请求格式与示例:pixiv-web-api.md

鉴权

通过以下方式传递用户 token 鉴权(二选一):

  • Header Authorization
  • Cookie PHPSESSID

请求路径 /ajax/* 的返回结果与 https://pixiv.net/ajax/* 行为一致。

/api/illust/random

返回随机图片(/ajax/illust/discovery 的语法糖)。

参数 类型 说明
max number 返回图片的个数
mode 'all' | 'safe' | 'r18' r18 需登录且账号设置允许
format 'image' | 'json' Accept 包含 image 时默认为 image,image 模式返回重定向

/api/ranking

/ranking.php 的重定向。

/api/user

辅助接口,通过传入的 token,返回当前登录用户信息 (globalData->userData)。

UI风格指南

Neubrutalism / 新野兽派

Design Guide


For communication and learning only.

All data & pictures from query: ©pixiv Inc. & original authors

Source code licensed under the Apache License 2.0.

The PixivNow logo and brand assets are licensed under CC BY-NC-SA 4.0 — not the Apache License. See app/assets/LICENSE for details.

"Pixiv" is a trademark of pixiv Inc. This project is not affiliated with, endorsed by, or sponsored by pixiv Inc.

Explorar proyectos relacionados

Cargando…