Skip to content
AliKahroodiEEPublic

About

Wyrd — a dark-fantasy RPG productivity app where real-life effort shapes a persistent character. Flutter (Android, iOS, macOS, Windows, Web), English + Persian (RTL), Supabase, Claude. Source-available under PolyForm Strict 1.0.0.

Resources

Contributing

Stars

2 stars

Watchers

1 watching

Forks

Repository files navigation

Wyrd — a dark-fantasy RPG for real life. Your character is who you become.

English · فارسی

Turn real effort into a character that grows.

Quests and habits become XP, six attributes and a living chronicle.
AI proposes, honest rules decide, and every reward explains itself.


Open Wyrd Android APK Try the demo

CI Web demo Flutter Dart Platforms Languages License

Get Wyrd · Features · Screenshots · Quick start · How it works · Docs · License


Tip

Play now at wyrd-app.pages.dev: one account on the web, Android and iPhone, with sync, guilds and push notifications. Just looking? The live demo runs entirely in your browser with six weeks of sample history, and nothing leaves your device.

Get Wyrd

On How
Any browser Open wyrd-app.pages.dev. Chrome and Edge offer Install in the address bar.
iPhone and iPad Open the site in Safari, tap Share, then Add to Home Screen. Notifications work in the Home Screen app (iOS 16.4+).
Android Download the APK from Releases, or add this repository to Obtainium for automatic updates.

One account works everywhere: sign in with an emailed code, a password, Google or GitHub, and your character follows you between devices. Guests can play without an account; their data stays on the device.

Why Wyrd

Most habit apps hand out points for ticking a box. Wyrd asks what you actually did, then grows a persistent character from it: study raises Intelligence, training builds Strength, keeping a promise you planned forges Discipline. An AI reads the effort; a deterministic engine caps it, applies diminishing returns, writes it to an auditable ledger and tells you exactly why you grew.

No shame mechanics, no gambling loops, no streak terror. Attributes never decay while you rest, pause mode exists for exams and illness, and guild challenges never punish a group for one person's off day. The design is grounded in published research on motivation and habit formation (docs/research).

Features

⚔️ Quests that fit real life

Daily quests, contracts and long-term objectives, with recurrence, subtasks, timers, reminders and when-and-where intentions.

🧬 Six attributes, honest XP

Strength, Intelligence, Discipline, Creativity, Vitality and Social. Levels, titles and emergent classes follow from what you do, never from what you claim.

⚖️ AI proposes, rules decide

The rules engine exists twice, in Dart and TypeScript, bound by shared conformance vectors, so the phone and the server always agree on every point.

🔑 Bring your own AI

Anthropic, OpenAI, Google Gemini, or any compatible service (OpenRouter, Groq, Ollama…). Your key stays in your device's secure storage. No AI? Built-in rules evaluate everything.

🛡️ Guilds

Private guilds with a feed, reactions, comments and collective challenges built for encouragement, not comparison.

📜 A chronicle that writes itself

Week, month and year analytics, rhythm and balance views, a full reward ledger, and AI summaries grounded in your real data.

🌗 Light and dark

Ashen Codex by night, Vellum by day. Follows your device, or switch with one tap from the character sheet.

🌍 English and فارسی

Opens in your device's language. Full right-to-left layout, Jalali calendar, Persian digits, and mixed-script text that always reads the right way.

📶 Local-first

Everything works on the device in guest mode, offline included. Accounts, sync and guilds are opt-in.

Screenshots

These follow your GitHub theme: switch between light and dark to see the other side.

Character sheet with an XP ring, level, title, class, condition, consistency and today's quests
Character sheet
Level, condition and today's quests
Reward sheet: +47 XP, a rank-up banner, and an explanation of each attribute gain
Rewards that explain themselves
Every point has a reason
Quest list with recurring habits, category badges and completed seals
Quests and habits
Daily, contracts, objectives
Weekly chronicle in Persian, right to left, with the Jalali calendar
Chronicle, in Persian
Right to left, Jalali calendar
Wyrd in a desktop browser: sidebar with a theme switch, character sheet with attribute radar, today's quests, achievements and recent growth
More screenshots: both themes side by side, the desktop chronicle, settings
The same character in the dark Ashen Codex theme (English) and the light Vellum theme (Persian) Weekly chronicle on desktop: summary, growth by attribute, effort distribution and rhythm
Character sheet in Persian, light theme
Persian, light
Character sheet in Persian, dark theme
Persian, dark
Settings with language and theme both on Auto
Language and theme on Auto

