Repository navigation
Description
Problem
src/app/robots.ts and src/app/sitemap.ts exist, implying the app is meant to be publicly indexable — makes sense for /reputation/[handle] (public contributor profiles) and /issues (public bounty board) to drive discovery/SEO for a marketplace product. But /reputation/[handle] renders real usernames, avatar URLs, GitHub organizations, and lifetime earnings figures pulled via fetchReputationByUsername. If sitemap.ts enumerates every known handle (likely, to be useful for SEO) by calling the backend for a full user list, this creates a public, crawlable, permanently-indexed-by-search-engines directory of exactly who's earning what on the platform tied to their real GitHub identity — a privacy/doxxing-adjacent concern for contributors who may not have anticipated their MergeFi earnings being one Google search away from their real name, and a strategic problem if sitemap.ts calls the live backend at build/request time with no pagination or rate limiting, since a large user base could make sitemap generation slow or produce a sitemap exceeding the 50,000-URL/50MB per-file limit search engines enforce.
Why this is hard
- Requires reading
sitemap.tsto determine its actual current data source (mock data only? live backend list?) and how it paginates (or doesn't) — undocumented currently. - This is as much a product/privacy policy decision as an engineering one: should earnings be public at all, should indexability be opt-in per contributor, should the sitemap only include handles who've explicitly enabled a "public profile" flag (does
AuthUser/backend even support such a flag today — check the backend or flag as a needed cross-repo addition)? You need to make and justify a reasonable default given no explicit product spec exists, then implement it. - If opting toward "indexable by default," at minimum the lifetime-earnings figure and any other sensitive-feeling fields need a considered decision on whether they belong in SEO-crawlable server-rendered HTML at all, versus client-fetched-and-gated — this affects
src/app/reputation/[handle]/page.tsx's rendering strategy, not just the sitemap. - Sitemap generation for a potentially large user base needs to respect the sitemap size/count limits with a sitemap index file if the user count could exceed single-file limits, and must not hammer the backend on every crawler request — needs appropriate caching/revalidation given Next.js 16's route handler caching model for
sitemap.ts.
Scope
- Determine and document a privacy-conscious default for profile indexability (with a plan for an explicit opt-out or opt-in flag, coordinating the needed backend field if it doesn't exist).
- Update
sitemap.tsto respect that policy, paginate/chunk correctly for scale, and cache appropriately rather than hitting the backend on every crawl. - Review
robots.tsto ensure it doesn't inadvertently block or allow indexing inconsistently with the sitemap policy. - Add a
noindexfallback path for any profile page that shouldn't be crawlable per the policy, enforced via response headers/metadata, not just omission from the sitemap (omission alone doesn't prevent direct-URL indexing).
Acceptance criteria
- The chosen indexability policy is documented and implemented consistently across
sitemap.ts,robots.ts, and per-page metadata. - Sitemap generation is proven to scale (tested against a large mock user list) without exceeding size limits or excessive backend load.
Activity
rudra496 commentedon Aug 27, 2026
Happy to take this one. I went through
src/app/robots.tsandsrc/app/sitemap.tsand the current sitemap only enumerates static routes — so the exposure today is the per-handle profile pages being indexable at all rather than a crawled earnings directory, but the gap is real: nothing stops a future handle-listing sitemap, and the profile pages server-render lifetime earnings into crawlable HTML with no per-user control.Plan:
noindex+ omitted from the sitemap) until a user explicitly opts in — for an earnings-tied platform I think opt-in is the only defensible default, and it means the sitemap never has to justify enumerating people who didn't ask to be listed.sitemap.ts: keep it to public, non-personal routes (/,/issues, static pages), fetch the optional public-profile handle list from the backend behind a stable cache (revalidate), chunk into a sitemap index if handles ever exceed the 50k/50MB limits, and degrade to static-only if the backend is unavailable so crawlers never get a 5xx.robots.ts: align with the policy — no contradictory disallows, and explicitly disallow nothing that sitemap includes./reputation/[handle]: serverobots: noindexmetadata by default via the page'sgenerateMetadata, with an opt-in flag (backend field, flagged as a cross-repo addition in the PR if it doesn't exist yet) flipping it toindex+ sitemap inclusion.I've got an a11y batch PR in review on this repo (#338) and can start immediately.
ranjeet150 commentedon Sep 15, 2026
Hi everyone,
I am interested in working on this issue.
Plan:
Define and enforce a privacy-conscious profile indexability policy for sitemap.tswith proper loading/error states and clean component architecture.Ready to deliver a clean, tested PR within 12–24 hours. Please assign!
omoakinD commentedon Sep 26, 2026
@omoakinD has applied to work on this issue as part of the Stellar Wave Program's 9th wave.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @omoakinD to this issue.
Darkvader-ship-it commentedon Sep 26, 2026
@Darkvader-ship-it has applied to work on this issue as part of the Stellar Wave Program's 9th wave.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @Darkvader-ship-it to this issue.
drips-wave commentedon Sep 26, 2026
Congratulations, @Darkvader-ship-it! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on September 30, 2026.
🧑💻 @Darkvader-ship-it: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.
Warning
When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.
🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.
🌊 Happy Wave 🌊
drips-wave commentedon Sep 27, 2026
This issue has been completed by @Darkvader-ship-it as part of the Stellar Wave Program's 9th Wave 🥳
😎 @Darkvader-ship-it: You earned 200 Points for completing this issue! After the current Wave ends, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here. You can also Leave a review to share your experience working on this issue.
🧑💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.