In agent development or when using DSH (DeepSeek Harness), handling user input often requires validating data. Relying on external APIs for validation increases latency and cost, while hand-written regular expressions are error-prone. dsh-validator provides a localized validation solution, implemented in pure Node, with no network access and no external service dependencies.

Plugin Overview

dsh-validator is a data-validation-focused plugin maintained by developer uckkk. Its core value lies in providing standardized validation logic for common data formats.

Core Features

The plugin currently supports the following validation capabilities:

  • Email validation: Validates email address formats.
  • Phone number validation: Validates phone number formats.
  • Luhn algorithm validation: Used to validate digit sequences such as bank card numbers.
  • IBAN validation: Validates International Bank Account Numbers.
  • URL validation: Validates Uniform Resource Locators.

Technically, it is fully based on Node.js, runs locally, and does not generate network requests.

Installation and Enabling

  1. Install the plugin:
    dsh plugin add github:uckkk/dsh-validator
  1. Enable the plugin:

    After installation, add "dsh-validator" to the dsh.profile.bundles field in the profile’s package.json file.

    {
      "dsh": {
        "profile": {
          "bundles": [
            "dsh-validator"
          ]
        }
      }
    }

Usage

After installing and enabling the plugin, you can directly invoke the tool registered by the plugin within a session.

Use Cases and Notes

This plugin is suitable for scenarios that require quick, local data format validation. Because the plugin runs third-party code on the local machine, be sure to review its source code and license before installation.

Summary

dsh-validator provides a set of lightweight data validation tools for the DSH environment, suitable for developers who require data privacy and fast response times.