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

@and7ey/opencode-deepseek-peak

v1.0.1

Published

OpenCode 2 TUI plugin showing DeepSeek API peak/off-peak pricing hours.

Readme

opencode-deepseek-peak

An OpenCode 2 TUI plugin that shows whether the current DeepSeek API time is PEAK or OFF-PEAK, next to the prompt. During peak it renders in red.

The banner appears only while the selected provider is the native deepseek provider; switch to another provider (including opencode-go/deepseek-* or openrouter/deepseek/*) and it disappears.

DS PEAK | LOCAL 10:40 CEST | next 12:00 CEST

PEAK is shown in the theme's error colour; OFF-PEAK is muted.

The schedule is calculated locally from UTC. No API request or credentials are needed.

Schedule

According to the official DeepSeek API pricing page, peak pricing is:

  • 01:00–04:00 UTC
  • 06:00–10:00 UTC

The intervals are half-open: 01:00 is peak, 04:00 is off-peak, 06:00 is peak, and 10:00 is off-peak.

The displayed clock uses the computer's system timezone, including automatic daylight-saving changes. The timezone abbreviation is shown after the local time (for example, CET, CEST, or PST).

Install

Add the plugin to your global CLI config (~/.config/opencode/cli.json), not opencode.json:

{
  "$schema": "https://opencode.ai/v2/cli.json",
  "plugins": ["@and7ey/opencode-deepseek-peak"]
}

OpenCode installs npm plugins with Bun on startup. Restart OpenCode after changing cli.json.

From a local checkout

git clone https://github.com/and7ey/opencode-deepseek-peak.git
cd opencode-deepseek-peak
npm install
{
  "$schema": "https://opencode.ai/v2/cli.json",
  "plugins": ["/absolute/path/to/opencode-deepseek-peak"]
}

Options

{
  "$schema": "https://opencode.ai/v2/cli.json",
  "plugins": [
    {
      "package": "@and7ey/opencode-deepseek-peak",
      "options": { "slot": "prompt.footer.status" }
    }
  ]
}

| Option | Default | Meaning | | ------ | ----------------------- | -------------------------------------------- | | slot | prompt.footer.status | V2 prompt slot to append the banner to. |

prompt.footer.status is the status area of the prompt footer. Other V2 slots you can try: prompt.footer, prompt.footer.file, session.composer.top.

Development

npm test

The pure logic in deepseek-peak-status.mjs (peak windows, local-time formatting, next transition, clock) is covered by deepseek-peak-status.test.mjs using node --test. opencode-deepseek-peak-tui.mjs is the V2 CLI plugin entrypoint and is only exercised inside OpenCode.

Credits

A port of kolodziejm/opencode-deepseek-pricing to the OpenCode 2 plugin API. MIT.

License

MIT