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

@deepseek-ai/dsh-llm-deepseek-api-key

v0.1.7-rc.2

Published

DeepSeek api-key provider authentication and discovery

Readme


description: "DeepSeek API key authentication and model discovery." kind: "package-reference"

@deepseek-ai/dsh-llm-deepseek-api-key

English | 中文

概述

为 deepseek-official 注册独立的鉴权和模型发现插件。通过 llm-deepseek 共用 Messages 请求实现;本包拥有凭据解析和目录可用性判断。

鉴权解析将验证后的 API key 放入 x-api-key,供 Messages 和 Files 请求共同使用。

目录

使用此包

apiKeyEnv 默认为 DEEPSEEK_API_KEY,在每次请求时解析凭据。已组合 credentials 服务时,按其优先级解析;只有未组合该服务时才直接读取启动环境。请求时凭据缺失以 MISSING_CREDENTIAL 失败;格式错误以 INVALID_CREDENTIAL 失败。模型发现始终返回配置的目录,不依赖凭据。

- id: llm-deepseek
  name: '@deepseek-ai/dsh-llm-deepseek-api-key'
  config:
    reasoningEffort: high
    apiKeyEnv: DEEPSEEK_API_KEY

端点和凭据引用来自同一次配置解析;进行中的请求保留该快照,后续配置更新仅影响后续请求。账号登录态不影响该路由使用的凭据。

models 是该 provider 独立的可配置目录;默认值和协议能力来自共享传输包。目录判断不探测推理端点。设置命名空间采用 Cordis entry id,没有 entry 时采用插件名。产品保留 official 的 llm-deepseek entry id,账号使用 llm-deepseek-account。

理解实现

注册和监听随插件生命周期释放。共享 Host 绑定提供附件访问、请求扩展、匿名标识和重试策略的原子更新;本包只注册自己的路由。无需 invariant companion:目录直接由配置派生,不维护独立副本。

进一步探索

LLM streaming · Messages

模型体验

已鉴权的模型请求

What the model sees

deepseek-official 请求不包含本插件添加的模型可见文本;请求由共享 Messages 传输序列化。

Token effect

鉴权和目录过滤不增加输入 token;实际调用的 token 由所选模型与请求内容决定。

KV Cache effect

凭据与目录可用性不进入模型输入;协议传输拥有请求前缀的序列化。

已知限制与后续工作

  • 目录是配置元数据,不验证远端是否接受模型;实际调用仍可能失败。

开发备注

注册与鉴权的测试也覆盖共享传输包中的 Loader 组合场景。