Architecture review request: MoodMate — local journal, long-term memory, and Windows desktop companion

Hi Anna developer team,

Jae suggested that I share a high-level architecture overview before adapting MoodMate into an Anna App. I am Xijing (@gengarget on GitHub). The public source repository is gengarget/Moodmate.

MoodMate is an emotional companion centered on a Windows desktop pet named Yaya. The main loop is: a user writes a journal entry, the app analyzes its mood, extracts candidate long-term memories from journals and conversations, and Yaya uses relevant confirmed memories in later chats. Users can review and manage memories, revisit journal history, and open emotional time capsules. This is a wellbeing companion, not a medical diagnosis tool.

Current architecture:

  • Client: Flutter/Dart Windows interface for journaling, mood history, profile, memory management, and pet chat. A PowerShell/WPF desktop pet provides the primary entry point, with a small C# launcher.
  • Backend: Python/FastAPI service with REST endpoints for diaries, AI settings, mood analysis, and Yaya interactions. The desktop components communicate with the local backend.
  • Storage: A local SQLite database stores journal entries, mood analyses, chat turns, memory items, settings, and time capsules. Memory items have confirmed, pending, and ignored states so users can manage what Yaya recalls.
  • AI: OpenAI-compatible model endpoints support analysis and conversation. Some functions have a local rule-based fallback when no model key is configured.

I am exploring an Anna edition that would provide a complete interactive App experience for the journal, Yaya chat, memory controls, and time capsules while keeping the existing desktop project available separately. I have not chosen the Anna runtime or storage design yet.

Could you advise on the following before I start the port?

  1. What Anna App UI and backend/runtime arrangement would you recommend for this Flutter/FastAPI architecture? Can the Python logic be packaged as an Executa while the App has its own Anna UI?
  2. Journal entries and chat memories can be highly personal. What is the recommended per-user storage pattern, and what are the retention, export, and deletion options? Which data would be sent to Anna services or model providers during AI runs?
  3. Can the Windows desktop pet remain an optional local companion, provided the Anna Marketplace App is independently usable? Are there supported ways for a local companion to interact with an Anna App?
  4. For this kind of app, would a meaningful journal analysis or Yaya chat response count as a Qualified App Run, assuming it completes the declared primary function?

I would appreciate guidance on the smallest viable Anna edition that meets App Review requirements while giving users clear control over their personal memories.

Thanks,
Xijing / @gengarget

Hi Xijing! :waving_hand:

Thank you so much for sharing MoodMate before starting the port — this is exactly the kind of overview that makes a review conversation easy. Yaya sounds lovely, and the “user confirms what the companion is allowed to remember” model is a great fit for Anna. :yellow_heart:

Here’s our take on your four questions, plus a suggestion for the smallest viable Anna edition.

TL;DR :globe_with_meridians:

Build the Anna edition as a Web App, not a port of the local Windows app.

An Anna App’s UI is a static web bundle rendered in a sandboxed window, and it runs unchanged on the desktop dashboard and inside the Anna mobile app. That gives you:

  • :mobile_phone: Device independence — the same bundle works on desktop today and on mobile when you’re ready.
  • :cloud: A flexible backend — your logic can live in the platform (cloud) via the Host API, in a local Executa, or both, and you can choose per capability instead of committing up front.
  • :luggage: No server to host or keep alive — the platform handles LLM access, storage, and identity.

The Windows pet can stay exactly where it is as an optional local companion.

1. UI + runtime arrangement :puzzle_piece:

UI: Ship the journal, mood history, memory controls, Yaya chat, and time capsules as an App UI bundle (a static SPA). Flutter Web output works as a static bundle, so you can reuse a lot of your Dart UI; a lightweight web frontend is equally fine. Declare form_factors: ["desktop", "mobile"] with a single responsive entry so you’re mobile-ready from day one.

Backend: Most of your FastAPI logic doesn’t need a server at all in the Anna edition:

  • Mood analysis, memory extraction, and Yaya’s replies → anna.llm from the Host API (bound to the user’s own quota — no API key for you to manage).
  • Diaries, memory items, settings, time capsules → anna.storage / anna.files (Anna Persistent Storage, see below).
  • The rule-based fallback is still welcome; it just becomes part of your UI logic.

Executa: Yes — Python logic can be packaged as an Executa and invoked from your App UI. Our guidance is to put only “must run locally” code there (heavy local compute, OS/filesystem access, hardware, or a bridge to the desktop pet). When an Executa needs user-scoped LLM or storage, it should call back into the Host API rather than carry its own OpenAI key or its own storage layer. For v1, you very likely don’t need an Executa at all.

2. Per-user storage, retention, export, deletion :locked_with_key:

Journals and memories are genuinely user-owned data, so:

  • Store them in Anna Persistent Storage (APS) with scope: "user". APS is per-user, server-backed, and syncs across Web / Desktop / Mobile. Please don’t carry the local SQLite pattern over — anything written to a local file by an Executa is lost on device swap or reinstall and never syncs.
  • Deletion: storage.delete / files.delete work per key or object, so a “delete this memory”, “forget everything”, and “delete all my journals” control in your UI maps directly to the platform. Users also control the storage grant for your app from their Anna Admin panel.
  • Export: storage.list + storage.get lets you build an “export my data” button that hands the user a JSON (or Markdown) file right from the UI. We’d love to see that in the first version. :sparkles:
  • What leaves the device: Only what you put into a Host API call. For an anna.llm call that is the prompt you construct — e.g. the current entry plus the relevant confirmed memories. A good habit is to send the minimum context needed for the task rather than the whole history, and to say so plainly in your listing.

