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

dsh-plugin-translation

v0.2.0

Published

Translation toolkit for DeepSeek Harness agents: sentence segmentation, term/glossary extraction, a durable workspace glossary (add/get/remove), cross-segment terminology consistency checks, source-target QA, tone guides, and a durable translation memory

Readme

dsh-plugin-translation

面向 DeepSeek Harness agent 的翻译工具包:分块、术语提取、译文质检、语气指南与持久化翻译记忆。模型负责翻译,插件负责切分、校验与记忆。

安装

dsh plugin --profile <profile> add dsh-plugin-translation

重启 DSH 后,translate_kit 工具全局注册。

工具

| 动作 | 用途 | | --- | --- | | segment | 把长文本切成编号分块,便于分块翻译 | | glossary | 提取候选术语(缩写、驼峰词、域名、数字+单位、邮箱、URL)及出现次数 | | check | 译文质检:数字/单位、括号配对、长度比例、重复标点 | | tone | 语气指南(正式 / 口语 / 技术,中 / 英) | | memo_get | 读取翻译记忆(新的在前) | | memo_add | 保存源→译对到工作区翻译记忆文件 | | glossary_get | 读取持久化术语库(新→旧) | | glossary_add | 新增/更新术语(源→译)到工作区术语表 | | glossary_remove | 按源术语删除术语条目 | | consistency | 跨段术语一致性检查(同源术语译文统一性)

配置

均为可选项,写在组合行的 config 里:

| 键 | 默认值 | 含义 | | --- | --- | --- | | personaSection | true | 是否注册翻译提示词段 | | sectionOrder | 6 | 提示词段顺序(persona 为 0,升序) | | memoFile | .dsh/translation-memo.md | 记忆文件路径(相对会话工作区,运行时校验不可逃逸) | | maxMemoEntries | 200 | 记忆文件保留的条目数 |

设计

纯逻辑(lib/translation.js)零 DSH/Cordis 依赖、可独立单测;lib/index.js 是薄 Cordis 壳。记忆读写走 ctx.fs,所有路径经 containment 校验锁定在会话工作区内。

License

MIT