Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
W

wealthfolio

> 编程语言
Open source

A beautiful, private, local-first personal finance tracker. Investments, net worth, spending, and simulations.

8.4K stars0 likes4 views
WebsiteGitHub

About

A beautiful, private, local-first personal finance tracker. Investments, net worth, spending, and simulations.

Introduction

Wealthfolio is an open-source, private portfolio tracker — investments, net worth, spending, and simulations. All your data is stored locally on your device: no cloud database, no account required, free forever.

For automatic brokerage syncing (30+ institutions, read-only) and encrypted multi-device sync, there's Wealthfolio Connect — an optional subscription that covers the real cost of the brokerage data connections. The app never requires it: manual tracking and CSV import are free, forever.

Visit the website at wealthfolio.app.

✨ Key Features

  • ** Portfolio Tracking** - Track your investments across multiple accounts and asset types
  • ** Performance Analytics** - True time-weighted and money-weighted returns, benchmark comparison, and historical analysis
  • ** Activity Management** - Import and manage all your trading activities
  • ** Goal Planning** - Set and track financial goals with allocation management
  • ** Local Data** - All data stored locally with no cloud dependencies
  • ** Optional Broker Sync** - Auto-sync 30+ brokerages with Wealthfolio Connect (read-only, entirely optional)
  • ** Extensible** - Powerful addon system for custom functionality
  • ** Multi-Currency** - Support for multiple currencies with exchange rate management
  • ** Cross-Platform** - Desktop (Windows, macOS, Linux), iOS, and self-hosted Docker/web

Wealthfolio 3.7 requires macOS 12 or newer and iOS/iPadOS 16 or newer. macOS 12 installations should apply current macOS and Safari updates so the system WKWebView meets the Safari 16 browser floor. Windows uses the evergreen WebView2 runtime; Linux and self-hosted installations should keep WebKitGTK or their browser updated.

Addon System

Wealthfolio features a powerful addon system that allows developers to extend functionality:

  • ** Easy Development** - TypeScript SDK with full type safety and hot reload
  • ** Secure** - Comprehensive permission system with user consent
  • ⚡ High Performance - Optimized for speed with minimal overhead
  • ** UI Integration** - Add custom pages, navigation items, and components
  • ** Real-time Events** - Listen to portfolio updates, market sync, and user actions
  • ️ Full Data Access - Access to accounts, holdings, activities, and market data
  • ** Secrets Management** - Secure storage for API keys and sensitive data
  • ** Private Assets** - Package images, fonts, media, configuration, and Wasm for the isolated addon sandbox

Get started building addons: See the Addon Documentation Hub

Documentation for all Activity types, including the required form fields, is available in docs/activities/activity-types.md.

Roadmap

See ROADMAP.md.

Documentation

Core Application

  • Activity Types - Complete guide to all supported activity types and their required fields
  • Roadmap - Future plans and development roadmap

Architecture

  • Credential Storage - Native backends, server encryption, Android backup, and recovery
  • Android Testing - Setup, emulator/device commands, APK builds, and smoke tests
  • Adapter System - Compile-time environment detection for Desktop/Web builds

Addon Development

  • Addon Documentation Hub - Main entry point for addon development
  • Getting Started - Guide to get started with addon development
  • API Reference - Complete API documentation with examples
  • Architecture - Design patterns and architecture guide
  • v3.6 to v3.7 Migration - Packaged assets and compatibility notes

Quick Links

  • Official Addons - Browse maintained addon examples in the official addon repository
  • Community Addons - Browse addons shared by the community in the community addon directory
  • ️ Development Tools - CLI tools for addon development

Getting Started

Prerequisites

Ensure you have the following installed on your machine:

  • Node.js
  • pnpm
  • Rust
  • Tauri

Building from Source

  1. Clone the repository:

    bash
    git clone https://github.com/wealthfolio/wealthfolio.git
    cd wealthfolio
  2. Install dependencies using pnpm:

    bash
    pnpm install
  3. Setup environment configuration:

    Copy the environment template and configure it for your setup:

    bash
    cp .env.example .env

    Update the .env file with your database path and other configuration as needed:

    bash
    # Database location
    DATABASE_URL=../db/wealthfolio.db
  4. Run in Development Mode:

Build and run the desktop application using Tauri:

bash
pnpm tauri dev

Addon Development Mode

Addon hot reload servers now start only when you explicitly opt in.

For desktop development with Tauri:

bash
VITE_ENABLE_ADDON_DEV_MODE=true pnpm tauri dev

For browser-only development (Vite only, no Tauri):

bash
pnpm dev:addons

You can also set VITE_ENABLE_ADDON_DEV_MODE=true in your .env file to persist the setting.

  1. Build for Production:

Build the application for production:

bash
pnpm tauri build

Web Mode (Browser + REST API server)

Run the web UI with a local Axum server with one command.

Quick Start

  1. Setup environment (optional but recommended):

    Copy the example environment file and customize it for your setup:

    bash
    cp .env.web.example .env.web

    Edit .env.web to configure database path, ports, and other settings as needed.

  2. Start both backend and Vite dev server:

    bash
    pnpm run dev:web

    The Vite dev server runs at http://localhost:1420 and proxies API calls to the Axum backend server.

Configuration

All configuration is done via environment variables in .env.web.

Server Configuration (WF_* variables):

  • WF_LISTEN_ADDR - Server bind address (default: 0.0.0.0:8088)
  • WF_DB_PATH - SQLite database path or directory (default: ./db/app.db)
    • If a directory is provided, app.db will be used inside it
  • WF_CORS_ALLOW_ORIGINS - Comma-separated list of allowed CORS origins (default: *). Required when auth is enabled — wildcard * is rejected.
    • Example: https://wealthfolio.example.com
  • WF_REQUEST_TIMEOUT_MS - Request timeout in milliseconds (default: 300000)
  • WF_STATIC_DIR - Directory for serving static frontend assets (default: dist)
  • WF_SECRET_KEY - 32-byte key used for secrets encryption and JWT signing (required unless WF_SECRET_KEY_FILE is set)
    • Generate with: openssl rand -base64 32
  • WF_SECRET_KEY_FILE - Optional master-key file; see setup and mount instructions
  • WF_AUTH_PASSWORD_HASH - Argon2id PHC string enabling password-only authentication for web mode
  • WF_AUTH_TOKEN_TTL_MINUTES - Optional JWT access token expiry in minutes (default 60)
  • WF_AUTH_REQUIRED - Set to false to allow starting on non-loopback addresses without authentication (e.g. when a reverse proxy handles auth)
  • OIDC / SSO (optional) - sign in via any OpenID Connect provider (Authentik, PocketID, Authelia, Keycloak, …). Works alongside or instead of WF_AUTH_PASSWORD_HASH; a successful SSO login mints the same session cookie. Enabled when both WF_OIDC_ISSUER_URL and WF_OIDC_CLIENT_ID are set.
    • WF_OIDC_ISSUER_URL - provider base URL (discovery hits <issuer>/.well-known/openid-configuration)
    • WF_OIDC_CLIENT_ID - client id registered with the IdP
    • WF_OIDC_CLIENT_SECRET - Optional client secret (PKCE is always used)
    • WF_OIDC_REDIRECT_URL - Required when OIDC is enabled; must be registered in the IdP, e.g. https://your.host/api/v1/auth/oidc/callback
    • WF_OIDC_SCOPES - Optional space-separated scopes (default openid email profile)
    • WF_OIDC_ALLOWED_EMAILS / WF_OIDC_ALLOWED_SUBS - comma-separated allowlists matched against the ID token's email / sub claims. With neither set, the server refuses to start unless WF_OIDC_ALLOW_ANY=true is also set — a missing allowlist must never silently grant every IdP user access. An email is only honored when the IdP asserts email_verified=true; WF_OIDC_ALLOWED_SUBS is the stronger control (stable, issuer-scoped) and is recommended on shared/multi-tenant IdPs.
    • WF_OIDC_ALLOW_ANY - Optional, default false. Set to true to allow any user the IdP authenticates when no allowlist is configured. Only safe on a dedicated single-user IdP; on a shared/multi-tenant IdP this grants everyone access. A warning is logged at startup when enabled.
    • WF_OIDC_POST_LOGOUT_REDIRECT_URL - Optional. When the IdP advertises an end_session_endpoint, sign-out also ends the IdP session (RP-Initiated Logout); otherwise logout is local-only. Set this to land back on the app afterward — it must be registered with the IdP (e.g. Keycloak's "Valid post logout redirect URIs"). If unset, the IdP shows its own logged-out page.
    • WF_OIDC_RP_LOGOUT - Optional, default true. Set to false to force local-only logout even when the IdP supports RP-Initiated Logout.
  • WF_COOKIE_SECURE - Controls the Secure attribute on session cookies (default: auto)
    • auto - set Secure only when X-Forwarded-Proto: https is present (recommended for most reverse-proxy setups)
    • true - always set Secure (use when TLS is guaranteed but the header is absent)
    • false - never set Secure (plain HTTP without a reverse proxy)
  • WF_SECRET_FILE - Optional path to secrets storage file (default: <data-root>/secrets.json)
  • WF_ADDONS_DIR - Optional path to addons directory (default: derived from database path)

Vite Configuration:

  • VITE_API_TARGET - Backend API URL for Vite proxy (default: http://127.0.0.1:8088)

Authentication (Web Mode)

  • Set WF_AUTH_PASSWORD_HASH to an Argon2id PHC string to require a password before accessing the Web App.

    You can generate the hash with online tools like argon2.online or the CLI (argon2-utils package):

    bash
    printf 'your-password' | argon2 yoursalt16chars! -id -e

    Tips:

    • The first argument is the salt (use 16+ characters); the password is read from stdin.
    • Use printf instead of echo -n to avoid hidden newline issues.
    • For Docker Compose .env / --env-file, single-quote the hash or double every $ ($$argon2id$$...).

    Copy the full output (starting with $argon2id$...) into .env.web.

    Dollar-sign ($) escaping cheat-sheet — Argon2 hashes contain $ characters that shells and Compose interpret as variable references:

    Context Syntax Notes
    .env.web / app-loa

Issues· 480 open

View all issuesOpen on GitHub
  • #1849

    Release builds use `lts/*` and will switch to Node 26 around Oct 28, while PR checks stay on Node 24

    Updated Sep 30, 2026
  • #1848

    Spending Insight: "This month" compares against a 30-day window instead of the previous calendar month

    Updated Sep 30, 2026
  • #1844

    Make text select-able and copyable.

    Updated Sep 30, 2026
  • #1837

    [bug] [iOS] Device sync fails at Apply: local data is not replaced

    Updated Sep 29, 2026
  • #1835

    Issue: Unable to activate Connect on a second profile

    Updated Sep 29, 2026
  • #1604

    Remove default behaviour of duplicate transaction detection when importing

    Updated Sep 28, 2026
  • #1836

    Feature : Allow target allocation to be linked to individual equities

    Updated Sep 28, 2026
  • #1833

    [Bug] Allocation targets disappear after restarting the app

    Updated Sep 28, 2026
  • #1834

    Health Center stale price warning should ignore expired options

    Updated Sep 28, 2026
  • #1832

    Support debit dividends / short-dividend payments without reclassifying them as fees

    Updated Sep 28, 2026

> Tags

Rustmacos-appportfolio-trackerself-hostedtauri-app

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedOct 1, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言