Every image is rendered from the real app, with its real fonts and six weeks of demo data. See Regenerating screenshots.

Quick start

You need Flutter 3.47+ (stable) and Dart 3.13+.

git clone https://github.com/AliKahroodiEE/wyrd.git
cd wyrd/app
flutter pub get
# Six weeks of sample history; drop the flag for a fresh start
flutter run -d chrome --dart-define=WYRD_DEMO=true

Run on an Android device or iOS simulator with flutter run -d <device>. Without backend configuration Wyrd runs fully on the device: every feature except accounts, sync and guilds works offline.

Demo in Persian, connecting a backend, and other options
# Seed the demo in Persian regardless of the device language
flutter run -d chrome --dart-define=WYRD_DEMO=true --dart-define=WYRD_DEMO_LOCALE=fa

# Connect a Supabase backend (accounts, sync, guilds, push)
flutter run --dart-define=SUPABASE_URL=https://<project>.supabase.co \
            --dart-define=SUPABASE_PUBLISHABLE_KEY=<publishable-key>

Backend setup is documented in backend/README.md.

How it works

flowchart TD
    Q["You complete a quest"] --> E{"Evaluate the effort"}
    E -->|"your AI key or the server's"| P["AI proposal:<br/>category, difficulty, effort"]
    E -->|"no AI configured"| H["Built-in heuristics"]
    P --> R["Rules engine:<br/>caps, diminishing returns, bonuses"]
    H --> R
    R --> C["XP, attributes, level, titles"]
    C --> L[("Local ledger,<br/>with explanations")]
    L -. "optional sync" .-> S[("Supabase:<br/>re-validated on the server")]
Loading
  • The AI never writes to your character. It returns a structured proposal. The engine bounds it, and on the server a proposal from your own AI must stay within one difficulty step and twice the duration of the server's own estimate.
  • The engine is pure and versioned. The same rules run in Dart on the device and TypeScript on the server, kept in lockstep by shared conformance vectors (ADR-004).
  • Local-first. Every change lands in a local SQLite database first (WebAssembly on the web), then syncs through an outbox with hybrid logical clocks (ADR-003).
Tech stack
Layer Built with
App Flutter · Riverpod 3 · go_router · Drift (SQLite, WebAssembly on the web) · fl_chart
Rules engine Pure Dart package, with a TypeScript twin bound by shared test vectors
Backend Supabase: Postgres with row-level security, RPCs, Edge Functions (Deno), pg_cron
AI Anthropic Messages, OpenAI Chat Completions, Google Gemini, all called directly from the device
Localization gen-l10n ARB catalogs · English and Persian · Jalali calendar via shamsi_date
CI/CD GitHub Actions: analysis, formatting and every test suite; deploys the web app to Cloudflare Pages, the backend to Supabase and signed APKs to GitHub Releases; encrypted daily backups; demo on GitHub Pages

Project status

Area State
Research, product spec, progression rules, design system, UX, architecture and ADRs ✅ docs/
Rules engine in Dart (103 tests) and TypeScript (46 tests), bound by conformance vectors ✅ packages/
Local-first app: character sheet, quests, rewards, ledger, chronicle, settings, onboarding ✅ app/
Light and dark themes with a one-tap switch; language and theme follow the device ✅
English and Persian, full RTL, Jalali and Gregorian, native or Latin digits ✅
Adaptive layouts: phone (floating bar), tablet (rail), desktop and web (sidebar, columns) ✅
Backend: schema, row-level security, sync and progression RPCs, AI functions, push ✅ backend/
Accounts, sync, server evaluation, guilds (feed, reactions, comments, challenges) ✅
Bring your own AI: Anthropic, OpenAI, Gemini and compatible services ✅
Sign-in with an emailed code, a password, Google or GitHub ✅
Production on free plans: web on Cloudflare Pages, backend on Supabase, signed APK on GitHub Releases, iPhone Home Screen app ✅ docs/deployment.md
What has been verified, and what has not

Verified: all engine, app and backend test suites; static analysis; every migration and 117 security and behaviour checks against an offline Postgres (PGlite); type-checks of every Edge Function; the web build exercised in a browser in English and Persian, in light and dark, at phone, tablet and desktop widths.

