โ† Back to Home
Appaveli Platform

Under the hood of the AppaveliTech stack.

This is the architecture that powers Appaveli CodeMind, Appaveli Creator, Investor Agent, and future tools โ€” built around Java core services, Python AI agents, and native mobile clients.

Overview

Platform, not just projects

AppaveliTech runs on a shared platform instead of one-off backends. Core services (auth, users, subscriptions) live in Java. AI features live in Python agents. Native apps in Swift and Kotlin sit on top, with C++ libraries for shared domain logic where it makes sense.

The goal: move fast as a solo dev without creating a mess. One platform. Multiple products. Clear boundaries.

๐Ÿ— Design principles
  • Separate accounts/data from AI/LLM logic
  • Reuse the same agents across web and mobile
  • Start web-first, then layer on native apps with IAP
  • Keep the stack "solo-dev maintainable"
Java ยท Python ยท C++ Swift ยท Kotlin VPS hosted
High-level view

System diagram

A single platform fans out into web tools, native apps, and internal CLIs โ€” all talking to the same core services and AI agents.

                   โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                   โ”‚        Client Apps          โ”‚
                   โ”‚                             โ”‚
                   โ”‚  โ€ข Web (JSP / Servlets)     โ”‚
                   โ”‚  โ€ข iOS (Swift / SwiftUI)    โ”‚
                   โ”‚  โ€ข Android (Kotlin)         โ”‚
                   โ”‚  โ€ข Internal CLIs            โ”‚
                   โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ฒโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                                  โ”‚
                    Auth / Profiles / Subs / Data
                                  โ”‚
                   โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                   โ”‚    Java Core Services       โ”‚
                   โ”‚   (AppaveliCore backend)    โ”‚
                   โ”‚  โ€ข Auth + JWT               โ”‚
                   โ”‚  โ€ข Users / Profiles         โ”‚
                   โ”‚  โ€ข Subscriptions & IAP      โ”‚
                   โ”‚  โ€ข DB (Postgres/MySQL)      โ”‚
                   โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ฒโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                                  โ”‚
                             Trusted JWT
                                  โ”‚
              AI requests         โ”‚
          โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
          โ”‚              Python AI Agents                  โ”‚
          โ”‚                (FastAPI)                       โ”‚
          โ”‚  โ€ข CodeMind API                                โ”‚
          โ”‚  โ€ข Creator / Caption Agent                     โ”‚
          โ”‚  โ€ข Investor Agent                              โ”‚
          โ”‚  โ€ข Future agents (Fitness, etc.)               โ”‚
          โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                                  โ”‚
                       Shared logic (where needed)
                                  โ”‚
          โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
          โ”‚           C++ Shared Mobile Libraries          โ”‚
          โ”‚   โ€ข Economics / calculator logic               โ”‚
          โ”‚   โ€ข Fitness formulas / domain rules            โ”‚
          โ”‚   โ€ข Used by Swift & Kotlin via bridges         โ”‚
          โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
โ˜• Java Core Services

Java (on a private JVM) handles the stable bits: authentication, JWT, profiles, and subscription logic. This is the "identity and data" layer for AppaveliTech.

  • Auth service โ€“ login, registration, JWT issuance
  • User service โ€“ profiles, preferences
  • Subscription service โ€“ entitlements & IAP receipts
Tomcat REST APIs
๐Ÿ Python AI Agents

FastAPI-based agents power AI features: code analysis, caption generation, portfolio breakdowns, and more. Each agent is its own service, but they follow a consistent contract.

  • Creator Agent โ€“ caption & hook generation
  • Investor Agent โ€“ portfolio & ticker analysis
  • CodeMind API โ€“ code analysis & refactors
FastAPI OpenAI under the hood
๐Ÿ“ฑ Native Clients

Future Appaveli apps ship as fully native iOS and Android clients, hitting the same Java + Python backends. In-app purchases unlock premium tiers on mobile first.

  • Swift / SwiftUI on iOS
  • Kotlin on Android
  • JWT from Java โ†’ calls into Python
Mobile-first monetization
โš™๏ธ C++ Core Logic

For calculation-heavy apps (like economics or fitness), shared C++ libraries keep core logic consistent across iOS and Android while staying independent from any single UI framework.

  • Compiled once, used twice
  • Bridged via Obj-C++ / JNI
Optional layer Performance & reuse
How it behaves

Example request flows

๐Ÿ” Login + use AI (Creator)
  1. User logs in via Java core at /api/auth/login.
  2. Java returns a signed JWT.
  3. Client (web or mobile) stores JWT.
  4. Client calls Python Creator Agent with Authorization: Bearer <JWT>.
  5. Python verifies token, generates captions via LLM, returns JSON.
  6. Optional "Save" goes back to Java to persist against the user.
๐Ÿ“Š Calculations + AI explanation
  1. User enters numbers in a mobile app.
  2. Swift/Kotlin calls into a shared C++ library for instant local math.
  3. Result is displayed immediately.
  4. Optional AI "explain this result" call goes to a Python Agent.
  5. User can save scenarios via Java core services.
Why architect it this way?

Built for a solo dev running a platform

As a Director of Software Engineering, I care about architecture, not chaos. As a solo dev, I care about velocity. The Appaveli Platform is meant to balance both: a clean separation of concerns without over-engineering the stack.

If you're an engineering leader, founder, or dev curious about how this evolves, you can follow the journey through the tools themselves โ€” and the posts I write about Appaveli Mode.

See what's currently running on this stack โ†’