Skip to content
yayati-codesPublic

About

A Local-First AI-Powered Personal Finance Operating System (Built in Rust)

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

Β 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 

Repository files navigation

FinOS

A Local-First AI-Powered Personal Finance Operating System (Built in Rust)


πŸš€ Overview

FinOS is a multi-platform, AI-powered personal finance engine built around a modular Rust core.

It enables users to track, analyze, and optimize:

  • Daily expenses (UPI, Cash, Cards, Net Banking)
  • SIP investments with projected growth simulation
  • Recurring subscriptions
  • Lending & borrowing records
  • Hierarchical spending categories (e.g., Travel β†’ Metro β†’ Flights β†’ Cabs)

Designed as a privacy-first, local-first financial system, FinOS can be accessed via:

  • Linux Terminal (CLI)
  • Web Interface
  • Windows Desktop App
  • Android Mobile App

FinOS is not just an expense tracker β€” it acts as a personal financial intelligence layer.


🧠 Core Philosophy

  • Local-first architecture
  • Modular Rust-based core engine
  • Self-hostable backend
  • Privacy-focused data ownership
  • AI-assisted personalization
  • Cross-platform accessibility

πŸ›  Tech Stack

🧱 Core Engine

  • Rust (modular library crate)
  • serde (serialization)
  • sqlx / rusqlite (database layer)
  • chrono, uuid
  • argon2 + ring (encryption & key derivation)

🌐 Backend API

  • Axum (REST API layer)
  • SQLite (local storage)
  • PostgreSQL (optional cloud sync)

πŸ–₯ Desktop Application

  • Tauri

    • Rust backend
    • Web-based UI
    • Cross-platform desktop support

🌍 Web Frontend

  • Leptos (Rust-native web UI) OR
  • React (optional frontend layer)

πŸ“± Android Application

  • Rust core compiled as shared library
  • Kotlin UI via JNI OR
  • Flutter + Rust FFI bridge

πŸ€– AI Layer

  • Rule-based keyword classification (Phase 1)
  • Embedding-based semantic categorization (Phase 2)
  • User correction learning system
  • Optional LLM integration

πŸ”₯ Key Features

πŸ’³ Expense Tracking

  • Payment mode detection (UPI, Cash, Cards)
  • Hierarchical category system
  • AI-based sub-category classification
  • Monthly & predictive analytics
  • Digital vs physical spending ratio

πŸ“ˆ SIP Investment Engine

  • Monthly investment tracking
  • Future value projection
  • Return rate simulation
  • Long-term portfolio estimation

πŸ” Subscription Management

  • Recurring billing engine
  • Renewal reminders
  • Annual cost breakdown
  • Subscription waste detection

πŸ’° Lending & Loan Ledger

  • Track money lent or borrowed
  • Repayment logging
  • Outstanding balance calculation
  • Optional interest computation

πŸ“Š Smart Analytics

  • Monthly burn rate analysis
  • Category drift detection
  • Spending pattern intelligence
  • Personalized financial insights

πŸ— Architecture Overview

                β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                β”‚   Android    β”‚
                β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”˜
                       β”‚
 Linux CLI ─────────▢  Rust Core Engine  ◀──────── Desktop App
                       β”‚
                β”Œβ”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”
                β”‚   Backend    β”‚
                β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”˜
                       β”‚
                β”Œβ”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”
                β”‚   Database   β”‚
                β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

The Rust core acts as the shared financial logic layer across all platforms.


πŸ—„ Database Design (High-Level)

  • expenses
  • categories (hierarchical tree structure)
  • payment_modes
  • sips
  • subscriptions
  • loans
  • loan_transactions
  • user_category_overrides
  • embeddings (optional AI layer)

πŸ” Security

  • Encrypted local database
  • Password-derived key (Argon2)
  • Optional biometric unlock (mobile)
  • Self-hostable backend for full data ownership

πŸ“Œ Use Cases

  • Power users managing detailed personal finances
  • Investors tracking SIP growth
  • Individuals managing informal lending
  • Privacy-focused users avoiding third-party finance apps
  • Developers exploring multi-platform Rust architectures

🌱 Future Roadmap

  • AI receipt OCR
  • Automated UPI SMS parsing
  • CSV import/export
  • Multi-currency support
  • Net worth dashboard
  • P2P sync with CRDTs
  • Self-hosted deployment toolkit

πŸ’‘ Vision

FinOS aims to become:

A local-first, AI-powered financial operating system β€” giving users complete control over their money, insights, and data.


πŸ“œ License

MIT (Planned)


If you’d like, I can also generate:

  • A clean folder structure layout
  • A CONTRIBUTING.md
  • A technical architecture deep-dive document
  • Or a more startup-oriented pitch version for GitHub visitors

About

A Local-First AI-Powered Personal Finance Operating System (Built in Rust)

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors