[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-108759":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":11,"openIssues":12,"contributorsCount":12,"subscribersCount":12,"size":12,"stars1d":12,"stars7d":12,"stars30d":12,"stars90d":12,"forks30d":12,"starsTrendScore":12,"compositeScore":13,"rankGlobal":9,"rankLanguage":9,"license":14,"archived":15,"fork":15,"defaultBranch":16,"hasWiki":17,"hasPages":15,"topics":18,"createdAt":9,"pushedAt":19,"updatedAt":20,"readmeContent":21,"aiSummary":22,"trendingCount":12,"starSnapshotCount":12,"syncStatus":23,"lastSyncTime":24,"discoverSource":25},108759,"chainfolio","lifish0\u002Fchainfolio","lifish0","Zero-dependency multi-chain EVM portfolio watcher — CLI + local web dashboard",null,"JavaScript",51,0,40,"MIT License",false,"main",true,[],"2026-11-05 10:27:29","2026-11-05 11:21:43","# chainfolio\n\nA zero-dependency, multi-chain EVM portfolio watcher — CLI + a small local web dashboard.\n\nTrack your wallets across **Ethereum, BNB Smart Chain, Base, Arbitrum, Optimism, and Polygon**. Native balances + well-known ERC-20s, priced live via CoinGecko. No dependencies, no keys, no transactions — it only *reads* public balances.\n\n![dashboard placeholder](docs\u002Fscreenshot.png)\n\n> Screenshot placeholder — run `chainfolio serve` and open http:\u002F\u002Flocalhost:3000 to see your own dashboard.\n\n## Quick start\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002Fnoone52\u002Fchainfolio.git\ncd chainfolio\n\n# 1. Create your config from the example (public addresses only!)\ncp config\u002Fwallets.example.json config\u002Fwallets.json\n# 2. Edit config\u002Fwallets.json with your wallet addresses\n# 3. Run it\nnpm start            # snapshot in the terminal\n# or\nnode src\u002Fcli.js snapshot --format json\n```\n\nRequires **Node.js ≥ 20**. No `npm install` needed — there are no dependencies.\n\n> ⚠️ **Never put private keys, seed phrases, or API secrets in `config\u002Fwallets.json`.**\n> chainfolio only needs your *public* wallet addresses to read balances. It never signs anything.\n\n## Commands\n\n| Command | What it does |\n| --- | --- |\n| `chainfolio snapshot` | Fetch balances + prices, print a table |\n| `chainfolio snapshot --format json` | Same, as JSON |\n| `chainfolio snapshot --chain base` | Only one chain |\n| `chainfolio export --format csv --output out.csv` | Write a snapshot to a file |\n| `chainfolio watch --interval 120` | Poll every 120s, alert on big moves \u002F price thresholds |\n| `chainfolio serve --port 3000` | Local dashboard at http:\u002F\u002Flocalhost:3000 |\n\n## Config\n\n`config\u002Fwallets.json`:\n\n```json\n{\n  \"wallets\": [\n    {\n      \"address\": \"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045\",\n      \"label\": \"vitalik.eth\",\n      \"chains\": [\"ethereum\", \"base\", \"arbitrum\"],\n      \"costBasisUsd\": 5000\n    }\n  ],\n  \"settings\": { \"includeTokens\": true, \"minUsdToShow\": 0.01 },\n  \"alerts\": {\n    \"changePct\": 5,\n    \"priceThresholds\": { \"ETH\": { \"above\": 5000, \"below\": 1000 } }\n  }\n}\n```\n\n- `chains` is optional — omit it to watch all six chains.\n- `costBasisUsd` is optional — set it to see PnL.\n- `minUsdToShow` hides dust below that value.\n\n## Supported chains & tokens\n\n| Chain | Native | Tokens tracked |\n| --- | --- | --- |\n| Ethereum | ETH | USDT, USDC, WETH, DAI, WBTC, LINK |\n| BNB Smart Chain | BNB | USDT, USDC, WBNB, CAKE, ETH |\n| Base | ETH | USDC, WETH, cbETH, DAI |\n| Arbitrum One | ETH | USDT, USDC, WETH, ARB |\n| Optimism | ETH | USDT, USDC, WETH, OP, DAI |\n| Polygon | POL | USDT, USDC.e, WETH, WMATIC, DAI |\n\nToken addresses are the canonical deployments — verify on the chain explorer before relying on them for large sums. Add your own in `src\u002Ftokens.js`.\n\n## How it works\n\n1. `eth_getBalance` for native assets, `eth_call(balanceOf)` for ERC-20s, via public RPCs.\n2. Prices in one batched CoinGecko request, cached for 60 seconds.\n3. Amount × price, grouped by chain and token, PnL vs. your cost basis.\n4. Rendered as a terminal table, JSON, CSV, or the web dashboard.\n\nA chain that fails is skipped and listed under `ERRORS` — one bad RPC never kills the whole snapshot. Missing prices show as `n\u002Fa`, never as a fake number. See [docs\u002FARCHITECTURE.md](docs\u002FARCHITECTURE.md).\n\n## Roadmap\n\n- [ ] Custom token lists per wallet (add any ERC-20 by address)\n- [ ] Historical snapshots + charts (SQLite, still zero-dep via `node:sqlite` on Node 22+)\n- [ ] Telegram \u002F webhook alerts in `watch` mode\n- [ ] More chains (Solana via RPC, zkSync, Linea)\n- [ ] Price source fallback (CoinGecko → DeFiLlama)\n\n## FAQ\n\n**Does it need my private key?** No — never. Public addresses only, read-only RPC calls.\n\n**Does it send transactions?** No. It never signs or broadcasts anything.\n\n**What if CoinGecko is down?** Balances still show; prices show as `n\u002Fa` and the last cached price is reused where available.\n\n**Why is a token missing?** Either its balance is zero, or it isn't in `src\u002Ftokens.js` yet — add it there (address + decimals + CoinGecko id).\n\n## Contributing\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md). PRs welcome — especially new chains, tokens, and tests.\n\n## License\n\nMIT — see [LICENSE](LICENSE).\n\n---\n\n## 快速开始（中文）\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002Fnoone52\u002Fchainfolio.git\ncd chainfolio\ncp config\u002Fwallets.example.json config\u002Fwallets.json\n# 把 config\u002Fwallets.json 里的地址换成你自己的公开钱包地址\nnpm start\n```\n\n支持以太坊、BNB Chain、Base、Arbitrum、Optimism、Polygon 六条链，看原生币 + 主流 ERC-20 余额和美元总价，还能跑本地看板（`node src\u002Fcli.js serve`，打开 http:\u002F\u002Flocalhost:3000）。\n\n⚠️ **不要把私钥、助记词放进配置文件**，这里只需要公开地址。\n","chainfolio 是一个零依赖的多链 EVM 钱包资产监控工具，提供命令行快照与本地 Web 仪表盘。它通过公共 RPC 接口读取以太坊、BNB 智能链、Base、Arbitrum、Optimism 和 Polygon 上的钱包原生余额及主流 ERC-20 代币余额，并实时对接 CoinGecko 获取价格，支持 PnL 计算、阈值告警和 CSV\u002FJSON 导出。全程仅需公开地址，不接触私钥、不发送交易、无外部依赖（Node.js ≥20 即可运行）。适用于个人加密资产持有者进行跨链持仓概览、净值跟踪与异常变动监控。",2,"2026-11-24 04:35:09","CREATED_QUERY"]