-
Welcome to The Midnight Apothecary, where a mischievous wizard raccoon awaits your daily spell.
-
Five enchanted jars, five magical ingredients, and a spellbook of clues. Use logic to find the unique solution.
-
Spell successfully cast! Arrange every ingredient correctly to earn your daily Moon Crystal.
-
Collect Moon Crystals, build your daily streak, and unlock magical treasures along the way.
-
A little everyday magic, wherever you are. Enjoy the daily puzzle on desktop or mobile.
Inspiration
I wanted to create a small daily brain teaser that would make logical reasoning feel playful, approachable, and a little magical.
I've always loved the charm of illustrated animal stories, particularly the whimsical world of Beatrix Potter, and the richly imagined magical universe of Harry Potter. I've also been working on a Harry Potter-themed crochet-along project, which has kept me immersed in spellbooks, magical creatures, and all sorts of enchanting details.
Somewhere between those influences, I imagined a mischievous little raccoon wizard, an apothecary full of strange ingredients, and a daily puzzle that would feel more like stepping into an illustrated storybook than completing a conventional logic exercise.
That became The Midnight Apothecary, home to five enchanted jars, a spellbook full of clues, and one raccoon who probably shouldn't have been given a wand.
What it does
Each day, players enter a magical apothecary where five enchanted jars need filling. Using clues from an illustrated spellbook, they must deduce where five fantastical ingredients belong: Mandrake, Eye of Newt, Phoenix Feather, Bullfrog, and Carnivorous Plant.
Every ingredient belongs in exactly one jar, and each puzzle has one logically deducible solution.
Players arrange their ingredients, cast the spell, and discover whether their magical reasoning was correct.
The game includes:
- 30 validated daily puzzles, selected deterministically by UTC date.
- Accessible deduction challenges with clear clues and optional hints.
- A magical reward system, awarding Moon Crystals for completed daily spells.
- Persistent streaks and collectibles, including the Apprentice Star and Enchanted Familiar Charm.
- Original fantasy illustrations, responsive layouts, and playful success and mishap effects.
How I built it
The Midnight Apothecary was built with Reddit Devvit Web, React, TypeScript, and Redis.
The puzzle engine validates each challenge against all 120 possible ingredient arrangements, ensuring a unique solution and eliminating redundant clues.
Redis stores individual player progress, while server-side verification protects daily rewards against duplicate claims.
I used Codex and generative AI tools to assist with software implementation and illustration, while directing the game's concept, mechanics, creative identity, and iterative testing.
Challenges and what I learned
The biggest challenge was finding the right puzzle mechanic.
The project began with a completely different concept: a mischievous raccoon rummaging through objects and triggering a chain of mechanical exchanges. Although the simulation worked, playtesting revealed that its puzzles were either too obvious or unnecessarily difficult to reason through.
I eventually replaced that system with a more intuitive clue-based deduction game.
The visual design underwent a similar transformation. I wanted an atmosphere that was genuinely enchanting, with a lovable central character, luminous apothecary jars, fantastical ingredients, and the warmth of an illustrated magical storybook.
Integrating persistent rewards into Devvit also required careful handling of Redis transactions, concurrent requests, and player-specific progress.
The process reinforced an important lesson: a puzzle can be mathematically correct without being enjoyable, and a technically functional interface can still fail to delight.
What's next
I'd love to see players return for their daily spell, discover new treasures, and enjoy a few minutes of gentle mental exercise.
The Midnight Apothecary is also part of a broader personal ambition to develop a small collection of playful, accessible games that bring together creative design, logical reasoning, and educational thinking.