Your confirmed / pending / ignored memory states already give users clear control — keep that front and center in the UI and in your App Store description.

3. The Windows desktop pet :paw_prints:

Absolutely — the pet can remain an optional local companion, as long as the Anna Marketplace App is fully usable on its own (journal, chat, memory controls, time capsules all work without the pet installed).

The supported way for a local companion to interact with an Anna App is through an Executa: it runs as a local plugin process, can talk to your pet on the same machine, and shares the same per-user storage scope as your App. That means the pet and the Anna App see the same memories and journals without you building a custom sync layer. We’d suggest adding this as a v2 feature once the web edition is live.

4. Qualified App Runs :white_check_mark:

In principle, yes — a completed, meaningful journal analysis or a Yaya chat response that fulfils the primary function you declare in your listing is exactly the kind of interaction we consider a qualified run. Two tips:

  • Declare the primary function clearly in your manifest and listing so review has something concrete to check against.
  • Make sure the run is actually completed and shown to the user (an LLM call that fails or a fallback that produces nothing wouldn’t count).

The review team will confirm specifics against your submitted listing, and the revenue-share rules in the Developer Terms apply.

Smallest viable Anna edition :rocket:

  1. One App UI bundle, single responsive view, form_factors: ["desktop", "mobile"].
  2. Host API: llm + storage (+ files if you want attachments). No Executa yet.
  3. Journal → mood analysis → candidate memories (pending) → user confirms/ignores → Yaya uses confirmed memories in chat.
  4. Memory management screen with per-item delete, “forget everything”, and “export my data”.
  5. A clear wellbeing / not-medical disclaimer in the listing and in-app.

That’s enough to pass review, gives users real control over their memories, and leaves a clean path to mobile and to the desktop pet bridge later.

Looking forward to seeing Yaya in the App Store! Feel free to post follow-up questions here or share the manifest draft and we’ll happily take a look. :glowing_star:

— Anna Developer Team

Hi Hunter and the Anna Developer Team,

Thank you for the detailed guidance on MoodMate. Your reply has helped me define the first version more clearly.

I currently plan to build MoodMate as a responsive Web App for desktop and mobile, using Anna Host API capabilities such as llm, storage, and files. The first version will focus on this complete user flow:

  1. The user writes a journal entry.
  2. The App provides a mood analysis and summary.
  3. The App extracts candidate memories as pending.
  4. The user can confirm, edit, or ignore each memory.
  5. Yaya uses only confirmed memories during later conversations.
  6. The user can export data, delete individual memories, or forget all stored data.

I plan to keep the Windows desktop pet as an optional companion for a later version, and I will not add an Executa to the first MVP.

Before I start implementation, I would appreciate clarification on the following commercial, publishing, and data-handling details.

1. Qualified App Runs

  • How exactly is a Qualified App Run counted?
  • Does a completed journal analysis count as one run?
  • Does a completed Yaya chat response count as one run?
  • How are retries, failed model calls, timeouts, empty results, and rule-based fallbacks handled?
  • Is the count based on users, sessions, feature calls, or another unit?

2. Monetization and costs

  • What monetization models are currently available to developers: per-run revenue, subscriptions, in-app purchases, or another model?
  • Could you provide the current revenue-share percentage, payout schedule, minimum payout threshold, supported regions, and tax requirements?
  • Who covers the cost of anna.llm and Anna Persistent Storage?
  • Are there free quotas, usage limits, or overage charges for developers or users?
  • Does Anna provide APIs for billing, subscriptions, in-app purchases, or usage reporting?

3. Marketplace publishing

  • What manifest fields must describe the App’s primary function, AI behavior, data types, and model usage?
  • Are there additional review requirements for an emotional wellbeing companion, such as safety documentation, privacy policies, or specific disclaimers?
  • Are there known limitations or recommended SDK versions for using Flutter Web output as a static App UI?

4. License and distribution

I have added the PolyForm Noncommercial License 1.0.0 to the public repository:

This is a source-available license that permits noncommercial use while requiring separate authorization for commercial use, paid distribution, or commercial integration.

Could you please clarify:

  • Does Anna Marketplace require an additional license grant for Anna to host, copy, distribute, and run the App bundle?
  • Is this source-available license compatible with Marketplace distribution?
  • Does Anna require a separate Anna-specific authorization or license notice in the manifest or listing?
  • Does the public repository need to use MIT, Apache-2.0, or another standard open-source license?

5. User data and model processing

  • What are the retention and deletion rules for user data in backups, logs, and model-provider systems?
  • After a user selects “forget everything,” how long may related data remain in backups or provider systems?
  • Does Anna or any model provider use journal entries, chat content, or memories for model training?
  • Are there limits on storage capacity, file size, request frequency, or the number of historical records?
  • Can the App obtain a complete data listing through the API to implement JSON or Markdown export?

My goal is to first validate the smallest complete Anna MVP with test data: journal entry, mood analysis, pending memory review, Yaya response, export, and deletion. After confirming the commercial, privacy, and publishing requirements, I will begin the formal migration from the existing Windows application.

If these details are documented elsewhere, links to the relevant developer, monetization, Marketplace, licensing, or data-processing documentation would be very helpful.

Thank you again for your guidance.

Best regards,
Xijing / @gengarget
GitHub: GitHub - gengarget/Moodmate: AI emotional companion desktop app with journaling, emotion analysis, long-term memory, and Windows desktop pet integration. · GitHub