No description
  • TypeScript 94.3%
  • HTML 3.1%
  • CSS 1.1%
  • JavaScript 0.9%
  • Python 0.6%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Alejandro C. Luque 66c83d3205 Log the admin panel in the progress log
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 16:16:18 +01:00
apps Add the admin panel: admins edit the codex's species, flowers and mutations 2026-11-21 16:15:50 +01:00
docs Log the admin panel in the progress log 2026-11-21 16:16:18 +01:00
libs Add the admin panel: admins edit the codex's species, flowers and mutations 2026-11-21 16:15:50 +01:00
tools Initial commit 2026-11-03 18:02:32 +01:00
.gitignore Initial commit 2026-11-03 18:02:32 +01:00
.npmrc Initial commit 2026-11-03 18:02:32 +01:00
.nvmrc Initial commit 2026-11-03 18:02:32 +01:00
.prettierignore Initial commit 2026-11-03 18:02:32 +01:00
.prettierrc Initial commit 2026-11-03 18:02:32 +01:00
docker-compose.yml Initial commit 2026-11-03 18:02:32 +01:00
eslint.config.mjs Import maps through plugins: a plugin kit, and Spain's importers in the Spain plugin 2026-11-21 16:00:10 +01:00
nx.json Initial commit 2026-11-03 18:02:32 +01:00
package.json Initial commit 2026-11-03 18:02:32 +01:00
pnpm-lock.yaml Initial commit 2026-11-03 18:02:32 +01:00
pnpm-workspace.yaml Initial commit 2026-11-03 18:02:32 +01:00
README.md Import maps through plugins: a plugin kit, and Spain's importers in the Spain plugin 2026-11-21 16:00:10 +01:00
tsconfig.base.json Import maps through plugins: a plugin kit, and Spain's importers in the Spain plugin 2026-11-21 16:00:10 +01:00
vitest.shared.mts Initial commit 2026-11-03 18:02:32 +01:00

Habitea

Keep your habits, and a hive of bees grows with you.
A habit tracker and focus timer joined to a cozy pixel-art bee game, set on the real map of Spain. What you do in real life earns nectar and pollen; the game turns them into hives, queens and honey.

Get started · Features · How it works · Documentation

Habitea in play: a quick flight over the map from Spain into the comarcas of Jaén, then the homestead, where a new hive is placed beside a working one and given a princess and a drone


Why Habitea

Habit trackers are easy to start and easy to drop. Habitea gives your habits somewhere to go: every habit you keep and every minute you focus feeds a small world that keeps growing while you do.

  • Your habits, made visible. Morning stretches, no phone after ten, two litres of water: each one kept earns nectar, a perfect day earns pollen, and your consistency becomes your bees' vitality.
  • A real game, not a badge wall. Breed queens with inherited genes, discover new species by crossing them, craft frames at a workbench, press combs into honey and wax, and build your homestead block by block.
  • Set where you live. The world is the real map of Spain, built from open data. Your homestead stands on the real ground around your town, and you travel out one comarca at a time, collecting real landmarks for your museum.
  • Kind when you slip. Missing a day slows your hive; it never stops it. Nothing you earned is ever taken back, and vacations keep your streaks safe.
  • Yours to run. Habitea runs on your own machine or server, with accounts by email and password or through your own OpenID Connect provider. It speaks English and Spanish.

How it works

  Real life                     Rewards                        The game
  ─────────                     ───────                        ────────
  keep a habit      ──►  nectar when the day closes   ──►  buy kits, seeds, passages
  a perfect day     ──►  pollen                       ──►  craft, build, explore
  focus 25 minutes  ──►  nectar + pollen, and a       ──►  wild hives and landmarks
                         chance to explore                 to find
  keep it up        ──►  vitality                     ──►  bees work faster
  1. Keep your habits in the journal. Daily, on some weekdays, or a few times a week; done-or-not, an amount, or something to avoid.
  2. Focus for 15 to 90 minutes. Stay with it and your bees forage and explore while you work.
  3. Build your homestead. Place hives beside flowers, start colonies with a princess and a drone, harvest combs and press them into honey.
  4. Breed and explore. Cross species to find new ones, open neighbouring comarcas, and fill your museum.

Features

A homestead on real ground

