Source code for saleGamesMobile appsEntertainment

Bean There logo

Bean There

A cozy pixel-art coffee shop game for phones, with accounts, cloud saves and visits to other players' cafés.

The lunch rush: a full line, four baristas, and a tap to pour
Winter: snow on the windows and garland on the counter
Regulars have stories. Finish Rosa's and her drink joins your menu
The recipe lab: invent and name your own house drinks
The night summary: sales, tips, wages, friendships and tomorrow's challenge
Grow your café: machines, furniture, staff and new locations
The Neighborhood: share your café and browse other players'
Visit another café and leave a card and a tip
Coming back to see who stopped by while you were away
Watch another player's café run live
Passwordless sign-in with a 6-digit code, made for home-screen play

Bean There is a relaxed pixel-art coffee shop game built for a phone held upright. You run a little New York coffeehouse through the seasons, and you can't go bankrupt.

The game

  • Days that play themselves, with you at the counter. Each morning you restock, hire and build. Then you open, and a 150-second day runs from 7am to 7pm. Customers arrive with the weather, holidays, the lunch rush and your reputation. Tap to speed up the drink you're making and pour latte art.
  • Seasons and weather, each changing who comes in and what they order. A daily chalkboard challenge pays a bonus.
  • Baristas with their own traits, who level up as they work.
  • Regulars with stories. Eight regulars each have three short chapters, unlocked through friendship. Finishing one adds their drink to your menu and their photo above the counter.
  • A recipe lab for house drinks: pick a base, milk, syrup and topping, name it, and learn how the neighborhood likes it.
  • Upgrades and branches: espresso machines, a velvet sofa, a record player and more. Open shops in other neighborhoods, each run by a manager who sends profits every night.
  • The Neighborhood. Share your café with a link, show up in a public gallery, and visit other players' cafés live, leaving a card and a tip. Players can report a café, and three reports hide it.
  • Earnings while you're away, from the takeaway window.
  • Sound effects and a seasonal jazz loop, all synthesized in the browser.

How it's built

  • A headless game. All the rules live in src/shared, with no DOM and seeded randomness, so the tests replay whole days. The page just draws the state and turns taps into commands.
  • Art drawn in code. Every sprite and icon is a palette map drawn into a 128×176 scene. There are no image files besides the icons, so it's easy to restyle.
  • Content is data. Drinks, supplies, upgrades, seasons, regulars and their stories are entries in src/shared/content. Adding a drink or a regular means adding an entry.
  • Offline first. It plays and saves in the browser, installs to a home screen as a PWA, and works with no connection. An account is a copy, never a requirement.
  • A small server on nitro under Vite, with Postgres through Drizzle. It handles passwordless email sign-in (a 6-digit code, since home-screen apps can't open emailed links), cloud saves where the furthest game wins, shared cafés and visits. Emails go through an outbox in the same transaction as the write.
  • Tested: 67 tests for the game and the server, run against the real migrations on PGlite with no database needed, plus 153 tests for the two packages it is built on.

What you need

Node 24 and pnpm. For accounts and the Neighborhood, add a Postgres database (Neon works) and a Resend key for the sign-in email. It deploys to Vercel as it is. The README walks through running it locally, deploying it, every environment variable, and the files to change to rename it.

What's included

  • The full source: the game, the server, migrations and tests.
  • @fndq/resource-kit and @fndq/auth, the two packages the server is built on, in packages/ with their own tests.
  • docs/decisions.md, which explains why each part works the way it does, and AGENTS.md, with the rules for working on it, written for you and for coding agents.

Not included yet: deleting an account from inside the game, sound settings beyond on and off, and a pass over the sprites by an artist. Everything is drawn in code.

This is the current release. Updates aren't included; you can buy a newer release later.

Services you'll need

To run it, you'll need an account with each of these, or to host them yourself.

  • Accounts, cloud saves and shared cafés. Any Postgres works; Neon is what it's set up for. Without it the game plays and saves in the browser.

  • Resend ↗Optional

    Sending the sign-in email with its 6-digit code. Without it the email prints to the server log, which is fine locally but not in production.

  • Vercel ↗Optional

    Hosting. Any Node host that runs a nitro build works.

License

It doesn't come with a license file of its own, so the standard license in Moatless's Terms applies: you can use and change the code, and build products with it, including commercial ones, but not resell or redistribute the code itself.

Reviews

No reviews yet.

Releases

  1. v1.0.0Dec 4, 2026

    The first release of Bean There: the full game, its server, migrations and tests, and the two packages it's built on.

    To get started, follow the README: pnpm install, copy .env.example to .env, then pnpm db:migrate and pnpm dev. The game plays without a database. Add Postgres and Resend when you want accounts and the Neighborhood.