Never thought about a D-meter. Since D is just the tangent of 90 degrees minus the phase angle of the cap, and you can build a decent phase meter out of a few gates, it might not be too hard. OTOH, since the actual circuitry of almost anything is trivial compared to the amount of work to build it and put it in a chassis, and given the DDS chips and such we now have, I've wondered if one could do a DIY version of the high end Keysight or Chroma (formerly QuadTech) wide range LCR meters.