Skip to content
Projects

About

A local-first Flutter research notebook for meals, medication context, and evidence-oriented explanations. Educational prototype with synthetic demos.

Learning & Education

How these counts are measured

What you can do

  • Keep a simple log. Record meals, medication doses and observations in one local-first notebook.
  • Check a meal against medication timing. Educational rules compare a meal with the medications you selected and show their reasons, their sources and anything that is missing. If a dose or the time it was taken is missing, the app says it can't assess the meal yet instead of guessing.
  • Compare next-meal ideas. Choose a time and see catalog foods listed by the rules, with the reasons next to each one.
  • See how a result was computed. Each result has a "How was this computed?" section, and the Algorithm Observatory shows the rules, evidence sources and educational model traces in full.

Measured star growth

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
0

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original

ParkinSUM Companion

ParkinSUM Companion — an educational prototype exploring how meals, especially protein, may interact with levodopa timing in Parkinson's disease. Synthetic demos; not medical advice.

Brand assets: icon, logo & GitHub card

Latest release CI Flutter Educational Prototype Synthetic Demo

ParkinSUM explores one question: how might meals, especially protein-rich ones, interact with the timing of levodopa, a common Parkinson's disease medication?

Start here

What you can do in the app

  • Keep a simple log. Record meals, medication doses and observations in one local-first notebook.
  • Check a meal against medication timing. Educational rules compare a meal with the medications you selected and show their reasons, their sources and anything that is missing. If a dose or the time it was taken is missing, the app says it can't assess the meal yet instead of guessing.
  • Compare next-meal ideas. Choose a time and see catalog foods listed by the rules, with the reasons next to each one.
  • See how a result was computed. Each result has a "How was this computed?" section, and the Algorithm Observatory shows the rules, evidence sources and educational model traces in full.

Not medical advice. ParkinSUM is an educational production-architecture prototype. It is not a medical device or a clinical decision tool, and its model is not clinically calibrated. Do not use it for diagnosis, treatment, medication timing, dose selection, dietary decisions, clinical decision-making, patient care or emergencies; take health questions to a qualified clinician. Public demos use synthetic or sample data only. What the evidence does and does not show · Full disclaimer

Project site · Showcase · Documentation · Capabilities & limitations · Verification guide · Changelog

The Paper workspace

Chapter What to explore
Today A single composer for a meal, medication intake, or observation; recent activity and chapter previews.
Timeline Logged entries, record details, editing, and explicit export actions.
Next meal A time you choose, foods compared by the rules, and the reasons and limits beside them.
Insights Descriptive views of recorded entries, including logging rhythm and protein distribution.
Library Selected medications and the food/medication catalog, with source context.

Use ⌘K / Ctrl+K or the sidebar groups to open the Algorithm Observatory, rule audit trail, synthetic rule test workbench, data tools, and diagnostics. Local AI settings live under Settings → Advanced.

Paper Today chapter with one synthetic demo meal, entry composer, and zero active medications
Today: one entry composer, recent activity, descriptive figures, and the rule-based candidate preview.

Paper Timeline showing the saved synthetic demo meal
Timeline: the saved synthetic meal and its record controls.
Paper Next meal settings before generating any result
Next meal: comparison settings before generating a result.
Paper Library showing built-in medication catalog entries with zero selected medications
Library: catalog source context with no medications selected; catalog text is not individualized guidance.

Synthetic browser captures from 29 September 2026; see the capture record.

How it works

The conflict engine is deterministic and evidence-linked, and no LLM sits inside it. Each explanation shows the source references, the fields used, the inputs that were missing or uncertain, and its limitations.

  • Explicit context. Medication interpretation needs supported, catalog-backed context and explicit units. A missing nutrient stays unknown rather than becoming 0 g, and a missing dose or medication time leaves the meal unassessed.
  • Educational model traces. Literature-informed gastric-residence, absorption-opportunity and amino-acid competition traces are sensitivity views. They never choose meal times or reorder candidates (trace_only).
  • Bounded optional AI. With explicit consent, a model on your own computer (loopback only) may only reorder rule-screened, non-BLOCK candidates or reword existing copy. It cannot change medication data, conflict classifications, scores, rules, evidence or safety gates.
  • Replayable research. Synthetic cases, replay artifacts, source-quality reports and independent contract checks support review.

See the rule-engine contract, mechanistic model, Observatory design, synthetic rule workbench, and evidence scope.

flowchart LR
  Context["Explicit meal / medication context"] --> Gate["Provenance + applicability gates"]
  Gate --> Rules["Deterministic rules"]
  Rules --> Explain["Evidence + limitations"]
  Gate --> Model["Educational mechanistic traces"]
  Model --> Review["Observatory + replay review"]
  Explain --> Review

Run locally

