package.json•2.49 kB
{
"name": "xhs-cli",
"version": "1.0.9",
"description": "面向个人创作者的小红书 CLI 工具和 MCP 服务器 - 帮助创作者管理、分析和发布小红书内容,支持自动生成封面图片",
"type": "module",
"main": "dist/mcp/index.js",
"types": "dist/index.d.ts",
"bin": {
"xhs": "dist/cli.js"
},
"files": [
"dist",
"README.md",
"LICENSE"
],
"scripts": {
"build": "tsc && npm run copy:assets",
"copy:assets": "node -e \"const fs=require('fs');const path=require('path');function copyDir(src,dest){if(!fs.existsSync(dest))fs.mkdirSync(dest,{recursive:true});const entries=fs.readdirSync(src,{withFileTypes:true});for(const entry of entries){const srcPath=path.join(src,entry.name);const destPath=path.join(dest,entry.name);if(entry.isDirectory()){copyDir(srcPath,destPath);}else{fs.copyFileSync(srcPath,destPath);}}}copyDir('src/prompts','dist/prompts');copyDir('src/templates','dist/templates');\"",
"postpublish": "git checkout README.md",
"xhs": "tsx src/cli.ts",
"mcp": "node dist/mcp/index.js",
"setup": "tsx src/scripts/setup_mcp.ts",
"preview": "tsx src/scripts/preview_templates.ts",
"test": "tsx src/test/_test.ts",
"test:cover": "tsx src/test/test_cover_generation.ts"
},
"keywords": [
"mcp",
"model-context-protocol",
"xiaohongshu",
"xhs",
"小红书",
"content-creator",
"social-media",
"automation",
"cli",
"crawler",
"cover-generation",
"image-generation"
],
"author": "Joo <1546635571@qq.com>",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/joohw/xhs-cli.git"
},
"bugs": {
"url": "https://github.com/joohw/xhs-cli/issues"
},
"homepage": "https://github.com/joohw/xhs-cli#readme",
"engines": {
"node": ">=18.0.0"
},
"dependencies": {
"@modelcontextprotocol/sdk": "^1.0.4",
"@resvg/resvg-js": "^2.5.1",
"@types/html2canvas": "^0.5.35",
"express": "^5.1.0",
"html2canvas": "^1.4.1",
"jsqr": "^1.4.0",
"open": "^10.2.0",
"opentype.js": "^1.3.4",
"pngjs": "^7.0.0",
"puppeteer-core": "^24.29.1",
"qrcode-terminal": "^0.12.0",
"react": "^19.2.0",
"satori": "^0.18.3"
},
"devDependencies": {
"@types/express": "^5.0.5",
"@types/node": "^24.10.0",
"@types/open": "^6.1.0",
"@types/qrcode-terminal": "^0.12.2",
"@types/react": "^19.2.2",
"tsx": "^4.7.0",
"typescript": "^5.3.3"
}
}