个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证Chrome extension that estimates the carbon footprint of the pages you visit: an A–F Eco Score, a CO2 estimate, a green-hosting check and recommendations.
翻译准备中
取自仓库 README
正在加载完整 README。
查看完整 README ↗See the carbon footprint of any web page, an actionable A–F Eco Score, right in your browser.
PageLens takes the bytes your browser recorded while loading the page you're on and estimates the CO₂ of one view with CO2.js and the Sustainable Web Design model. It asks The Green Web Foundation whether the site's host runs on green energy, then gives the page an A–F Eco Score and a list of what to fix first, such as oversized images or heavy JavaScript. It's an estimate from an open model, not a measurement, made for developers, designers and sustainability teams who want lighter pages. The page is analyzed in your browser, and the only thing about it that leaves is its hostname, for the green-hosting check.
PageLens is a Chrome extension (Manifest V3). This half covers what it does in detail, how to build and run it, how it is put together, and how to contribute.
PageLens gives an actionable estimate, not an exact measurement, and is open about how the score is calculated: see "How this is calculated" in the popup and docs/ARCHITECTURE.md.
The quick scan needs no special permissions. The optional deep scan
attaches chrome.debugger and reloads the page to measure exact bytes and real
unused code. It shows Chrome's debugger banner, so it is a dev-build feature:
the published Web Store build omits it for faster review.
Requires Node 24 (see .nvmrc).
npm install
npm run dev # HMR build → dist/, hot-reloads the loaded extension
npm run build # production build → dist/
npm test # unit tests (vitest)
npm run lint # eslint
npm run format # prettier --write
Load it in Chrome: open chrome://extensions, enable Developer mode,
click Load unpacked, and select the dist/ folder.
src/
core/ Pure, framework-free analysis engine (unit-tested)
classify · aggregate · carbon · score · recommendations · coverage
background/ MV3 service worker + chrome.debugger deep scan
content/ Injected Performance-timing collector
popup/ React UI (components, hooks)
lib/ Messaging, Green Web Foundation client, storage, settings
tests/ Vitest suites for core/ (incl. score calibration)
site/ Marketing site (Vite + React) → pagelens.iamjarl.com
docs/ Architecture & Chrome Web Store guides
scripts/ Dependency-free icon generator
The analysis logic in src/core/ is deliberately pure, with no chrome.* or
DOM access, which keeps it fully unit-testable. Chrome APIs live only at the
edges.
React · TypeScript · Vite · @crxjs/vite-plugin ·
Tailwind CSS · Chrome MV3 · CO2.js · Green Web Foundation API
Styling uses the iamjarl-design token system, mapped onto Tailwind and auto-switching light/dark.
Every push and PR runs lint, format check, type-check, unit tests, and a
production build via CI. The Eco Score thresholds
live in src/core/constants.ts and are pinned by
tests/calibration.test.ts.
The published build omits the debugger permission:
npm run package:store # → pagelens-store.zip from a debugger-free dist-store/
See docs/chrome-store-listing.md for the full release process and PRIVACY.md / the hosted policy.
Email [email protected], or use Send feedback at the bottom of the popup, which fills in your version. Bug reports and ideas are just as welcome as GitHub issues.
Contributions are welcome: see CONTRIBUTING.md and the Code of Conduct. For security issues, see SECURITY.md.
MIT © IAMJARL