Fava Dashboards
fava-dashboards allows creating custom dashboards in Fava.
Example dashboards with random data:
Installation
pip install fava-dashboards
Enable this plugin in Fava by adding the following lines to your ledger:
2010-01-01 custom "fava-extension" "fava_dashboards"
Configuration
The plugin looks by default for a dashboards.tsx file (or .ts, .js[x], .[cm]js) in the directory of the Beancount ledger (e.g. if you run fava personal.beancount, the dashboards.tsx file should be in the same directory as personal.beancount).
The location of the dashboards.tsx configuration file can be customized:
2010-01-01 custom "fava-extension" "fava_dashboards" "{
'config': '/path/to/dashboards.tsx'
}"
Please take a look at the example dashboards configuration dashboards.tsx, which uses most of the functionality described below.
To get TypeScript type support, download fava-dashboards.d.ts and place it next to dashboards.tsx.
To convert a legacy dashboards.yaml file from version 1 to the new dashboards.tsx format, you can run make deps && uv run scripts/convert_dashboards_yaml_to_tsx.py path/to/dashboards.yaml --output path/to/dashboards.tsx.
This script covers most common cases, and does not perform TypeScript type inference.
The dashboard configuration defines one or more dashboards, each with one or more panels.
A panel has a relative width (e.g. 50% for 2 columns, or 33.3% for 3 column layouts) and an absolute height.
Configuration Properties
dashboards: list of dashboardstheme: optional theme configuration
The theme configuration supports:
echarts: optional ECharts theme name, or a custom ECharts theme objectdashboard.panel.style: optional custom MUI style properties for dashboard panels
Dashboard Properties
Variable Properties
Variables can be defined on dashboards or panels. Dashboard variables are available to all panels in that dashboard, and panel variables are only available to that panel.
name: variable namelabel: optional display label. Default: variable namedisplay: optional variable control type. Must be one ofselectortoggle. Default:selectstyle: optional custom MUI style properties for the variable controlmultiple: optional flag to allow selecting multiple values. Default:falseoptions: a JavaScript function which returns the available valuesdefault: optional default value. Use an array whenmultipleistrue
Panel Properties
title: optional title of the panelwidth: optional width of the panel. Default: 100%height: optional height of the panel. Default: 400pxlink: optional link target of the panel headervariables: optional list of panel-level variableskind: panel kind. Must be one ofhtml,echarts,d3_sankey,tableorreactspec: a JavaScript function which generates a valid spec depending on the panelkind
The spec function is called with an object containing the following properties:
panel: the current panel definitionvariables: the resolved dashboard and panel variablesledger.dateFirst: start date of the current date filter, or first transaction date of the ledgerledger.dateLast: end date of the current date filter, or last transaction date of the ledgerledger.filterFirst: start date of the current date filter, or null if no date filter is setledger.filterLast: end date of the current date filter, or null if no date filter is setledger.operatingCurrencies: configured operating currencies of the ledgerledger.ccy: shortcut for the first configured operating currency of the ledgerledger.accounts: declared accounts of the ledgerledger.commodities: declared commodities of the ledgerledger.query(bql): executes the specified BQL queryledger.urlFor(url): adds current Fava filter parameters to url
HTML panel
The spec code of HTML panels must return valid HTML.
The HTML code will be rendered in the panel.
ECharts panel
The spec code of Apache ECharts panels must return valid Apache ECharts chart options.
Please take a look at the ECharts examples to get familiar with the available chart types and options.
d3-sankey panel
The spec code of d3-sankey panels must return valid d3-sankey chart options.
Please take a look at the example dashboard configuration dashboards.tsx.
Table panel
The spec code of table panels must return valid MUI X Data Grid props.
React panel
The spec code of React panels must return a valid JSX element.
Please note that the code must not return a Promise (i.e. async/await is not supported).
View Example Ledger
cd example; fava example.beancount
Contributing
This plugin consists of a Python backend and a TypeScript frontend.
Install uv and Node.js 22, run make deps to install the dependencies, and make dev to run the Fava dev server with auto-rebuild.
Before submitting a PR, please run make build to build the frontend in production mode, and add the compiled frontend to the PR.
Articles
Related Projects
Acknowledgements
Thanks to Martin Blais and all contributors of Beancount, Jakob Schnitzer, Dominik Aumayr and all contributors of Fava, and to all contributors of Apache ECharts, D3.js and d3-sankey.
Metadata
Release files for fava-dashboards 2.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fava_dashboards-2.0.3.tar.gz | 5.4 MB | With provenance | Details for fava_dashboards-2.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fava_dashboards-2.0.3-py3-none-any.whl | Python 3 | none | any | Details for fava_dashboards-2.0.3-py3-none-any.whl |
Total release size: 6.9 MB
Release files / fava_dashboards-2.0.3.tar.gz
| Download URL | fava_dashboards-2.0.3.tar.gz |
|---|---|
| Size | 5.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
09b55d9fe7874559de80778890a292b26bd468574e4087303693eda238ce7fbb
|
|
BLAKE2b-256 checksum How to use checksums |
804252d65bac93ce105f2b117641cfe269b941968e471f5601525217b883b498
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.
Transparency logRelease files / fava_dashboards-2.0.3-py3-none-any.whl
| Download URL | fava_dashboards-2.0.3-py3-none-any.whl |
|---|---|
| Size | 1.6 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e8006a0ed80f7680b46d4aa4e62141d1f007c1e0e3bb0d94486161e291ef65b9
|
|
BLAKE2b-256 checksum How to use checksums |
32569b3bc9836bf743cac8003c54e2d64cbb8fb6a1626091673460fc70691e62
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.
Transparency logSecurity for fava-dashboards 2.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for fava_dashboards-2.0.3.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.