Most urban fantasy quietly assumes magic and technology dislike each other. Phones die near wizards. Engines stall. It is a convenient rule, because it keeps the protagonist from simply solving the mystery with a database.
It is also a dodge, and a shrinking one. A genre set in the present tense cannot indefinitely pretend the present tense is not networked. The books that take the other road — where magic is made of the same stuff as the infrastructure — end up with something the fog-and-candles crowd cannot reach: a magic system with version numbers, dependencies, and exploits.
Once a spell can be debugged, it can also be broken into. That is a plot.
WebMage — Kelly McCullough
The purest expression of the idea and the one that commits hardest to the metaphor.
McCullough’s premise is that the Fates run reality as code, the Greek pantheon are effectively sysadmins, and his protagonist is a hacker in a very literal sense — descended from the Fates, working against a rewrite of free will that is being deployed like a patch. His familiar is a laptop that turns into a goblin.
The reason it works is discipline. McCullough does not use computing as decoration; he uses it as constraint. Spells fail the way programs fail — edge cases, bad assumptions, something upstream changing without notice. A protagonist whose magic can throw an exception is a protagonist who can lose in interesting ways.
Geekomancy — Michael R. Underwood
Faster, lighter, and built on a different resource model.
Underwood’s magic runs on pop culture: a geekomancer draws power from films, comics, games — objects charged with collective attention. Watching the right movie is preparation. The consumable nature of it is the clever part, because it makes magic an inventory problem. You can run out. You have to restock. You have to have watched the correct thing beforehand.
It is a comedy, and underneath the comedy is a genuinely tight system with a supply chain. The protagonist works in a comic shop, which is not a joke about her hobbies — it is her armoury.
A Madness of Angels — Kate Griffin
The most beautiful book on this list and the least interested in computers specifically.
Griffin’s argument is broader: the modern city itself is a magical medium. Electricity, telephone static, the last train, the light of a shop sign at four in the morning, the specific residue left by a million people wanting the same thing at the same time. Her sorcerers do not fight technology, they speak it.
The prose is genuinely extraordinary — incantatory, list-heavy, closer to poetry than to procedural — and the magic derives from urban infrastructure with total conviction. Anyone who came to the genre for the city as a character should start here.
Worth adding that it lands especially well on audio; the rhythmic, chanted quality of the spellwork was clearly built for a voice.
Libriomancer — Jim C. Hines
The best rule set of the five, because Hines spends real effort on what the magic cannot do.
His librarians reach into books and pull objects out — but only from printed works, only objects small enough to fit through the covers, only from texts with enough readers to have charge, and never anything that would be too dangerous to exist. Overuse damages the practitioner’s mind. Each of those limits is load-bearing, and the plots are built from their edges.
That is the craft lesson worth taking. A magic system is not defined by what it produces; it is defined by the list of things that stop working, and Hines writes his list like an engineer.
Foundryside — Robert Jackson Bennett
Not urban fantasy in the strict sense — a secondary world — but the closest thing the genre has to a systems-programming novel, and nobody serious about this condition should skip it.
Bennett’s scriving works by writing instructions on an object that persuade it to believe something false about reality: that it is falling in a different direction, that it is much heavier than it is. Which makes magic a language, with syntax, with legacy code, with proprietary dialects owned by merchant houses who guard them like patents.
And therefore with vulnerabilities. The heist plot is genuinely a hacking plot: find the assumption the instruction depends on, and violate it. It shares its corporate skeleton with the bureaucratic-magic shelf, and its hard-rules instinct with the books where the system actually has rules.
The oldest magic in fiction was a set of correct words in the correct order, spoken to something that had no choice but to obey. We have been writing that for eighty years and calling it software.
Where to find these
- WebMage — Kelly McCullough · Amazon · free on Audible · Kindle Unlimited
- Geekomancy — Michael R. Underwood · Amazon · free on Audible · Kindle Unlimited
- A Madness of Angels — Kate Griffin · Amazon · free on Audible · Kindle Unlimited
- Libriomancer — Jim C. Hines · Amazon · free on Audible · Kindle Unlimited
- Foundryside — Robert Jackson Bennett · Amazon · free on Audible · Kindle Unlimited
Affiliate links — they cost you nothing and help keep the lights on here.