Use Flutter 3.47.0, pinned in CI, with its bundled Dart SDK, and Node.js 22/npm for repository checks. The pubspec retains a Dart source-language floor of 3.11, but the resolved dependencies in pubspec.lock require Dart 3.13; a standalone Dart 3.11 SDK is not sufficient. Install Python 3 only if you want to serve the static showcase below.

git clone https://github.com/albertzhzhou-droid/ParkinSUM.git
cd ParkinSUM
flutter pub get
flutter devices
flutter run -d chrome --dart-define=PARKINSUM_BACKEND=local

Chrome must be installed and listed by flutter devices. The clone URL above points to the upstream project; contributors should clone their own fork when they need a branch they can push.

Complete onboarding using a fresh synthetic profile. Open Today for the workspace or Algorithm Observatory for fixed, non-personal scenarios. Firebase-backed paths are retained for internal operator validation and require separate project access; they are not needed for the local demo.

For the static showcase, serve the repository root and open /docs/site/:

python3 -m http.server 8000

Verify a change

For documentation-only changes, follow the scoped review guidance in CONTRIBUTING.md. For app changes, start with:

npm ci
dart format --output=none --set-exit-if-changed lib test tool
flutter analyze
flutter test
npm run public:preflight
npm run rules:contract

Inspect and run the broader synthetic governance checks as needed:

npm run verify:all -- --list
npm run verify:all
npm run mechanistic:replay
npm run source:quality

The public verification guide documents command scope, prerequisites, expected outputs, and failure meaning; CI and the iteration timeline record actual results.

Data and privacy

Public screenshots, tests, examples, and walkthroughs must use synthetic data and exclude real account identifiers and health information. Records you enter and the files you export can contain sensitive health information, so never publish them, or any credentials or operator logs. Read the disclaimer, public demo boundary, source access policy, and security policy before presenting or reusing the project.

v0.2.0 — September 2026 update

The v0.2.0 release brings the app, research tools, and public showcase together around the Paper interface: warm paper tones, serif headings, legible opaque surfaces, and restrained motion that respects reduced motion settings. The app bundles Source Serif 4, Geist, and Geist Mono under SIL OFL licenses; it does not download these fonts at runtime.

Area What changed
Paper workspace Five chapters, one entry composer, responsive navigation, and a shared command palette.
Algorithm Observatory Fixed synthetic scenarios, production-derived traces, configuration identities, explanation trees, and saved replay capsules.
Medication and food context Explicit dose-unit handling, source and version provenance, missingness, and bounded food-rank sensitivity.
Owner-controlled records Observation entries, portable packages, recoverable history, and selected records for visit-preparation summaries.
Research workbench Synthetic rule testing, development-only FHIR/CQL/CDS Hooks experiments, and source/license review records.

The capability matrix distinguishes implemented, fixture-tested, report-only, and future work; the evidence scope lists what each area's evidence does not establish. The v0.2.0 release notes record this source and release-metadata publication, its verification, and remaining limits. Flutter app metadata remains 0.2.0+2; this release does not distribute an app binary.

Documentation and contributions

Entry point Purpose
Documentation index Find app, research, evidence, and release documents.
Evidence scope What screenshots, fixtures, checks, and releases do and do not establish.
Evidence demo guide Review the synthetic evidence chain.
Architecture UI, state, local data, rules, and provenance layers.
Bibliography Sources behind educational assumptions.
Contribution guide Scope a change and preserve public boundaries.
Roadmap Planned work and unresolved capabilities.
Project wiki A short visual guide and reviewer route.

Useful contributions improve source provenance, explicit missingness, explanation clarity, synthetic regression cases, accessibility, localization, and reproducibility. Start with a scoped item from the contribution backlog; do not add medical claims or treat unfinished research as a shipped capability.

Repository map

Path Purpose
lib/features/ Paper chapters, evidence tools, record flows, and diagnostics.
lib/core/ Shared state, local storage, configuration, localization, and theme.
lib/domain/ Entities, deterministic rules, models, and evidence contracts.
lib/data/ Repository adapters, source importers, and persistence.
config/ Versioned governance, schema, source, and release inventories.
test/ / tool/ Synthetic tests, replay runners, verification, and operator tools.
docs/ Public documentation, research boundaries, and iteration history.

License

Project code is distributed under the Apache License 2.0. Bundled fonts, data sources, and other third-party materials retain their own notices and access conditions; review source access and licenses before reusing them.

Releases and contact

The latest release as of 2026-09-29 is v0.2.0. Read its release notes and changelog, or use GitHub's Latest release link. It publishes source and the scoped npm release-metadata package, with no app binary. Historical v0.2.0-beta notes remain available.

Public contact: [email protected].

To cite ParkinSUM, see CITATION.cff and the evidence scope.

Explore related projects

Loading…