NEW YORK — The pioneering mommy blogger Heather Armstrong, who laid bare her struggles as a parent and her battles with depression and alcoholism on her site Dooce.com and on social media, has died at 47.

Armstrong’s boyfriend, Pete Ashdown, told The Associated Press that he found her Tuesday night at their Salt Lake City home.

She had two children with her former husband and business partner, Jon Armstrong, began Dooce in 2001 and built it into a lucrative career. She was one of the first and most popular mommy bloggers, writing frankly about her children, relationships and other challenges at a time that personal blogs were on the rise.

She parlayed her successes with the blog, on Instagram and elsewhere into book deals, putting out a memoir in 2009, “It Sucked and then I Cried: How I Had a Baby, a Breakdown and a Much Needed Margarita.”

That year, Armstrong appeared on “The Oprah Winfrey Show” and was on the Forbes list of the most influential women in media.

In 2012, the Armstrongs announced they were separating. They divorced later that year. She began dating Ashdown, a former U.S. senate candidate, nearly six years ago. They lived together with Armstrong’s children, 19-year-old Leta and 13-year-old Marlo. He has three children from a previous marriage who spent time in their home as well.

Ashdown said Armstrong died by suicide. He told the AP that she had been sober for more than 18 months, and recently had a relapse. He did not provide further details.

This story includes discussion of suicide. If you or someone you know needs help, please call the National Suicide Prevention Lifeline at 1-800-273-8255.