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

@javierfrancoleal/deepseek-prices

v1.0.93

Published

Live DeepSeek API token price bar for the web GUI: peak/off-peak tariff, UTC + local (Quebec) clocks, countdown to the next tariff change, and a daily self-verification against the official DeepSeek pricing page.

Readme

@javierfrancoleal/deepseek-prices

Barre de prix en direct des jetons DeepSeek pour la GUI Web de DeepSeek Harness. Live DeepSeek token price bar for the DeepSeek Harness Web GUI.


Ce que fait le plugin / What it does

Affiche une barre pleine largeur en bas de la fenêtre (shell.bottom) qui montre, en temps réel :

  • La tarifa actual — 🟢 VALLE (hors pointe) ou 🔴 PICO (pointe).
  • Le prix des jetons (USD / 1M tokens) pour deepseek-flash et deepseek-v4-pro — entrée (cache miss) → sortie. Le détail complet (cache hit + cache miss + sortie, pointe et hors pointe) apparaît au survol.
  • L'heure d'origine (UTC) et l'heure locale (Québec, America/Toronto).
  • Le compte à rebours jusqu'au prochain changement de tarif, avec l'heure locale du basculement.
  • La date de vérification des prix (survol de la barre).
  • L'idiome et le thème : la barre suit la langue sélectionnée dans DeepSeek Harness (anglais / chinois) et les jetons de thème --dsw-* (clair / sombre).

La grille tarifaire réelle de DeepSeek (vérifiée le 2026-11-03)

Source officielle : https://api-docs.deepseek.com/quick_start/pricing

Il y a deux tarifs : pointe (peak) et hors pointe (off-peak). Hors pointe = 50 % du tarif pointe.

| Modèle | Entrée (cache hit) | Entrée (cache miss) | Sortie | |---|---|---|---| | deepseek-flash (V4.1) | pointe $0.006 · HP $0.003 | pointe $0.30 · HP $0.15 | pointe $1.20 · HP $0.60 | | deepseek-v4-pro | pointe $0.044 · HP $0.022 | pointe $1.32 · HP $0.66 | pointe $3.96 · HP $1.98 |

Heures de pointe : 01:00–04:00 et 06:00–10:00 UTC, du lundi au vendredi, hors jours fériés chinois. Tout le reste (nuits, weekends, jours fériés chinois) est hors pointe.

⚠️ Deux fenêtres de pointe par jour (avec un creux hors pointe de 04:00 à 06:00 UTC).


Installation

Le plugin est un paquet « double-face » : un half host (vérification quotidienne) et un half browser (la barre).

Dans le profil (~/.dsh/profiles/desktop/), ajoutez la dépendance et le bundle :

// package.json
{
  "dependencies": {
    "@javierfrancoleal/deepseek-prices": "link:/…/plugins/jfranco-deepseek-prices"
  },
  "dsh": {
    "profile": {
      "bundles": [
        "@deepseek-ai/dsh-base",
        "@deepseek-ai/dsh-web-app",
        "@javierfrancoleal/deepseek-prices"
      ]
    }
  }
}

Puis :

cd ~/.dsh/profiles/desktop
pnpm install

Rechargez la page Web. La barre apparaît en bas de la fenêtre. (Le cordis.patch.yml du plugin insère déjà sa ligne jfranco-deepseek-prices.)


Vérification quotidienne

Le half host (lib/index.js) télécharge une fois par jour la page officielle des prix, la compare à la grille embarquée, et ajoute un enregistrement JSONL à ~/.dsh/deepseek-prices/verify.jsonl.

  • status: "ok" → aucune dérive.
  • status: "drift" → les heures de pointe ou des prix clés ont changé (warning dans le journal du host).
  • status: "error" → la page n'a pas pu être lue (warning dans le journal).

La barre affiche la date de vérification embarquée au survol.

Un rappel de vérification quotidien (via l'agenda de DeepSeek Harness) rappelle de contrôler ce registre et de mettre à jour les prix embarqués en cas de dérive.


Configuration / limites

  • Fuseau local : America/Toronto (Québec). Modifiable dans lib/client.js (fmtClock(..., "America/Toronto")).
  • Jours fériés chinois : liste 2026 approximative dans PRICING.chineseHolidays2026 (host et client). À réviser chaque année — le vérificateur quotidien contrôle les prix et les heures de pointe, pas cette liste.
  • Prix embarqués : si DeepSeek change ses prix, le vérificateur quotidien le signale ; mettez à jour PRICING dans lib/index.js et lib/client.js.

Structure

| Fichier | Rôle | |---|---| | lib/index.js | Half host : vérification quotidienne contre la page officielle | | lib/client.js | Half browser : la barre de prix dans le slot global shell.bottom | | cordis.patch.yml | Insère la ligne jfranco-deepseek-prices | | package.json | Déclare dsh.bundle.patch (host) + dsh.client (browser) | | locale/*.json | Métadonnées d'affichage du gestionnaire de plugins |

Créé par J.Franco.