Inspiration
Before a book is printed, someone has to work out where every page goes on the big sheet, so that after folding and trimming the pages come out in order. Print shops call it imposition. Some pages end up upside down on the plate, and it is not obvious which until you fold a sheet in your hands. That small "aha" felt like a daily puzzle nobody had made.
What it does
Every day everyone gets the same printed sheet and the same folds.
- Place the pages. Tap a page number, then a panel. Tap a printed panel to turn it upside down or take it off. Switch between the front and back of the sheet (the back is mirrored, like a real sheet turned over).
- Read the fold lines. Cyan dashes on the proof, numbered in fold order, with an arrow for the half that moves.
- Peek a fold if you are stuck. It plays the next fold with your layout, and costs you on the leaderboard.
- Fold and trim. The sheet folds in 3D, one crease at a time, then the booklet is checked page by page. Misprints are circled and say what is wrong ("Shows 6", "Upside down"), never color alone.
- Daily loop. A new sheet goes to press at 00:00 UTC. Monday is a single fold with half the pages given; Sunday is a 16-page sheet with almost nothing given. Results rank misprints, then peeks, then time; streaks count consecutive days.
How we built it
- Fold engine (
src/shared/fold.ts): tracks every panel through each fold (which face is up, whether it is turned) and reads the trimmed stack as a booklet. Folding over a horizontal crease turns a page upside down; folding over a vertical crease does not; the last crease is the spine. It reproduces the textbook 8-page imposition (outer forme 5 4 / 8 1 with the top row upside down). Because the answer is computed, every puzzle is solvable by construction. - Devvit Web: React + Vite for the post, Hono server, Redis for ranks and streaks, the scheduler for the daily post.
- Fair play: the folds are not sent until you press Start, which starts the clock on the server. The finished layout is checked on the server with the same engine, and the time is measured there.
- Look: the screen is a press proof: white stock, crop marks, registration targets, a CMYK color bar that fills as you place pages, Bodoni page numbers. One accent color, magenta, for the press button and proofreader marks.
Challenges
- Showing the back of the sheet correctly (it is the sheet turned over left to right) and keeping the fold animation honest: each fold's moving half carries the cells before the fold on its front and the engine's result on its back, so the animation always lands on the real answer.
- Keeping the answer off the client. A first version reported scores from the browser and shipped the puzzle bank in the client bundle; both were fixed so results are computed on the server.
What's next
Player-made folds (the engine computes the answer, so any fold a player designs is solvable), a weekly "Master Printer" flair, and posting your result card to the comments.
Honest limits
Tested by its maker only; no outside players yet.
Built With
- devvit
- hono
- react
- redis
- tailwindcss
- typescript
- vite