Recommended · for some experience
EEVblog #490 - Peak Detector Circuit
Why people recommend it
Dave Jones builds peak detectors from a simple diode and capacitor up to precision op-amp versions; a frequent reference for envelope and pulse detection projects.
Watch for: adding a buffer after the hold capacitor
In their words
There is a fair amount of information about peak detectors: EEVblog video, Planet Analog article.
Nick Alexeev on electronics.stackexchange.com, Oct 2014. CC BY-SA.
I built a multiple feedback 2kHz band-pass filter with gain Vo/Vi = 4 and an envelope detector for this filter as shown in this great video tutorial EEVblog #490 - Peak Detector Circuit
Sparky on electronics.stackexchange.com, Feb 2016. CC BY-SA.
There's a very good video lecture over on YouTube here which discusses how it works and various forms of the circuit depending on what you want to achieve.
Peter Jennings on electronics.stackexchange.com, Aug 2019. CC BY-SA.