Build an on-page comparison tool that reports per element, not as one score. Input: a target query and the URL of your own page. Fetch the top 10 organic results through a commercial SERP API behind a swappable provider module, never by scraping. Exclude your own URL from the competitor set if it appears. Fetching and parsing: fetch every competitor page and your own politely, honouring robots.txt. Parse each into distinct elements rather than one blob of text: - title - meta description - H1 - H2 headings, as a list - H3 headings, as a list - body text, after boilerplate removal — navigation, footer, sidebar and cookie banners stripped, because counting terms in a competitor's menu is the most common way this analysis goes wrong - image alt attributes - anchor text of internal links - the URL slug Term handling: the target query plus its variants (stemmed forms, plural and singular, and a user-editable list of related phrases). Count occurrences of each term in each element, per page. The comparison table, which is the output that matters. One row per element, showing: the median count across competitors, the interquartile range, how many of the ten use the term in that element at all, and your page's count. Then a concrete instruction derived from the gap — "add the phrase to one more H2", "your title uses it twice, the median is once" — with the numbers it came from beside it. Over-optimisation, given equal weight to under-use: flag any element where your count exceeds the competitor maximum, not just the median. A tool that only ever says "add more" produces keyword-stuffed pages, and this one should say so explicitly in the interface. Structural comparison beyond terms: word count against the competitor distribution, heading count and depth, number of images, and internal link count. Present these the same way — median, range, yours. Audit trail: store the fetched competitor pages with the run, so a recommendation can be traced to the pages it came from and a run can be repeated later to see what changed. Export: the comparison as CSV and a self-contained HTML report that opens with no server, since the report is what gets sent to whoever will make the edits. State in the README that this counts what competitors do and does not know why they rank, that correlation is not the same as cause, and that the element weights the paid tools apply come from testing this build cannot reproduce. Out of scope: generating or rewriting text, rank tracking, backlink data, and a browser extension.