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

@musowahyudi/deepseek-labs

v2.1.5

Published

Event-Driven Self-Improving AI Pipeline with DeepSeek Web Integration

Readme

Codex DeepSeek Bridge

一个本地 DeepSeek Web 网关,把 chat.deepseek.com 的网页会话包装成 Codex 可用的 OpenAI Responses 兼容接口。

它提供:

  • 可视化登录、状态页和快捷测试
  • DeepSeek Web 凭证捕获与本地保存
  • /v1/models
  • /v1/chat/completions
  • /v1/responses
  • 基础工具调用适配:Responses 事件和 OpenAI Chat tool_calls
  • 内置 DeepSeekHashV1 PoW 源文件,无需额外配置 PoW 路径

注意:这是 DeepSeek Web 的本地桥接方案,不是 DeepSeek 官方 API。工具调用依赖提示词输出 <tool_call> 或可解析的工具调用意图后由网关转换成 Responses 事件 / Chat tool_calls,稳定性不等同于原生工具调用模型。

使用限制

本项目公开代码,但不是商业授权项目。

  • 仅允许个人学习、研究和非商业用途。
  • 未经作者书面许可,不得用于销售、付费服务、商业集成、企业或组织生产环境。
  • 软件按“现状”提供,不提供任何担保。
  • 因使用本项目导致的账号风险、服务限制、数据损失、法律责任或其他损失,作者不承担责任。

完整条款见 LICENSE。

依赖说明

你需要准备:

  • Node.js 18 或更高版本
  • npm
  • Chrome 或 Microsoft Edge
  • 一个可登录的 DeepSeek Web 账号
  • Codex Desktop / Codex CLI,并支持自定义 model_provider

安装 npm 依赖:

npm install

本项目直接 npm 依赖:

playwright-core

node_modules/ 不会提交到仓库。克隆项目后需要自己执行 npm install。

PoW 运行所需的 WASM 常量已经内置在:

src/deepseek-pow-wasm.mjs

无需再准备额外的 PoW 文件或环境变量。

安全提醒

不要提交或公开这些目录:

.deepseek-auth/
.deepseek-browser-profile/
node_modules/
_refs/

.deepseek-auth/credentials.json 里包含 DeepSeek Web 的 cookie 和 bearer,泄露后等同于泄露登录态。

登录 DeepSeek

npm run login

脚本会打开浏览器。登录 chat.deepseek.com 后,凭证会保存到:

.deepseek-auth/credentials.json

也可以打开可视化页面后点击登录:

npm start

然后访问:

http://127.0.0.1:8787

启动本地网关

npm start

默认地址:

http://127.0.0.1:8787/v1

模型名:

deepseek-web/deepseek-chat
deepseek-web/deepseek-reasoner

Codex 配置

model_provider = "deepseek"
model = "deepseek-web/deepseek-chat"

[model_providers.deepseek]
name = "deepseek"
base_url = "http://127.0.0.1:8787/v1"
wire_api = "responses"
requires_openai_auth = true
api_key = "deepseek"

改完配置后,建议重新打开一个 Codex 会话。

本地测试

普通 Responses:

$body = @{ model="deepseek-web/deepseek-chat"; stream=$false; input="Reply exactly: ok" } | ConvertTo-Json
Invoke-RestMethod -Method Post -Uri http://127.0.0.1:8787/v1/responses -ContentType "application/json; charset=utf-8" -Body $body

可视化页面内也提供快捷测试:

  • 普通对话
  • Responses
  • Chat Completions tool_calls
  • Function 工具
  • Custom 工具

第三方组件

本项目直接依赖:

  • playwright-core,用于连接 Chrome/Edge 并捕获 DeepSeek Web 登录凭证。

运行时还会使用:

  • Chrome 或 Microsoft Edge
  • DeepSeek Web
  • Codex 的 Responses 兼容配置
  • OpenAI Chat Completions 兼容工具调用

第三方组件和在线服务分别适用它们自己的许可证和服务条款。

友情链接

许可证

本项目使用自定义非商业许可证。允许个人学习、研究和非商业使用;禁止未经授权的商业用途;不提供任何担保,作者不承担使用风险。

详见 LICENSE。