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-web-search-brightdata

v1.0.0

Published

DSH web plugin: Bright Data SERP API search provider for ctx.web with a managed multi-key pool (per-key add/remove/enable/test from Settings), zone config, rotation, and cooldown failover

Downloads

134

Readme

dsh-web-search-brightdata

Bright Data SERP API 搜索 provider,注册进 DSH 的 ctx.web seam。与 dsh-web-search-tavily-pool 同一套待遇:

  • Key 池~/.dsh/.dsh-web-search-brightdata.json(Settings UI 写入, 权威来源);缺省回退 BRIGHTDATA_API_KEYS / BRIGHTDATA_API_KEY (credentials service → ~/.dsh/.credentials.yaml 直读)
  • 轮换与冷却:401/403 冷却 30 分钟,429 冷却 1 分钟,其他可重试错误 5 分钟;失败换下一把活跃 key
  • zone:池级配置,默认 serp_api_dsh,Settings 里可改
  • 解析:默认 data_format: html(URL 精确,解析 organic 锚点 + <h3> 标题 + VwiC3b 摘要);markdown 模式解析 ### 标题 块并用 › 面包屑 重建 URL(尽力而为)。0 结果视为失败,向上一级(strategy)暴露原因
  • Settings:"Bright Data SERP" 分区:zone 编辑、key 增删停启用、单把/ 全部测试、重置冷却;全部操作即时热生效

免费额度:Bright Data 注册赠送请求额度(SERP API 亦有 5K 次/月档), 多账号 token 可加多把进池轮换。

安装

./install.sh            # 拷入 ~/.dsh/profiles/node_modules 并注册 patch 行

或作为 profile 依赖安装(pnpm file: link),再在 cordis.patch.yml 注册:

- insert:
    - id: web-search-brightdata
      name: 'dsh-web-search-brightdata'

strategy 链里把 brightdata 加进 backends(Settings 的 strategy 分区或 ~/.dsh/.dsh-web-search-strategy.json)即可参与 fallback/parallel。