npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@ryan-myp/content-platform

v1.0.77

Published

AI 星火内容创作平台一键部署 — 配置中转站 Key 后拉取模型,本地免费免登录(npx 启动 FastAPI + React)

Downloads

13,967

Readme

AI 星火 — npx 一键部署

AI 驱动的智能研发与创作平台(FastAPI + React),无需购买服务器,通过 npx 一键在本地/任何 Node 环境启动完整服务。

快速开始

# 完整启动(前端 + 后端)
npx @ryan-myp/content-platform web

# 指定端口
npx @ryan-myp/content-platform web --port 3000 --backend-port 8888

# 仅启动后端
npx @ryan-myp/content-platform backend

# 仅启动前端(对接已有后端)
npx @ryan-myp/content-platform frontend --api http://127.0.0.1:8888

# 环境检查
npx @ryan-myp/content-platform doctor

工作原理

npx @ryan-myp/content-platform web
  ├─ ① 检测系统 Python 3.10+
  ├─ ② 引导/复用 .venv(首次自动 pip install requirements.txt)
  ├─ ③ 启动 Python 后端(FastAPI :8888)
  └─ ④ 启动前端静态服务(内置 dist,SPA fallback + /api 反向代理)

参考 DeepSeek Harness(npx @deepseek-ai/dsh web)的部署模式:

  • CLI 是纯 Node.js 引导器,零平台二进制
  • 前端 dist 内置于 npm 包(Vite 构建产物 ~7MB)
  • Python 环境本地管理(venv),不打包重型依赖
  • 前端 API 同源部署(/api 相对路径),免 CORS

部署到云端(可选)

npx 包天然可在任何 Node 环境运行:

# 云服务器 / GitHub Codespaces / 免费 Node 沙箱
npx @ryan-myp/content-platform web --port 8080

配合 pm2/forever 可后台常驻:

npm i -g pm2
pm2 start "npx @ryan-myp/content-platform web" --name code-platform

发布到 npm

cd deploy-cli
npm login
npm publish --access public

发布前确保:

  1. frontend-dist/ 已包含最新前端构建(cd ../frontend && npx vite build
  2. package.json 版本号已更新

环境要求

| 依赖 | 版本 | 说明 | |------|------|------| | Node.js | >= 18 | npx 运行环境 | | Python | >= 3.10 | 后端运行环境(首次自动建 venv) | | ffmpeg | 可选 | 视频/音频处理(未装时相关功能降级) |

目录结构

deploy-cli/
├── package.json        # npm 包定义(bin: code-platform)
├── bin/cli.js          # npx 入口(Commander CLI)
├── lib/
│   ├── bootstrap.js    # Python 环境引导(venv + pip install)
│   ├── backend.js      # 后端启动 + 健康等待
│   └── server.js       # SPA 静态服务 + /api 反向代理
└── frontend-dist/      # 前端构建产物(Vite dist)