The homestead: two hives with bees flying around them, a workbench and wildflowers, on the olive groves and sierra of Jaén

Your homestead stands on the land that is really around your town, at half a kilometre a block: Jaén's olive groves, the sierra's scrub and rock, its towns and reservoirs, at their real heights. Place hives, flowers, trees, chests and workbenches from the hotbar onto glowing spots, raise and lower the ground with the spade, and build across every comarca you have opened.

→ The homestead

Bees with real genetics

A hive's panel: its Iberian honeybee queen, her mate, the hours of life she has left and the honey in the hive The bee codex: species discovered, and the rest still to be found

Every bee carries two alleles of each gene, one shown and one hidden, dominant or recessive: species, productivity, fertility, resilience, gentleness, lifespan and the flower she works. Put a princess and a drone in an empty hive and she becomes its queen. When she dies she leaves a brood bred from her and her mate. Cross two species and a new one may appear, sometimes hidden behind a dominant gene until you analyse your bees.

Fifteen species live wild across Spain's landscapes, each working a flower of a real Spanish honey: heather and chestnut bees in the Atlantic woods, thyme bees on the steppe, orange-blossom bees in Valencia's orchards, the tajinaste bee on the Teide's lava. Nine more are bred by crossing bees from different landscapes, named after the places behind Spain's best-known honeys.

→ Bees and breeding

Craft, harvest and press

The workbench: a log on the 3 by 3 grid makes four planks, beside the inventory The shop: hive kits, chests and land blocks for nectar and pollen, with tabs to build, garden, craft and sell

Fell trees for logs and turn them into planks, sticks, tools, chests and hive kits on a 3 by 3 crafting grid. Frames in a hive change how fast the bees work and what kind of comb they build. Press the combs into honey, wax, propolis and royal jelly, and sell what you don't need back to the shop, so the game can pay its own way.

→ Crafting, combs and honey

The real map of Spain

The map of Jaén: its comarcas, the two opened in green with the home cottage, the rest in reach Sierra Mágina's card: its sierra, olive grove and farmland, its climate, and the price of a passage

The game opens on a pixelated map of the world you can drag and zoom like a web map: Spain opens by community, province and comarca. Each comarca shows its real landscape and climate. Buy a passage to the ones beside yours and your land grows to include them, across any community, and by ferry to the Balearics, the Canaries, Ceuta and Melilla.

→ The map and the museum

A museum of real landmarks

The museum: five of forty landmarks found in the Comarca Metropolitana de Jaén, with their photographs

Every focus session explores your comarcas, and the longer you focus, the likelier a find. Cathedrals, castles, Arab baths and museums join your collection with their photograph and credits; the famous ones are the rarest. Every landmark is a real heritage site, imported from Wikidata and Wikimedia Commons.

→ The museum

Habits, focus and quests

The habit journal: today's earnings, a habit kept four days in a row, and an avoid habit with a slip The focus panel: sessions of 15, 25, 50 and 90 minutes with what each pays The quest book: the First flight chapter as a map of quests joined by what unlocks what
  • The habit journal opens over the game: today's habits, streaks, slips and vacations. Earnings show as you go and are credited when the day closes, with a three-hour grace period after midnight.
  • Focus sessions of 15, 25, 50 or 90 minutes pay nectar and pollen. Leave the app for more than ten seconds and the session is lost.
  • The quest book teaches the game in its first chapter and rewards long-term consistency in the next, with loot chests to open by hand.

→ Habits and focus · Quests


Get started

You need: Node.js 24, pnpm 11 and Docker.

pnpm install
cp apps/api/.env.example apps/api/.env.local
pnpm db:up                                        # PostgreSQL in Docker
pnpm db:migrate                                   # create the tables
pnpm nx run atlas-import:import -- --all         # the map, bees and flowers: an hour the first time
pnpm dev:api                                      # http://localhost:3000/api
pnpm dev:web                                      # open http://localhost:4200

Create an account, choose your home town, and the game takes you from there. The first chapter of the quest book walks you through your first hive. Homes can be chosen anywhere in Spain.

→ Running Habitea: configuration, accounts and sign-in providers, the map import, and checks.

Learn more


Neglect slows the hive; it never stops it. Miss a day and your bees keep working, a little slower, until you're back.