Skip to content
Public template

About

๐Ÿ“ฌ E-mail digest of your crypto report, plus a score of how close your wallet is to its conservative, neutral and aggressive strategies. Zero-dependency Node on GitHub Actions.

Topics

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

ย 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Crypto Report Digest icon

Crypto Report Digest

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.

Build Node 22+ Zero dependencies GitHub Actions MIT License Stars

Crypto Report Digest: adherence score per risk profile and the moves to rebalance


Why?

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.

โœจ Features

  • ๐Ÿ“ฌ 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.html with 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.
๐Ÿ“Š Interactive report (attachment)

Interactive report with scores, allocation bars, donut and simulator

๐Ÿ“ธ Full e-mail

Full digest e-mail

๐Ÿš€ Setup

  1. 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.

  2. Get the API keys (all have free tiers):

  3. Add the secrets in Settings โ†’ Secrets and variables โ†’ Actions โ†’ Secrets:

    Secret Value
    REPORT_BASE_URL URL of the report site
    REPORT_USER / REPORT_PASS HTTP Basic Auth login of the site
    RESEND_API_KEY Resend API key
    EMAIL_TO recipient(s), comma separated
    EMAIL_FROM optional; without a verified domain Resend only delivers to the account owner
    ZERION_API_KEY Zerion API key
    GEMINI_API_KEY Gemini API key
    WALLET_ADDRESS optional; the wallet to analyze (the section is skipped without it)

    Optional variables: REPORT_NAME (title of the e-mail, default Crypto Report) and LLM_MODEL (default gemini-flash-latest, with automatic fallback).

  4. Test it: Actions โ†’ Newsletter โ†’ Run workflow with preview checked. You get a [PRร‰VIA] e-mail and nothing is recorded.

๐Ÿง  How it works

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]
Loading
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.

๐Ÿ’ป Run locally

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

๐Ÿ” Privacy

  • 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.

๐Ÿ—บ๏ธ Roadmap

  • 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.

๐Ÿค Contributing

PRs are welcome! See CONTRIBUTING.md.

๐Ÿ“„ License

MIT ยฉ Vinicius Correa


If this saves you from reading the whole report every week, please โญ star the repo. It helps others find it.

About

๐Ÿ“ฌ E-mail digest of your crypto report, plus a score of how close your wallet is to its conservative, neutral and aggressive strategies. Zero-dependency Node on GitHub Actions.

Topics

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages