Two people were killed in an anti-Semitic shooting rampage in Germany near a synagogue Wednesday on Yom Kippur — in which the alleged gunman recorded the sickening attack and streamed it online.

The suspect, identified by local media as German citizen Stephan Balliet, 27, was arrested after he opened fire outside the Jüdische Gemeinde Halle temple as worshippers were inside observing the holiest day in Judaism.

In a chilling echo of the Christchurch, New Zealand, mosque massacre in March — which was shared on Facebook Live — the alleged gunman livestreamed his deadly rampage in a 35-minute video on Amazon-owned platform Twitch, a spokeswoman for the company confirmed.

In the video, seen by The Post, the suspect introduces himself as “Anon” before going on an anti-Semitic rant that also included attacks on feminism and immigration. The German newspaper Bild identified Balliet as a neo-Nazi.

“I think the Holocaust never happened,” Balliet tells the camera. “The root of all these problems is the Jew.”

The video has been removed from Twitch but was circulated on encrypted app Telegram and also shared on Twitter.

The heavily armed suspect can be seen trying unsuccessfully to shoot open the doors of the synagogue around midday.

Frustrated and muttering to himself in German, he returns to his car, loaded with explosives and ammunition, and tries to blast open a nearby gate.

A women walking past questions him and he fatally shoots her in cold blood from behind.

The suspect then gets back in his car before opening fire on a nearby kebab restaurant — killing one man as he hides behind a refrigerator.

Police finally arrested the lone shooter in the town of Landsberg, 305 miles from Halle, where the attack took place.

Ten Americans were inside the synagogue but were unharmed, according to US Ambassador to Germany Ric Grenell.

Authorities have not released the names of the two victims.

“That on the Day of Atonement a synagogue was shot at hits us in the heart,” Foreign Minister Heiko Maas wrote on Twitter. “We must all act against anti-Semitism in our country.”