sYnX is a to-do list app for the web and Android. The web app is a Remix app on Cloudflare Workers with a Cloudflare D1 database. The Android app is built with Expo and React Native, and uses the same account and data through the web app's REST API. Both live in this repo.
Live at synx.christran.io.
![]() |
![]() |
![]() |
![]() |
| Tasks | Calendar | Settings | What's New |
Lists and tasks (web and mobile)
- Multiple lists, each with a category:
Checklist,Study,Shopping,Movies,Work,Personal,Travel,Fitness, or a custom one. - Tasks with a priority (none, low, medium, high), an optional duration (
5mto60mpresets or a custom value), and subtasks nested under their parent task. - Reminders, with quick presets or a picked date and time, and recurrence (daily, weekly, monthly). Repeating tasks keep their local clock time in your home time zone, including across daylight saving changes.
- Inline editing of task and list titles, search (including subtask text), filters (all, active, done), sorting by date created, priority, reminder time or name, and clearing completed tasks.
- A calendar view next to the list view. On the web you can drag unscheduled tasks onto a day.
Sharing
- Each list is Private, View-Only or Collaborative. Anyone with the link can open a View-Only list, and anyone with the link can edit a Collaborative one.
- Lists you open from someone else's link appear under "Shared with me", with the owner's display name. Emails are never shown.
Accounts and guest mode
- Sign-in goes through sYnID, an OpenAuth server at
auth.christran.io, with PKCE. Sessions renew in the background. - Without signing in, the web app works in guest mode. Guest lists are kept in the browser's local storage and move to your account when you sign in.
Reminders and notifications
- A cron trigger runs every minute and sends due reminders by email (Resend), text message (an email-to-SMS carrier gateway through Resend, or Twilio), Discord webhook, and push notification to your phones (Firebase Cloud Messaging).
- The web app can also show browser notifications while it's open.
- Reminder channels, your display name and your home time zone are set in Settings.
Web extras
- Five color themes: Midnight Indigo (default), Emerald Forest, Sunset Rose, Cyberpunk Neon and Light Pastel.
- A progress ring for each list, confetti when you finish the last task, and a What's New popup for each release.
For the Android app's extras, see Mobile app.
| Framework | Remix 2.17 (on Vite 5) with React 19, running on Cloudflare Workers with static assets |
| Database | Cloudflare D1 (synx-db, binding DB) |
| Styling | Tailwind CSS 3 |
| Auth | OpenAuth client (@openauthjs/openauth) against sYnID |
| Validation | Valibot |
| Tooling | Wrangler 4, TypeScript 5.8, ESLint 9 (flat config), Vitest 4 with @cloudflare/vitest-pool-workers |
server.ts is the Worker entry. Its fetch handler serves the Remix app, and its scheduled handler is the every-minute reminder cron (triggers.crons in wrangler.jsonc).
The mobile app uses these routes. They expect a sYnID access token in an Authorization: Bearer <token> header.
| Route | Methods |
|---|---|
/api/v1/lists |
GET, POST |
/api/v1/lists/:id |
GET, PUT, DELETE |
/api/v1/lists/:id/share-mode |
PUT |
/api/v1/lists/:id/shared |
DELETE (remove from Shared with me) |
/api/v1/todos |
GET, POST |
/api/v1/todos/:id |
PUT, DELETE |
/api/v1/todos/:id/completed |
POST |
/api/v1/todos/:id/toggle |
POST |
/api/v1/todos/:id/mark-reminder-sent |
POST |
/api/v1/todos/clear-completed |
POST |
/api/v1/settings |
GET, PUT |
/api/v1/settings/time-zone |
PUT |
/api/v1/devices |
POST (register a push token), DELETE (unregister it) |
Set these on the Worker in the Cloudflare dashboard, or locally in a .dev.vars file (gitignored). Only DB is needed to run locally. Each notification channel is skipped when its secret isn't set.
| Name | Used for |
|---|---|
DB |
D1 binding, set up in wrangler.jsonc |
OPENAUTH_ISSUER |
sYnID issuer URL (defaults to https://auth.christran.io) |
CLIENT_ID_MAP |
Optional JSON map from hostname to OAuth client ID (defaults to synx) |
SYNX_ALLOWED_CLIENT_IDS |
Optional comma-separated list of accepted token audiences (defaults to synx) |
RESEND_API_KEY |
Reminder emails and email-to-SMS |
TWILIO_ACCOUNT_SID, TWILIO_AUTH_TOKEN, TWILIO_FROM_NUMBER |
Text messages through Twilio, used when no carrier is set |
FIREBASE_SERVICE_ACCOUNT_JSON |
Push notifications through FCM |
The Android app lives in mobile/. It's an Expo SDK 58 app (React Native 0.88, React 19.3) in the Expo project synx, owned by chris-tran, with the Android package io.christran.synx. It uses the production web app's /api/v1 routes.
Features
- Tasks, Calendar, Lists and Settings tabs, with the same lists, tasks, subtasks, priorities, durations, reminders, recurrence and sharing as the web app.
- Sign-in with sYnID (PKCE) through the system browser. The session is kept in secure storage and renews in the background.
- Push notifications for reminders through Firebase Cloud Messaging. The phone's push token is registered with
/api/v1/devicesand removed when you sign out. - Three Android home screen widgets: Active List (check off tasks), Pinned List & Up Next, and Progress & Quick Add (a progress ring and one-tap add). Checkoffs made while offline are queued and synced later, and a background task keeps the widgets up to date.
- Optional sync of tasks that have reminders to a device calendar you choose.
- An offline copy of your lists (TanStack Query, saved to AsyncStorage), light, dark and system themes, haptics, and deep links (
synx://links andsynx.christran.iolist links, including a quick-add action). - Home time zone support: when you travel, the app asks before switching your repeating reminders to the local time.
shared/holds code that both apps use: validation schemas, recurrence and time zone logic, list permissions, changelog types and widget snapshot logic.mobile/scripts/sync-shared.jscopies it intomobile/src/shared/. The copy runs onnpm start,prebuildand the EAS pre-install hook, and CI fails if it's out of date.- The mobile version's single source of truth is
MOBILE_APP_VERSIONinshared/mobile-version.ts.cd mobile && npm run sync-versioncopies it intomobile/package.jsonandmobile/app.json, andmobile/app.config.jssets Expo'sversionfrom it. EAS manages the AndroidversionCoderemotely. - The current version and its release notes are in the mobile changelog.
cd mobile
npm install
npm start # expo start (syncs shared/ and the version first)
npm run android # build and run the native Android app (expo run:android)
npm run typecheck
npm run lint # expo lint (ESLint with eslint-config-expo)
npm run doctor # expo-doctor; needs Node 22.13 or newerRun npm run doctor after any change to mobile dependencies and before a release. If package versions don't match the Expo SDK, fix them with npx expo install --fix.
Push notifications need mobile/google-services.json, which is gitignored. In EAS builds, mobile/scripts/decode-google-services.js writes it from the GOOGLE_SERVICES_JSON_BASE64 environment variable.
mobile/.eas/workflows/android-preview.ymlgates preview releases on native runtime fingerprints on every push tomainthat touchesmobile/**orshared/**, ignoring Markdown files. For pure JS/TS changes matching an existing preview build's native fingerprint, it publishes an Over-The-Air (OTA) update to thepreviewchannel (saving EAS build credits). When native dependencies or configs change, it triggers a full Android preview APK compilation. Pull requests never start a build.- When the workflow finishes,
mobile/scripts/post-build-comment.jscomments on the merged pull request with either the OTA update details or the APK build link with an embedded QR code. It needs theSYNX_GITHUB_COMMENT_TOKENsecret in the EASpreviewenvironment. - To skip the build, put
[eas skip]in the commit message (or in the PR title, for squash merges). mobile/eas.jsonalso hasdevelopmentandproduction(app bundle) profiles.- Over-The-Air (OTA) updates architecture, runtime compatibility rules, and rollout plan are documented in
docs/mobile-ota-updates.md.
You need Node 22 or newer: Wrangler 4 requires it, and CI uses Node 22. .nvmrc pins 22 for nvm and Workers Builds.
npm install
npx wrangler d1 migrations apply synx-db --local # create the local D1 database
npm run dev # Remix dev server on Vite, with the local D1The local app runs in guest mode until you sign in. Signing in locally needs a sYnID client that allows your local callback URL.
| Script | What it does |
|---|---|
npm run dev |
Remix dev server (Vite), with the Cloudflare bindings from wrangler.jsonc |
npm run build |
Production build into build/ |
npm run preview |
Build, then run it in the Workers runtime with wrangler dev |
npm start |
wrangler dev on an existing build |
npm run check |
Typecheck, build and wrangler deploy --dry-run |
npm run cf-typegen |
Regenerate worker-configuration.d.ts (binding types) |
npm run lint |
ESLint |
npm test |
Vitest |
npm run test:e2e |
Playwright end-to-end tests against local wrangler dev |
npm run typecheck |
Web typecheck |
npm run typecheck:mobile-tests |
Typecheck the root tests that import mobile code, using the mobile types |
npm run deploy |
Build, apply D1 migrations to production, then deploy. Workers Builds runs this; don't run it by hand |
npm run deploy:preview |
Build, apply D1 migrations to the preview database, then deploy a Worker Preview. Workers Builds runs this for PRs; don't run it by hand |
Tests live in test/ (Vitest) and e2e/ (Playwright).
- Unit and Integration Tests (
test/) run inside the Workers runtime with@cloudflare/vitest-pool-workers. Each test file gets its own isolated D1 database, built directly frommigrations/. They cover the web server routes,shared/, and parts of the mobile app. - End-to-End Tests (
e2e/) run in real Chromium via Playwright against a localwrangler devWorker instance backed by a local D1 database. They test the full user-facing application: guest workflows, synthetic test authentication, multi-user list sharing, and permissions.
GitHub Actions runs three parallel CI jobs on every pull request (branch protection gates merge on all checks passing):
# Web Job
npm run lint
npm test -- --run --maxWorkers=2
npm run typecheck
npm run typecheck:mobile-tests
# E2E Job
npx wrangler d1 migrations apply synx-db --local
npm run test:e2e
# Mobile Job
cd mobile && npm run typecheckCI also checks that mobile/src/shared/ and the mobile version files are in sync, and runs expo-doctor and the mobile lint (cd mobile && npm run lint) when mobile/ or shared/ changes. Dependabot opens weekly pull requests for production npm dependencies.
Playwright tests run against a local wrangler dev server automatically managed by playwright.config.ts.
1. One-time browser setup:
npx playwright install --with-deps chromium2. Ensure local D1 migrations are applied:
npx wrangler d1 migrations apply synx-db --local3. Run the E2E test suite:
npm run test:e2e4. Run specific test files or UI mode:
npx playwright test e2e/guest-list-check.spec.ts
npx playwright test --uiThe synx Worker deploys through Cloudflare Workers Builds, which is connected to this repo:
- Pull requests and other branches run
npm run deploy:preview: build, apply any pending D1 migrations to the preview database (synx-preview), thenwrangler preview. mainrunsnpm run deploy: build, apply any pending D1 migrations to production, thenwrangler deploy.
The app stores its data in a Cloudflare D1 (SQLite) database named synx-db. The schema lives in numbered SQL files in migrations/, and Wrangler records which ones have run in a d1_migrations table inside the database. migrations/0000_baseline.sql is the full schema as it existed in production on Oct 27, 2026, and migrations/0001_indexes.sql adds indexes for the busiest queries.
- Create a new numbered migration file and write the SQL in it:
npx wrangler d1 migrations create synx-db <short_name>
- Apply it to your local dev database:
npx wrangler d1 migrations apply synx-db --local
- Run the tests. They build their database from
migrations/, so they pick up the change automatically.
Rules:
- Never edit a migration that has already been applied. Fix mistakes with a new migration.
- Keep changes additive within a release (expand, then contract): add the new column or table first, ship code that uses it, and only drop the old one in a later release.
- Don't run DDL (
CREATE/ALTER/DROP) from app code. The app assumes the schema frommigrations/is already in place.
Production migrations run in the deploy pipeline, not by hand. npm run deploy (what Cloudflare Workers Builds runs on every push to main) builds the app, applies any pending migrations to the remote database, then deploys the Worker. If a migration fails, the deploy stops before the new code goes live. To see which migrations production has applied (read-only):
npx wrangler d1 migrations list synx-db --remoteThe web and mobile apps have separate SemVer version lines: minor versions for features, patch versions for fixes, and major versions for breaking changes. The full rules, including when to bump and the release checklist, are in .claude/rules/versioning.md.
- Web:
WEB_VERSIONand the What's New entries are in the web changelog. Bump it only for user-facing web changes. - Mobile:
MOBILE_APP_VERSIONis inshared/mobile-version.ts, and the release notes are in the mobile changelog. - Within each version, changelog items go NEW, then IMPR, then FIX.
test/changelog-order.test.tsenforces this.
app/ Remix app: web UI, server code, /api/v1 routes
routes/ Pages ($id.tsx is the main list page), auth routes, API routes
constants/ Web changelog and WEB_VERSION
server.ts Worker entry: fetch handler and reminder cron
migrations/ D1 schema migrations
shared/ Code shared by web and mobile (copied into mobile/src/shared/)
mobile/ Expo / React Native Android app
src/ Screens, components, widgets, services, API client
scripts/ sync-shared, sync-version, google-services decode, EAS build comment
plugins/ Expo config plugins (widget progress ring)
.eas/workflows/ EAS Android preview build workflow
test/ Vitest tests (Workers runtime)
scripts/ PKCE flow check against a mock sYnID server
docs/screenshots/ README screenshots
graphify-out/ Code knowledge graph for coding agents
wrangler.jsonc Worker config: D1 binding, cron trigger, assets
Rules for coding agents are in CLAUDE.md, .claude/rules/, .cursor/rules/ and the other agent rule folders.
Licensed under the GNU Affero General Public License v3.0 or later (AGPL-3.0-or-later).






