dsh-wb-credits: DSH Sidebar Gateway Credits Card
dsh-wb-credits is a DSH client plugin maintained by M-eang. It renders a gateway credit card in `sidebar.footer.action`, displaying the total balance, credits expiring within the next 7 days, and the nearest expiry. Expanding the card reveals per-account details and expiry buckets. Three providers are supported—`api` (read-only snapshot), `panel`, and `ssh`—all sharing the aggregation logic in `lib/index.js`. Installation involves linking the dependency in your profile's `package.json` and adding it to `bundles`. Configuration options include `provider`, `api.baseUrl`/`token`, and `pollSeconds` (minimum 15). In `api` mode, the `deploy` directory provides a local snapshot service and Nginx configuration snippets. Runtime requires Node >= 20; the plugin accesses credentials with DSH process-level privileges. Please review the source code and the MIT license before use.
Read More