Your crypto report in your inbox, plus how far your wallet is from its strategy.
A tiny GitHub Action that e-mails each new edition of a crypto report (live summaries, portfolio, news, yields) and scores a wallet against the conservative, neutral and aggressive profiles the report talks about.
Your crypto community publishes a weekly report with the summaries of its lives, a reference portfolio and a few rules ("keep 15โ30% in cash", "borrow at most 30% against your collateral"). You keep forgetting to read it, and when you do, you still have to open your wallet and do the math yourself.
Crypto Report Digest sends the new edition to your inbox and answers the question that matters: how close is my wallet to what they recommend, and what should I change?
โ ๏ธ Not financial advice. The profiles are extracted by an LLM from the report content, and the adherence score is a simple formula.
- ๐ฌ Only new editions: runs daily on GitHub Actions and only sends when there is a new edition.
- ๐๏ธ The whole edition: live summaries, reference portfolio with buy/hold/sell, fear & greed, macro, news, yields, on-chain and the tip of the week.
- ๐งญ Wallet vs. strategy: an adherence score (0โ100%) for the conservative, neutral and aggressive profiles, with a table of current vs. target allocation.
- ๐ ๏ธ What to change: concrete moves in US$ (e.g. reduce BTC from 69% to 40%, -$1,680), plus checks for the borrowing limit, minimum cash and assets to avoid.
- ๐ Interactive report attached: a self-contained
relatorio-interativo.htmlwith score rings, a tab per profile, current-vs-target bars, an allocation donut and a what-if simulator (drag your positions and debt, watch every profile's score update live). No CDN, no tracking; it works offline. - ๐ฆ DeFi aware: reads Aave deposits and loans, LPs and staking on every chain through the Zerion API. Allocation is a share of your total assets (never negative), debt is checked against each profile's borrowing limit, and wrapped assets are grouped (WBTC/cbBTC โ BTC, WETH/stETH โ ETH, stablecoins โ cash, XAUT/PAXG โ gold).
- ๐ค LLM strategy extraction: Gemini reads the last 4 editions and turns them into structured profiles. When the report doesn't publish explicit percentages, they are derived from the ranges it mentions and the e-mail says so.
- ๐ Private by design: everything that identifies you lives in Actions secrets, logs never contain balances, and no artifacts are uploaded.
- ๐ชถ Zero dependencies: plain Node 22, no build step.
-
Create your own private copy. Click Use this template (or clone it) and make the new repository private. In public repositories, Actions logs and the state commits are public.
-
Get the API keys (all have free tiers):
-
Add the secrets in Settings โ Secrets and variables โ Actions โ Secrets:
Secret Value REPORT_BASE_URLURL of the report site REPORT_USER/REPORT_PASSHTTP Basic Auth login of the site RESEND_API_KEYResend API key EMAIL_TOrecipient(s), comma separated EMAIL_FROMoptional; without a verified domain Resend only delivers to the account owner ZERION_API_KEYZerion API key GEMINI_API_KEYGemini API key WALLET_ADDRESSoptional; the wallet to analyze (the section is skipped without it) Optional variables:
REPORT_NAME(title of the e-mail, default Crypto Report) andLLM_MODEL(defaultgemini-flash-latest, with automatic fallback). -
Test it: Actions โ Newsletter โ Run workflow with preview checked. You get a
[PRรVIA]e-mail and nothing is recorded.
flowchart LR
A[โฐ Daily cron<br>GitHub Actions] --> B[๐ฐ Report site<br>new edition?]
B -- no --> Z[๐ค exit]
B -- yes --> C[๐ค Gemini<br>extracts 3 profiles]
B --> D[๐ฆ Zerion<br>wallet positions]
C --> E[๐งฎ Adherence score<br>+ moves in US$]
D --> E
E --> F[๐ฌ Resend<br>HTML e-mail<br>+ interactive report]
| Step | What happens |
|---|---|
| Fetch | Downloads the report site with HTTP Basic Auth and extracts the editions embedded in its JS bundle (an array of objects with slug, lives, market, news, yields, onchain, tips). For another site, adapt src/extract.mjs. |
| Strategy | Gemini reads the last 4 editions and returns the profiles: allocation %, max borrowing, rules and assets to avoid. |
| Wallet | Zerion returns balances and DeFi positions. Assets are grouped into buckets as a % of total assets; loans are kept apart as % of collateral. |
| Score | 80% allocation (100 โ half the sum of the differences in p.p.) + 20% rules (borrowing limit, assets to avoid, minimum cash). |
| Send | The e-mail (email-safe HTML) and the interactive report (attached .html with inline JS) go out through Resend and state/last-sent.txt is committed so the same edition is never sent twice. |
The e-mail content is in Portuguese (pt-BR), like the report it summarizes.
Requires Node 22+. No npm install needed.
git clone https://github.com/vinimcorrea/crypto-report-digest.git
cd crypto-report-digest
npm run demo # offline demo with fictional data -> preview.html + relatorio-interativo.html
cp .env.example .env # fill in your values
npm run preview # real data -> preview.html (nothing is sent)
npm run preview:fixtures # real report, fictional wallet/strategy (no Zerion/Gemini calls)
npm run send # send for real- Run your instance in a private repository.
- Personal data (site, e-mail, wallet) only goes in secrets, never in variables: GitHub masks secrets in logs but not variables.
- Logs only contain error messages, never positions or balances, and the workflow uploads no artifacts.
- The interactive report is a single attached file with no external requests, so your wallet data is never sent to a third party when you open it.
- Everything in
test/is fictional.
- Summaries of the community chat
- Multiple wallets
- English e-mail template
- Pluggable extractors for other report formats (RSS, Notion, Substack)
- Other LLM providers
Have an idea? Open an issue.
PRs are welcome! See CONTRIBUTING.md.
MIT ยฉ Vinicius Correa
If this saves you from reading the whole report every week, please โญ star the repo. It helps others find it.


