All work

Cosmicly

A private reflection journal that turns feelings and context into findings people can save and revisit.

I built and shipped a reflection journal across iOS and Android, owning its UX, Flutter clients, APIs, data, subscriptions and nine AI workflows. I reached release readiness in about four months through 10+ builds across both platforms, then continued hardening the boundaries between identity, billing, asynchronous generation and the user experience.

Role
Founder & Product Engineer
Platform
Flutter · TypeScript/Deno · Supabase/PostgreSQL · Vertex AI/Gemini
Status
Shipped on iOS and Android
Period
Nov 2025 to present
Cosmicly check-in with an unselected list of feelings.
Cosmicly / first-party product interfaceThe check-in began by asking how the person felt.

Project evidence

~4 months
to release readinessInitial development milestone across clients, backend, subscriptions and AI workflows.
10+ builds
on the path to releaseCombined iOS and Android builds on the path to release readiness.
9 workflows
schema-constrained text and visionGenerated interpretation layered over deterministic calculations.
5 languages
localized product deliveryShared Flutter clients for iOS and Android.

01 / The experience I built

Build a reflection journey people can save and revisit.

I designed Cosmicly around a complete reflection loop: choose a feeling, add a life area and optional situation details, receive a Finding, then save it for later reflection. I owned that experience and the clients, services and data needed to make it work across iOS and Android.

Astrology provides an interpretive timing lens for the journal. I made sensitive details optional and carried that choice into how generation handles missing context. Authenticated access, user-scoped data policies and account export/deletion support the same expectation of control throughout the product.

Cosmicly is no longer available for new downloads.

02 / The architectural boundary

Keep exact calculations under engineering control.

Planetary positions, chart structures and timing calculations need reproducible results. I implemented and tested that deterministic layer using an astronomy library and application-specific calculation logic, then passed structured results into the models that generate interpretation.

I kept calculation authority separate from generated text. Calculation tests verify the numerical and domain logic; schema contracts, validation and recovery govern the AI workflows. That boundary lets each side evolve and makes a failed calculation distinguishable from a failed model response.

System model

Deterministic core, probabilistic experience

Exact calculations stay inside a tested boundary. Structured context feeds workload-specific model routing, while a separate recovery lane handles malformed output and service failures.

Trusted delivery pathExact calculations stay outside the model boundary.
  1. 01Product inputs

    User state, chart inputs, text, and vision

  2. 02Deterministic astronomy

    Tested positions, charts, and timing

  3. 03Structured context

    Calculated facts prepared for each workflow

  4. 04Workload router

    Flash-Lite, Flash, or Pro by task

  5. 05Schema-constrained output

    Validate the response contract

  6. 06Flutter client

    iOS and Android product flows

Recovery laneMalformed output is revalidated; service failures use bounded recovery.
  1. 01JSON recovery

    Repair and revalidate malformed output

  2. 02Bounded retry

    Retry with explicit limits and timeouts

  3. 03Regional fallback

    Fail over to a healthy region-aware endpoint

  • Schema-constrained outputJSON recoverymalformed structure
  • JSON recoverySchema-constrained outputrepair, then validate
  • Workload routerBounded retrytransient failure
  • Bounded retryWorkload routerbounded retry
  • Bounded retryRegional fallbackendpoint unavailable
  • Regional fallbackWorkload routerhealthy endpoint

Each recovery branch returns to routing or schema validation. Valid output alone reaches the Flutter client.

Blueprint truncation
Corrected token budgetThe immediate user-visible defect was fixed at the workflow limit.
Configuration design
One source of truthCentralized model settings prevent silent per-feature drift.

03 / Production LLM workflows

Make nine AI workflows behave like product features.

I designed nine schema-constrained Gemini text and vision workflows around defined product jobs. Each combines calculated facts and relevant user context with a response contract the client can use. Follow-ups and weekly patterns draw on prior activity and rolling summaries so the journal has continuity.

I routed work across Gemini Flash-Lite, Flash and Pro by workload, with output validation, malformed-JSON recovery, bounded retries, timeouts and endpoint fallback. Per-feature token and cost signals make model operations visible at the same boundary where product decisions are made.

04 / Reliability across the client and backend

Recover a result that would otherwise look stuck.

Long-running reports could appear stuck when a cold WebSocket connection or a missed event left the client without the latest result. I changed the flow to fetch current state through REST before attaching Realtime listeners, then added reconnects and bounded polling while generation remained pending.

I preserved last-good content through transient errors, cleaned up subscriptions as account state changed, and used request identity guards so an older AI response could not overwrite a newer selection. That gave the interface explicit pending, retry and recovery behavior throughout the journey.

05 / Cross-system debugging

Keep a restored account and its subscription in agreement.

I traced an entitlement mismatch to an identity race: the billing SDK could initialize anonymously while the app restored a signed-in session, leaving the interface showing free-tier access. I connected authentication events to billing identity and explicitly seeded the restored user on cold start.

I carried that consistency through sign-out, purchase restoration and subscription updates. On the server, duplicate billing events are acknowledged without repeating their effects, and usage limits are claimed atomically before inference. These decisions connect account state, paid access and generated work across their actual failure boundaries.

06 / Failure is part of the design

Fix the incomplete result and the configuration behind it.

When a long-form blueprint response was cut off, I traced the incomplete result through the model path to an outdated workflow token limit. I corrected the budget so the workflow could return the full response.

I then centralized model configuration to stop individual features silently retaining inconsistent settings. The investigation became an architectural improvement as well as a fix for the immediate truncation defect.

07 / The product around the models

Take responsibility for the whole product, including billing and release.

I built the Flutter clients with TypeScript/Deno APIs and a Supabase/PostgreSQL backend. Server-side validation decides which profile changes require new generated content; scheduled work and asynchronous dispatch keep long-running inference out of blocking request paths.

I owned RevenueCat integration, push notifications, five-language localization and the customer-facing Astro/TypeScript website, alongside client/backend tests and staging/production delivery. The mobile experience was one part of a product whose identity, data, model and subscription behavior had to agree.

I reached release readiness in about four months through 10+ combined iOS/Android builds and shipped on both platforms. I continued the reliability and feature work beyond that initial milestone, taking responsibility for the product across client, backend and operations.

Discuss the work

Bring me the next product problem.

I bring product judgment, hands-on leadership, and the engineering depth to take an important problem from the first decision through release. Let’s talk about what you want to build or improve.

Private source code

The production repository is private. I'm happy to walk through relevant source code, architecture, testing strategy, trade-offs, and implementation decisions during a technical interview.