English · فارسی
Quests and habits become XP, six attributes and a living chronicle.
AI proposes, honest rules decide, and every reward explains itself.
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.
| 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.
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).
| Daily quests, contracts and long-term objectives, with recurrence, subtasks, timers, reminders and when-and-where intentions. | Strength, Intelligence, Discipline, Creativity, Vitality and Social. Levels, titles and emergent classes follow from what you do, never from what you claim. | 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. |
| 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. | Private guilds with a feed, reactions, comments and collective challenges built for encouragement, not comparison. | Week, month and year analytics, rhythm and balance views, a full reward ledger, and AI summaries grounded in your real data. |
| Ashen Codex by night, Vellum by day. Follows your device, or switch with one tap from the character sheet. | 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. | Everything works on the device in guest mode, offline included. Accounts, sync and guilds are opt-in. |
These follow your GitHub theme: switch between light and dark to see the other side.
Character sheet Level, condition and today's quests |
Rewards that explain themselves Every point has a reason |
Quests and habits Daily, contracts, objectives |
Chronicle, in Persian Right to left, Jalali calendar |
More screenshots: both themes side by side, the desktop chronicle, settings
Persian, light |
Persian, dark |
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.
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=trueRun 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.
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")]
- 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 |
| 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.
- 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
| 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.
.
├── 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-infosCI runs all of these plus the web build on every push (ci.yml).
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.shEnglish 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.
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.
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.

