The Two-Way Mirror is "a pair of mirrors that served as communication devices between two people, one with each half," in the official encyclopedia's description. In the 1970s they belonged to Sirius Black and James Potter, who used them to speak while in separate detentions at Hogwarts. Sirius later gave Harry Potter the half that had belonged to James, and in Deathly Hallows the other half reached Aberforth Dumbledore, who used it "to keep an eye on Harry" — the reason he knew to send Dobby to Malfoy Manor. The old stub's link for Aberforth pointed at the wrong character page, and its claims that Hermione reminded Harry of the mirror have been removed; neither detail is supported by the sources opened here.
The Lexicon describes the pair as small, square and old-looking, made for secret communication between their two owners. Their working rule survives in Sirius's written message, quoted by the Lexicon from Order of the Phoenix: "This is a two-way mirror, I've got the other one of the pair. If you need to speak to me, just say my name into it; you'll appear in my mirror and I'll be able to talk in yours." No spell, range limit or maker is named by the opened sources, and this page does not supply any.
The mirrors' first life was as a detention lifeline between James and Sirius, who "used to use them when they were in separate detentions." Their second life began at the end of Christmas break in 1995, when Sirius handed Harry a wrapped package containing James's half with the advice "Use it if you need me," calling it a way of letting him know if Snape was giving Harry a hard time. Harry did not think of the gift in time: only after Sirius Black Death did he open the package and try the mirror, desperately hoping to reach his dead godfather; it did not answer, and he hurled it into his trunk, breaking it.
The mirror's third life belongs to Deathly Hallows. About a year before the Battle of Hogwarts, the half Sirius had kept was stolen from Number Twelve, Grimmauld Place by Mundungus Fletcher, and it found its way to Aberforth Dumbledore when the barkeep bought it from the thief; the Lexicon records that Aberforth had been told about the mirror by his brother Albus before his death. Aberforth then used it to watch for Harry, and when he heard Harry ask for help while trapped at Malfoy Manor, he sent Dobby to the rescue. The official fact file counts both books, Order of the Phoenix and Deathly Hallows, among its appearances.
The mirrors are a communication tool, not a scrying device, and should not be merged with the Mirror of Erised, which shows desires, or with the Enchanted Coin method used by Dumbledore's Army, which signals rather than speaks.