datasheet-md

Open-source agent skill · DS-0001 · Rev A

Turn a short JSON file into a product datasheet engineers actually read.

Tell your coding agent about the product. It writes a small JSON file, checks the numbers, and renders a multi-page datasheet with a spec table, a dimension drawing and a footer that counts the pages.

npx github:isatimur/datasheet-md help

Page one of a power bank datasheet in the hazard theme: black and yellow, stripe rule, heavy condensed product name Page one of a studio monitor datasheet in the studio theme: near-black page, gold hairlines, light serif name Page one of a sensor module datasheet in the silicon theme: navy rules, part number table, numbered sections
Pages
A4 and US Letter, with a repeating header and footer
Checks
Warns when min is above max or a unit looks wrong
Themes
Five, each with its own type and layout
Install
One Node script. No dependencies.
01

How it works

  1. Describe

    Give your agent the product and the numbers you have. It asks for the rest and never invents a spec.

    // sensor.json
    {
      "company": "Northgate Microsystems",
      "product": "NG-TH300",
      "partNumber": "NGM-TH300-I2C",
      "specs": [
        { "parameter": "Supply voltage",
          "min": 1.8, "typ": 3.3,
          "max": 3.6, "unit": "V" }
      ]
    }
  2. Check

    The engine reads every row. It warns about a minimum above a maximum, a typical value outside its range, and a unit it does not know.

    $ datasheet-md validate sensor.json
    warning: specs[0] "Supply voltage": min 3.6 is larger than max 1.8
    warning: specs[1] "Standby current": unit "uA" is not one I know; did you mean "µA"?
    ok: sensor.json is valid (2 spec rows)
  3. Render

    One HTML file. A small script cuts it into pages, repeats the header and footer, and numbers every page. Open it, print it, or save it as PDF.

    $ datasheet-md render sensor.json \
        --theme silicon --paper a4
    wrote sensor.html: theme silicon, paper A4
02

Five themes

Every image is page one of a real render. Open one to read the whole datasheet.

Silicon theme: navy rules, condensed headings, monospaced values and a part number table
siliconSemiconductor classic. Navy rules and numbered sections.Sensor module
Hazard theme: black and yellow, a stripe rule and shouting condensed capitals
hazardIndustrial yellow and black, for the shop floor.Power bank
Clinic theme: teal on white, a soft serif product name, pill labels and tinted panels
clinicMedical clean. Teal, white and plenty of air.Espresso grinder
Trail theme: khaki paper, forest green bars, safety orange and contour lines
trailOutdoor gear. Khaki, forest green and safety orange.Hiking lamp
Studio theme: a near-black page with gold hairlines and a light serif product name
studioHi-fi luxe. Black, gold and a light serif.Studio monitor
03

Drawn from three numbers

A dimension drawing of a sensor module: front, top and side views to scale, with dimension lines labelled 28 mm, 9 mm and 18 mm

Give a width, a height and a depth. The engine draws the front, top and side views to scale and adds the dimension lines.

A cylinder takes a diameter and a height. Set a corner radius for rounded cases. Every theme restyles the drawing, so it always matches the page.

04

Install

Claude Code plugin

/plugin marketplace add isatimur/datasheet-md
/plugin install datasheet-md@datasheet-md

Any agent, via skills.sh

npx skills add isatimur/datasheet-md

Command line

npx github:isatimur/datasheet-md render sensor.json --out sensor.html

Node 20 or newer. Nothing else to install. PDF export uses Playwright when you have it.

05

Examples

Five fictional products from fictional companies. The numbers are sample values.

  • NG-TH300 sensor moduleNGM-TH300-I2CTemperature and humidity module with an I²C interface.DatasheetJSON
  • BrickCharge 20K power bankBCE-PB20K-PD10020 000 mAh pack with a 100 W USB-C port.DatasheetJSON
  • Atlas 64 burr grinderACM-G64-EUQuiet flat-burr espresso grinder with a timed dose.DatasheetJSON
  • Summit Lantern 400CW-LT400-OLRechargeable camp lantern, a cylinder in the drawing.DatasheetJSON
  • Meridian M8 studio monitorAA-M8-WLNPowered two-way monitor with a walnut cabinet.DatasheetJSON