A very very dirty parser for Bank PDF account statements, providing analytics and dashboards on your account balance and expenses over time.
Initially, I just wanted to show the evolution of my accounts, because apps such as Bankin can't retrieve more than x months of data.
Note: All data provided in this project is entirely fake and anonymized. It does not reflect any real information.
- Export results as JSON
- Support PDF input from S3
- Add more statistics and analytics
- Add tests
- Automatic extraction of data from PDF statements
- Aggregation of balances and expenses by period
- Multiple output modes:
- S3: Generate HTML reports and upload them to an S3 bucket (with presigned URL support)
- stdout: Print generated HTML directly to the console
- interactive: Interactive terminal dashboard using
blessed-contrib
- Node.js >= 16
- Your PDF statements
- (Optional) An S3 bucket if you want to use the S3 output
git clone https://github.com/genepix/ce-dashboard-stats.git
cd ce-dashboard-stats
npm installExample:
For interactive dashboard (terminal):
OUTPUT_TYPE="interactive" PDF_FOLDER='./sample/pdf/' node index.jsYou can build and test the project using Docker. A sample test run with example PDFs:
docker build -t dashboard-stats:latest .
docker run -v ./sample/pdf/:/tmp/pdf/ -e PDF_FOLDER=/tmp/pdf/ -e OUTPUT_TYPE=interactive --rm -it dashboard-stats:latestThis will mount your local ./sample/pdf/ folder into the container at /tmp/pdf/.
- Place your PDF statements in a folder (e.g.
./pdf/). - Set the required environment variables:
PDF_FOLDER: path to the folder containing your PDFsOUTPUT_TYPE:s3,stdoutorinteractiveBUCKET_NAME: (if using S3 output) your S3 bucket name
- S3: HTML files are uploaded to S3 and accessible via a presigned URL
- stdout: HTML files are printed to the console
- interactive: An interactive dashboard is displayed in your terminal
mustache: for HTML template renderingpino: for loggingblessed-contrib: for interactive terminal dashboardaws-sdk: for S3 uploads
MIT
