Tiffany Cabán, the insurgent candidate who edged out Melinda Katz in the Democratic primary race for Queens district attorney, said she’s “confident” her win will hold — despite her narrow lead.

Cabán was out early Wednesday to thank commuters at the Ditmars Boulevard station in Astoria for her stunning victory.

“I’ve spoken to my team and we recognize the margins will be close but we feel confident that the decision will not be reversed,” she told reporters.

The 31-year-old Democratic socialist earned 39.6 percent of the vote, compared to Katz’s 38.3 percent, with 99 precincts reporting. That’s a slim margin of 1.3 percentage points, or 1,090 votes.

Some 3,400 absentee ballots still need to be counted, meaning the tally may not be made official until next Wednesday, the Board of Elections said.

Katz, an establishment favorite who garnered support from Gov. Andrew Cuomo and former Queens Democratic Party chief Joe Crowley, wants a recount.

Cabán, a public defender who’s worked for the New York County Defender Services and Legal Aid Society, said she hasn’t heard from Katz since the results came in Tuesday night.

Asked whether she believes Katz should concede, Cabán only said, “We’ll wait it out. We’ve got work to do now.”

The Richmond Hill-born lawyer’s progressive policies include ending cash bail, closing Rikers Island and imposing shorter sentences for felonies. If elected, she wants to prosecute ICE agents and decriminalize sex work.

She’s received endorsements from Bronx-Queens Rep. Alexandria Ocasio-Cortez and presidential hopeful and Vermont Sen. Bernie Sanders.

“Our No. 1 goal, our No. 1 priority, is public safety and we have to look at the fact that we can achieve public safety again without over-criminalizing our black and brown and low-income communities,” Cabán said. “And so to everyone who maybe didn’t support us … I’m going to do everything I can to earn their trust.”