Jeffrey Bernadas

Full Stack Developer

I build enterprise-grade, responsive digital solutions for the web and mobile — systems that hold up when they're carrying real weight.

Back to Projects

Cozy Zen

Description

A multiplayer pixel-art virtual coworking space. People join a shared realm, create a character, walk around a hand-crafted town, sit at a desk, and focus to lo-fi music while seeing everyone else move around in real time. Beyond the solo study tools (Pomodoro and Flow timers, Zen mode, to-dos, goals, habits, a journal, streaks, and Scholar XP), it is built to be social: shared Focus Together rooms on one timer, map, realm, and direct chat, friends, a nook of your own to decorate and open to visitors, a pet that follows you around, and calm things to do between sessions such as fishing, a playable piano, and minigames with rated chess and leaderboards. It runs on a coin economy with a second premium currency, bundles, and a Hearth membership paid through Stripe subscriptions. The world is rendered with PixiJS while all UI runs as a React DOM overlay, backed by a dual-process NestJS server using Socket.IO with a Redis adapter, RabbitMQ, and a durable workflow engine for long-running jobs.

Features

World & Rendering

  • -PixiJS pixel-art world with depth-sorted floor, above-floor, and object layers
  • -Camera with bounds clamping and a free-look mode
  • -React DOM UI overlay with a draggable HUD layered over the canvas
  • -TexturePacker sprite-atlas pipeline with crisp nearest-neighbor rendering
  • -Sound effects and an admin-managed ambient sound library

Character System

  • -Character creation with layered traits (body, hair, glasses, outfit)
  • -Runtime color tinting for hair, outfit, and skin tone
  • -Live in-dialog character preview and a wardrobe for owned cosmetics

Realms, Maps & Movement

  • -Realm and map hierarchy with capacity limits
  • -Sparse JSON tilemaps with walk-to-edge map transitions
  • -WASD, arrow-key, and click-to-move movement with BFS pathfinding
  • -Server-side movement validation for collision and rate limiting
  • -Admin map editor with visual tilemap editing and draft save/load

Multiplayer Presence

  • -Real-time position sync over Socket.IO with a Redis adapter
  • -Online user tracking with per-realm and per-map capacity
  • -Live focus status on profile cards (for example "Focusing · 1h 24m")
  • -Disconnect grace period, AFK handling, and stale-session cleanup

Focus & Study

  • -Pomodoro timer with configurable work and break durations
  • -Flow mode for open-ended sessions without a fixed timer
  • -Zen mode that strips back the HUD with an aura and vignette
  • -Sessions persisted in Redis and resumed across disconnects
  • -Focus tags for categorizing sessions
  • -Global lo-fi radio with synced now-playing and an admin-managed playlist

Focus Together

  • -Shared focus rooms on one host-controlled timer (Pomodoro or Flow)
  • -Public, Friends, or Private rooms, joined from a room list, a friend invite, or a code
  • -Room chat, with time, stats, and rewards tracked per member

Almanac (Productivity Tools)

  • -To-do list with categories, subtasks, recurrence, and drag-to-reorder
  • -Goals and habits tracking
  • -Rich-text journal with pinned entries and monthly grouping
  • -Noteboard: a corkboard of notes saved to your account
  • -Scratch pad: freehand drawing notebooks

Progression

  • -Scholar XP with levels, ranks, and level-up celebrations
  • -Study streaks, lifetime totals, and activity-map statistics
  • -Daily missions with admin templates, progress tracking, and claimable rewards
  • -Community focus goal that sends a coin reward to everyone when reached

Social

  • -Friends with requests, presence, and blocking
  • -Map and realm chat with speech bubbles, plus direct messages
  • -Chat moderation and user reporting with an admin review queue
  • -Notification bell for everything that happened while you were away
  • -Real-time announcements with per-user read tracking

Nooks & Pets

  • -A personal nook in one of three rooms (Cozy room, Roomy flat, Big loft)
  • -Decorate with furniture from a catalog
  • -Choose who may visit (Friends, Anyone, Just me), up to 6 people inside
  • -Pets in 11 kinds that follow you, sit beside your chair, and celebrate finished sessions
  • -Pets find 1 to 100 coins on your first login of the day

Minigames & Activities

  • -Chess against Stockfish bots or rated PvP with Elo per time control (Bullet, Blitz, Rapid, Classical)
  • -Four in a Row, Reversi, Checkers, Sungka, Memory, Snakes & Ladders, Crazy Eights, and Stackwell
  • -Fishing as a calm activity between sessions, with catch records
  • -A playable piano that everyone on the same map hears
  • -Leaderboards for minigames and fishing only, never for study time

Mochi

  • -A sleepy scholarly owl companion you can chat with, powered by OpenAI (GPT-4o mini)

Economy & Monetization

  • -Coin wallet with an auditable ledger and daily login rewards
  • -Embers, a premium second currency that comes from purchases and the Hearth membership
  • -Shop for cosmetics, pets, furniture, and rooms with members-only, level, and rank gates plus sale windows
  • -Bundles with their own pricing and availability windows
  • -Hearth membership through Stripe subscriptions with monthly Embers, the Stripe customer portal, and membership gifts to friends
  • -Coin packages via Stripe checkout or an InstaPay manual claim flow with admin review and refunds
  • -Admin price list, bundle, package, and payment-method management

Platform & Infrastructure

  • -Keycloak OIDC auth with DPoP and sync-on-demand profiles
  • -Durable workflow engine: multi-step jobs saved in PostgreSQL that resume safely after a crash, with an admin page to retry or discard runs
  • -Personal data export and community reward delivery built on durable workflows
  • -Admin panel covering realms, maps, missions, store, cosmetics, users, reports, announcements, and audit logs
  • -Runtime system configuration and audit logging
  • -Transactional emails via React Email and Resend
  • -MinIO storage, Elasticsearch logging, Sentry, and Elastic APM

Tech Stack

Frontend

  • React 19
  • TypeScript
  • Vite
  • PixiJS 8
  • PixiJS Sound
  • Tailwind CSS v4
  • Shadcn/ui
  • Redux Toolkit Query
  • Socket.IO Client
  • Motion
  • Recharts
  • TipTap
  • dnd-kit
  • chess.js
  • Zod

Backend

  • NestJS
  • TypeScript
  • Prisma
  • PostgreSQL
  • Redis
  • RabbitMQ
  • Socket.IO
  • Stockfish

Infrastructure

  • Keycloak
  • MinIO
  • Elasticsearch
  • Kibana
  • Sentry
  • Elastic APM

External Services

  • Stripe
  • OpenAI
  • Resend
  • React Email
Status● Open to interesting work
Local--:--:--
Zone...
Hostself · netcup · ubuntu 22.04