Skip to content
All projects
AI

TechieCareerGuidance

AI career coaching on phones, tablets and the web, with credits that are never charged twice.

Role
Architect and developer
Year
2026

Source is in a private repository.

What it is

A Flutter app for iOS and Android phones and tablets with a persistent AI coach, résumé review and cover letters, a job tracker, mock interviews, skills-gap pathways, salary insights and a relocation copilot. Staff run it from a React admin portal, and AI use is paid for with credits bought through Stripe as Plus and Pro plans or top-ups.

The problem

Every AI call costs money, so a paid feature must charge exactly once even when the phone retries or a server crashes mid-request, and text a user sends to a language model has to be treated as untrusted input.

Architecture

Requests flow left to right. Hover a component for its role.

TechieCareerGuidance architectureHTTPS and SSEsigned webhooksdebit, refundprovider and model per featurestrict JSON schemaFlutter app: phone and tabletFlutter appReact admin portal: staff network onlyReact admin portalNginx: TLS, rate limitsNginxStripe: plans and top-upsStripeSpring Boot backend: auth, credits, billingSpring Boot backendPostgreSQL ledger: append-onlyPostgreSQL ledgerRedis and MinIO: sessions, documentsRedis and MinIOFastAPI AI service: stateless, no public portFastAPI AI serviceAnthropic and OpenAIAnthropic and OpenAI
Solid line: synchronous callDashed line: through a queueDashed box: external or infrastructure
  • Flutter app client, phone and tablet
  • React admin portal client, staff network only
  • Nginx edge, TLS, rate limits
  • Stripe external, plans and top-ups
  • Spring Boot backend service, auth, credits, billing
  • PostgreSQL ledger data, append-only
  • Redis and MinIO data, sessions, documents
  • FastAPI AI service ai, stateless, no public port
  • Anthropic and OpenAI external

Key decisions

  • Charge once, refund on failure

    The backend debits an append-only credit ledger in the same transaction that records the request, calls the AI service outside it, and refunds on any failure. A retry with the same Idempotency-Key returns the stored result without charging again, and a scheduled job refunds requests a crash left pending.

  • Business logic in one place

    Spring Boot owns users, credits, billing and entitlements. The FastAPI service is stateless: it takes a provider, a model and sanitised input and returns validated, typed output, with no database, no Stripe access and no public port.

  • Model input is untrusted

    User text is sanitised and wrapped as data inside prompts, and every response must match a strict schema, checked by the AI service and again by the backend before it is stored.

Highlights

  • Coach replies stream token by token over server-sent events.
  • One Flutter codebase adapts to phones and tablets, with master-detail layouts on larger screens.
  • Credit costs, AI models and feature flags change live from the admin portal.
  • Google or email sign-in, optional TOTP two-factor, and remote sign-out of other sessions.
  • Nightly encrypted backups with a monthly restore drill that checks the ledger.

Stack

FlutterDartRiverpodSpring Boot 4Java 21PostgreSQL 16RedisMinIOPythonFastAPIAnthropic ClaudeOpenAIReact 19TypeScriptStripeNginxDocker ComposePrometheusGrafana
Home screen with the credit balance, quick actions and the job pipeline
Home screen with the credit balance, quick actions and the job pipeline
Job tracker listing applications as saved, applied, interviewing, offer or rejected
Job tracker listing applications as saved, applied, interviewing, offer or rejected
AI tools screen with résumé review, cover letter, mock interview and salary tools and their credit costs
AI tools screen with résumé review, cover letter, mock interview and salary tools and their credit costs
Admin portal dashboard with users, credits spent, revenue and credits by AI feature
Admin portal dashboard with users, credits spent, revenue and credits by AI feature