Inspiration
I've always been impressed by the way the staff in our supermarkets pack groceries. Everything ends up in the right place. When I try to do it myself, they always stop me: this doesn't go with that, those two shouldn't be in the same bag. So I started setting up little packing games for myself, to stop making those mistakes and mostly to understand the products: which ones are heavy, which ones break, which ones should never touch. Those are the house rules in the game today: heavy goes at the bottom, nothing sits on top of something fragile, hot and cold stay apart.
For a long time it was just a habit of mine. This hackathon was a great chance to turn it into a tool that a lot of people can play with.
The first build was called Bagged!. It worked, but it sounded like every other English word game. I renamed it Pakia Pakia!. Pakia is Swahili for "pack" or "load", and Swahili often says a word twice to make it urgent, so the name sounds like someone at the till telling you to hurry up and pack. It is also what the stamp says when your bag is done.
From the start, I wanted the community to be part of the puzzle itself, so I went for a loop where players write tomorrow's puzzle. A leaderboard stuck on top of a solo game wasn't what I was after.
The first build was called Bagged!. It worked, but it sounded like every other English word game. I renamed it Pakia Pakia!. Pakia is Swahili for "pack" or "load", and Swahili often says a word twice to make it urgent, so the name sounds like someone at the till telling you to hurry up and pack. It is also what the stamp says when your bag is done.
From the start I wanted the community to be part of the puzzle itself, so I went for a loop where players write tomorrow's puzzle. A leaderboard stuck on top of a solo game wasn't what I was after.
What it does
Every day a new post appears with a receipt from a customer. You tap an item, tap the bag (or drag it in), and try to fit every item into a 5x5 paper bag. Four house rules get in the way:
- Floor: heavy items sit on the bottom row.
- On top: nothing can be stacked above a fragile item.
- Apart: hot and cold items cannot share a side.
- Upright: some items cannot be turned.
Each receipt also carries one handwritten special request, like "The baguette must touch the tomatoes". A request is only allowed if it actually removes some valid bags, so it always changes how you pack.
After you solve it:
- You see how unusual your bag was ("Only 17% packed it like you", "Only 8% put the milk where you did"), your time, your rank, and your streak.
- You can vote for one of the receipts other players wrote, and write your own: a name, 6 to 10 groceries, a special request, and a short note. The editor runs the solver live, so you cannot send a bag that is impossible or that packs itself.
- At midnight UTC, the most voted receipt becomes the next daily post, credited to its author, who gets a "Customer of the Day" flair. If nobody voted, a verified house receipt takes over, so there is always a puzzle.
- "Share my time" posts your result as a reply under the app's pinned comment on the post, with your permission.
How I built it
The game runs on Devvit Web: a React client inside the post, and a Hono server with Redis for solves, votes, receipts, streaks, and the daily election. The feed card is a small vanilla page, so the post loads fast before you even open the game.
Every grocery is drawn in code as an SVG, and fonts are bundled with the app. The app makes no external network calls.
The core is an exact solver (bitmask backtracking, most constrained item first, identical items deduplicated). It checks all 101 house receipts that ship with the game, from November 20, 2026 to February 28, 2027, and it checks every receipt a player writes before it can be submitted.
Difficulty was the hardest thing to get right. My first idea was to count how many valid bags a receipt has, but two receipts with the same count could feel completely different in your hands. So now a simulated careless player packs the biggest items first, drops each one on a random spot that breaks no rule yet, and never undoes. I run 1 000 of those games per receipt and look at the win rate:
$$p = \frac{\text{games won}}{1\,000}$$
A receipt is hard when $p < 4\%$, medium when $p < 15\%$, and easy otherwise. Community receipts with $p > 60\%$ are refused, because at that point the bag packs itself. The week follows a curve: easy on Monday and Tuesday, hard on Friday and Saturday. The judging week, December 9 to 16, has hand-picked holiday receipts.
A test suite (134 tests) checks that every house receipt is solvable with its request, rated as declared, that the request really removes solutions, and that every day of the judging window has a puzzle.
The app also reports Devvit Journeys events (game ready, progress through the bag, completion with the solve time) and sets a post flair on each daily post: "House receipt" or "Customer of the Day".
Challenges I ran into
- Acting as the player. Sharing a comment needs the player's consent. The first share right after the player taps "Allow" kept failing with a "refresh token not found" error: the server asked for the token before Reddit had it ready. Now the app waits a moment and retries once or twice.
- Joining the subreddit. Reddit still refuses to subscribe a player on their behalf during testing. Instead of an error, the Join button now opens the subreddit page so the player can tap Reddit's own Join button.
- Comment rules. During Reddit's live session on December 2, I learned that comments an app writes automatically should never be top-level. I rewrote sharing so every shared time is a reply under one pinned comment from the app.
- Flair that didn't show. Setting a free-text post flair returned no error and showed nothing. The app now creates its own mod-only flair templates the first time it posts in a subreddit, and that works.
- Testing. Two playtest processes running at once kept logging each other out. Journeys events are valid but dropped during playtest, so I could only confirm the analytics path, not the numbers. On mobile web, Reddit hides new communities behind an "Unreviewed Content" screen, so mobile testing had to go through the Reddit app.
Known limits
- Difficulty comes from a simulation, not from real players yet. The thresholds will need adjusting once there is real data.
- The test community is small, so the vote and the "how unusual is your bag" numbers have not been tried with a big crowd.
- Join depends on what Reddit allows an app to do. For now, it hands the player over to the subreddit page.
- The game is in English only, and the bag is always 5x5.
Accomplishments that I'm proud of
- Every house puzzle is verified and rated by the same code that checks player receipts. No puzzle is impossible, and none packs itself.
- The whole community loop works on Reddit, on desktop and in the mobile app: solve, compare, vote, write, share, and the midnight election.
- The first puzzle teaches itself in three handwritten tips, with no tutorial screen to skip.
What I learned
Designing for a feed is different from designing for an app. People drop in, play for a couple of minutes, and leave, so everything has to make sense in one glance, including what happens tomorrow. I also learned to read platform errors more carefully: most of my "bugs" turned out to be Reddit rules that I had not met yet.
What's next
- Recalibrate difficulty using real solve times and win rates.
- More groceries and more kinds of special requests.
- Use Journeys analytics to see where players get stuck in the bag.
Built With
- devvit
- hono
- react
- redis
- tailwindcss
- typescript
- vite