Not yet verified: the first production deploy (the live Supabase project, real e-mail, Google and GitHub sign-in, AI and push calls) and the native apps on a device. CI builds the signed Android APK on every release tag; iOS uses the Home Screen web app. Persian copy needs a review by a native speaker before release.

Roadmap

  • Foundation: rules engine, local-first app, quests, character sheet, English and Persian
  • Connected: accounts, sync, server-side evaluation, push notifications
  • Social: private guilds with feed, reactions, comments and challenges
  • Chronicle: week, month and year analytics, AI-written chronicles
  • Production: free hosting for web, backend and Android; Google and GitHub sign-in; push on every platform
  • Motivation engine: daily briefing, evening reflection, weekly review
  • Public: public guilds and moderation, premium and cosmetics
  • Stores: Google Play and the App Store

Hosting

You want You host
The app on phones, everything local Nothing
The web app, in desktop and mobile browsers Static files only: flutter build web to GitHub Pages, Cloudflare Pages, Netlify or Vercel. On every push to main this repository deploys its demo to GitHub Pages, and the production app to Cloudflare Pages when the app changed.
Accounts, sync across devices, guilds and push The Supabase backend in backend/, on Supabase Cloud or self-hosted, shipped by deploy-backend.yml

Run your own copy for free. docs/deployment.md walks through every step on free plans, with no credit card anywhere.

AI is optional and can cost the operator nothing. Each user can connect their own Anthropic, OpenAI, Google Gemini or compatible account under Settings → AI → Your own AI. Once the key is in, the app lists the provider's models to choose from when the provider offers a list, so you usually don't have to type a model name. The key stays in the device's secure storage and goes only to that provider. OpenAI, Anthropic and Google don't serve some countries, Iran among them. From those, the app says so and quotes the provider instead of calling the key wrong; a compatible service that works there is the way in. In the browser, a local or self-hosted service must also accept requests from the site (Ollama: OLLAMA_ORIGINS; LM Studio: turn on CORS). A server-side key (ANTHROPIC_API_KEY) is supported but not required.

Development

.
├── app/            Flutter client (Android, iOS, Web)
├── packages/       Shared pure-Dart packages (the rules engine)
├── backend/        Supabase schema, row-level security, Edge Functions
├── tool/           Repository scripts (README image conversion)
└── docs/           Research, product spec, design system, architecture, ADRs
cd packages/wyrd_engine && dart test   # rules engine
cd app && flutter test                 # data, l10n, RTL lint, widgets
cd app && flutter analyze --fatal-infos

CI runs all of these plus the web build on every push (ci.yml).

Regenerating screenshots

All README images come from widget tests that run the real app with demo data, in both themes and both languages, then frame the results. A small script converts the renders to WebP (it needs Python 3 with Pillow):

./tool/readme_images.sh

Localization

English and Persian are first-class. Every string lives in ARB catalogs with stable keys, layouts use start and end instead of left and right, and the app follows the device language until the user picks one. Adding a language is a content task; see docs/localization.md. This README is also available in Persian.

License

Source-available, not open source in the OSI sense. This code is published so you can read it, learn from it and evaluate it, under the PolyForm Strict License 1.0.0. In plain terms:

  • ✅ You may read the code and run it for personal, noncommercial study or experimentation.
  • ❌ You may not redistribute it, in whole or in part.
  • ❌ You may not modify it or build new works based on it.
  • ❌ You may not use it for any commercial purpose.

For anything else (commercial licensing, partnerships, or permission to reuse part of the code), contact the author through GitHub. LICENSE.md is the binding text; this summary is not legal advice.

Contributing

Because the license does not permit derivative works, pull requests cannot be accepted without a separate written contributor agreement. Bug reports and ideas are very welcome as issues; see CONTRIBUTING.md.


If Wyrd sparks something, a ⭐ helps others find it.

Copyright © 2026 AliKahroodiEE. All rights not expressly granted are reserved.

About

Wyrd — a dark-fantasy RPG productivity app where real-life effort shapes a persistent character. Flutter (Android, iOS, macOS, Windows, Web), English + Persian (RTL), Supabase, Claude. Source-available under PolyForm Strict 1.0.0.

Resources

Contributing

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages