Skip to content

peshay/portfolixir

Portfolixir

Portfolixir is an early-stage, self-hosted portfolio analytics and wealth graph platform built with Elixir, Phoenix, and LiveView.

Portfolixir logo

CI Elixir License

Support maintenance via bunq

What is Portfolixir

Portfolixir focuses on transparent, ledger-driven portfolio analysis with a strong read/reporting surface. It is designed to keep financial logic explicit, testable, and auditable.

Why Portfolixir

  • Elixir/Phoenix foundation for reliable server-side state and testability.
  • Deterministic read models for reports and portfolio insights.
  • Clear safety boundaries: no broker execution, no real-money actions, no write-capable AI tooling in MVP direction.

Current status

  • Early-stage MVP in active development.
  • Not production-ready.
  • Feature set is evolving through small scoped story cards.

What works today

Current merged surface includes:

  • Portfolio, account, and transaction management basics.
  • Securities workbench and security detail views.
  • Classification and fund-allocation workbench pages.
  • Read-only report pages (for example fund allocations and payments).
  • Import overview and document/factsheet review flows.

Representative routes available in local runs include:

  • /
  • /securities
  • /reports/payments
  • /imports

Product direction

Near-term direction is to harden portfolio read/reporting capabilities around:

  • quote and valuation reliability,
  • richer classifications/exposure reporting,
  • safer import/reimport flows,
  • read-only API/MCP boundaries.

Safety and non-goals

Portfolixir is:

  • not financial advice,
  • not a broker,
  • not a trading/payment/order execution platform,
  • not intended for real-money actions in its current state.

MVP direction also excludes write-capable LLM/MCP tools.

Quick start

Prerequisites

  • Docker Engine
  • Docker Compose plugin (docker compose)

Run locally

docker compose up --build

Open:

Stop and remove local volumes:

docker compose down -v

Development workflow

Project quality gates:

mix format
mix test

CI also enforces a coverage non-regression floor at 87.8% (ExCoveralls/Cobertura line coverage).

Read API authentication

/api/read/* can be protected with an API key.

  • READ_API_AUTH_ENABLED=true enables API key checks.
  • READ_API_KEY=<your-key> sets the expected key.
  • Clients send the key with header x-api-key.

In production, read API auth is fail-closed by default (READ_API_AUTH_ENABLED defaults to true). Setting READ_API_AUTH_ENABLED=false in production raises at boot. In local dev/test, auth may be left disabled.

Read-only MCP wrapper boundary

Portfolixir includes a read-only MCP tool-definition wrapper over authenticated read API endpoints.

  • Module: Portfolixir.MCP.ReadOnlyTools
  • Allowed tool paths:
    • /api/read/portfolio_snapshot
    • /api/read/positions
    • /api/read/transactions
    • /api/read/cash_balances
  • Allowed method: GET only

No write-capable MCP tools exist. Portfolixir does not expose MCP tools for broker, banking, trading, payment, order, or rebalance actions.

Roadmap and next milestones

Roadmap execution is tracked through Planka story cards and PR handoffs. Product-level story sources:

Contributing / AI agent workflow

  • Read AGENTS.md before making changes.
  • Keep changes scoped to a single story.
  • Keep public artifacts concise and repo-facing.

Additional workflow documentation is maintained in this repository as it is merged on main.

Portfolio Performance inspiration note

Portfolixir is inspired by Portfolio Performance workflow ideas. It is an independent project and is not affiliated with or endorsed by the Portfolio Performance project.

Support

Support payments help fund ongoing maintenance work. They do not automatically create entitlement to support, features, consulting, SLA, or invoice-based engagement.

License

This project is licensed under the MIT License. See LICENSE.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages